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
0
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-js
Commits
2bf2594b
Commit
2bf2594b
authored
2 years ago
by
ko_oler
Browse files
Options
Downloads
Patches
Plain Diff
правки по ПР
parent
907f43af
No related branches found
No related tags found
1 merge request
!1
Добавлена генерация файлов для frontend в Makefile и публикацию npm-пакета
Pipeline
#19370
passed with stage
Stage:
in 40 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+6
-9
6 additions, 9 deletions
.gitlab-ci.yml
Makefile
+2
-4
2 additions, 4 deletions
Makefile
with
8 additions
and
13 deletions
.gitlab-ci.yml
+
6
−
9
View file @
2bf2594b
stages
:
stages
:
-
publish-npm
-
deploy
publish_npm
:
publish_npm
:
image
:
"
node:current-alpine"
image
:
"
node:current-alpine"
stage
:
publish-npm
stage
:
deploy
variables
:
variables
:
GIT_SUBMODULE_STRATEGY
:
recursive
GIT_SUBMODULE_STRATEGY
:
recursive
before_script
:
before_script
:
-
apk add --update bash
-
apk add --update make bash protobuf-dev yarn
-
apk add --update make
-
npm install -g ts-proto@1.115.5
-
apk add --update protobuf-dev
-
npm install -g typescript@4.7.4
-
apk add --update yarn
rules
:
rules
:
-
if
:
'
$CI_
COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH
'
-
if
:
'
$CI_
PIPELINE_SOURCE
==
"merge_request_event"
'
changes
:
changes
:
-
config/package.json
-
config/package.json
script
:
script
:
-
npm install -g ts-proto@1.115.5
-
npm install -g typescript@4.7.4
-
mkdir config/dist
-
mkdir config/dist
-
make proto
-
make proto
-
cd ./config
-
cd ./config
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
2
−
4
View file @
2bf2594b
...
@@ -14,10 +14,8 @@ TSC_MAJOR_VERSION=$(shell tsc --version | awk '{print $$2;}' | cut -d. -f1)
...
@@ -14,10 +14,8 @@ TSC_MAJOR_VERSION=$(shell tsc --version | awk '{print $$2;}' | cut -d. -f1)
TSC_MINOR_VERSION
=
$(
shell tsc
--version
|
awk
'{print $$2;
}
'
|
cut
-d
.
-f2
)
TSC_MINOR_VERSION
=
$(
shell tsc
--version
|
awk
'{print $$2;
}
'
|
cut
-d
.
-f2
)
TSC_MIC_VERSION
=
$(
shell tsc
--version
|
awk
'{print $$2;
}
'
|
cut
-d
.
-f3
)
TSC_MIC_VERSION
=
$(
shell tsc
--version
|
awk
'{print $$2;
}
'
|
cut
-d
.
-f3
)
# Генерация js
# Генерация
proto
:
proto-js
proto
:
protoc-check js-check $(PROTOTSFILES) generate-ts generate-js
proto-js
:
protoc-check js-check $(PROTOTSFILES) generate-ts generate-js
@
echo
"Generated all protobuf JavaScrypt files"
@
echo
"Generated all protobuf JavaScrypt files"
%.ts
:
%.proto
%.ts
:
%.proto
...
...
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