Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
perxis-js
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-js
Commits
d5d99e31
Commit
d5d99e31
authored
2 years ago
by
ko_oler
Browse files
Options
Downloads
Patches
Plain Diff
fix .gitlab-ci.yml
parent
fe71defa
No related branches found
No related tags found
1 merge request
!1
Добавлена генерация файлов для frontend в Makefile и публикацию npm-пакета
Pipeline
#19082
failed
2 years ago
Stage: publish-npm
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+2
-3
2 additions, 3 deletions
.gitlab-ci.yml
config/generate.sh
+14
-14
14 additions, 14 deletions
config/generate.sh
config/package.json
+2
-2
2 additions, 2 deletions
config/package.json
config/tsconfig.json
+3
-1
3 additions, 1 deletion
config/tsconfig.json
with
21 additions
and
20 deletions
.gitlab-ci.yml
+
2
−
3
View file @
d5d99e31
...
...
@@ -17,10 +17,9 @@ publish_npm:
script
:
-
npm install -g typescript@4.7.4
-
npm install -g ts-proto@1.115.5
-
mkdir config/
clients
-
mkdir config/
dist
-
make proto
-
cd ./config
-
NPM_PACKAGE_VERSION=$(node -p "require('./package.json').version")
-
yarn pub
-
echo "Successfully published version ${NPM_PACKAGE_VERSION} to GitLab's NPM registry"
\ No newline at end of file
-
rm -rf ./clients
\ No newline at end of file
This diff is collapsed.
Click to expand it.
config/generate.sh
+
14
−
14
View file @
d5d99e31
...
...
@@ -54,30 +54,30 @@ generate_index() {
}
echo
"---deleting existing *.d.ts, *.d.ts.map, *.js, *.js.map files"
find ./config/
clients
/
*
/
**
/
-path
'*.d.ts'
-delete
find ./config/
clients
/
*
/
**
/
-path
'*.d.ts.map'
-delete
find ./config/
clients
/
*
/
**
/
-path
'*.js'
-delete
find ./config/
clients
/
*
/
**
/
-path
'*.js.map'
-delete
find ./config/
clients
/
*
/
**
/
-path
'*.ts.bak'
-delete
find ./config/
clients
-path
'*.d.ts'
-delete
find ./config/
clients
-path
'*.d.ts.map'
-delete
find ./config/
clients
-path
'*.js'
-delete
find ./config/
clients
-path
'*.js.map'
-delete
find ./config/
clients
-path
'*.ts.bak'
-delete
find ./config/
dist
/
*
/
**
/
-path
'*.d.ts'
-delete
find ./config/
dist
/
*
/
**
/
-path
'*.d.ts.map'
-delete
find ./config/
dist
/
*
/
**
/
-path
'*.js'
-delete
find ./config/
dist
/
*
/
**
/
-path
'*.js.map'
-delete
find ./config/
dist
/
*
/
**
/
-path
'*.ts.bak'
-delete
find ./config/
dist
-path
'*.d.ts'
-delete
find ./config/
dist
-path
'*.d.ts.map'
-delete
find ./config/
dist
-path
'*.js'
-delete
find ./config/
dist
-path
'*.js.map'
-delete
find ./config/
dist
-path
'*.ts.bak'
-delete
echo
"---generating index.ts files"
ts_files
=
$(
find ./config/
clients
/
**
/
-name
'*.ts'
)
ts_files
=
$(
find ./config/
dist
/
**
/
-name
'*.ts'
)
ts_files_array
=(
$ts_files
)
generate_index
"
${
ts_files_array
[@]
}
"
echo
"---generating *.d.ts, *.d.ts.map, *.js, *.js.map files"
npm i protobufjs@6.11.3
tsc
--project
./config
--declaration
--declarationMap
--sourceMap
--rootDir
./config/
clients
tsc
--project
./config
--declaration
--declarationMap
--sourceMap
--rootDir
./config/
dist
echo
"---deleting created tmp files"
npm uninstall protobufjs@6.11.3
find ./config/
clients
-name
'index.ts'
-delete
find ./config/
clients
/
*
/
**
-name
'index.ts'
-delete
find ./config/
dist
-name
'index.ts'
-delete
find ./config/
dist
/
*
/
**
-name
'index.ts'
-delete
find ./
-maxdepth
1
-name
'*.json'
-delete
find ./
-maxdepth
1
-name
'*.ts'
-delete
...
...
This diff is collapsed.
Click to expand it.
config/package.json
+
2
−
2
View file @
d5d99e31
...
...
@@ -2,9 +2,9 @@
"name"
:
"@perxis-js/perxis-client"
,
"version"
:
"1.0.5"
,
"description"
:
""
,
"main"
:
"
clients
/index.js"
,
"main"
:
"
dist
/index.js"
,
"files"
:
[
"
clients
/"
"
dist
/"
],
"repository"
:
{
"type"
:
"git"
,
...
...
This diff is collapsed.
Click to expand it.
config/tsconfig.json
+
3
−
1
View file @
d5d99e31
...
...
@@ -98,5 +98,7 @@
//
"skipDefaultLibCheck"
:
true
,
/*
Skip
type
checking
.d.ts
files
that
are
included
with
TypeScript.
*/
"skipLibCheck"
:
true
/*
Skip
type
checking
all
.d.ts
files.
*/
},
"include"
:
[
"./clients/**/*"
],
"include"
:
[
"./dist/**/*"
],
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment