Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
wisdom-components
Commits
4ba92227
Commit
4ba92227
authored
Oct 30, 2020
by
叶飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: gitlab ci
parent
72d1c402
Pipeline
#18349
failed with stages
in 11 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
.gitlab-ci.yml
.gitlab-ci.yml
+10
-10
package.json
package.json
+1
-0
No files found.
.gitlab-ci.yml
View file @
4ba92227
...
...
@@ -2,7 +2,7 @@ variables:
DEPLOY_PATH
:
'
F:/WisdomComponents'
stages
:
-
in
stall
-
in
it
-
build
-
release
...
...
@@ -11,26 +11,25 @@ before_script:
-
echo 查看运行环境
-
whoami
-
node -v
-
dir
in
stall
:
stage
:
in
stall
in
it
:
stage
:
in
it
script
:
-
cd /d "${DEPLOY_PATH}/src/wisdom-components"
-
dir
-
git pull
-
echo 开始安装依赖...
-
nrm ls
-
npm install
-
lerna bootstrap
-
echo 安装完成
cache
:
key
:
${CI_COMMIT_REF_SLUG}
paths
:
-
node_modules/
build
:
stage
:
build
script
:
-
cd /d "${DEPLOY_PATH}/src/wisdom-components"
-
echo 开始打包...
-
npm run
build
-
npm run
deploy
-
echo 打包完成
cache
:
key
:
${CI_COMMIT_REF_SLUG}
...
...
@@ -40,6 +39,7 @@ build:
release
:
stage
:
release
script
:
-
cd /d "${DEPLOY_PATH}/src/wisdom-components"
-
echo 开始拷贝发布包...
-
robocopy dist
${DEPLOY_PATH}
-
robocopy dist
"${DEPLOY_PATH}/dist"
-
echo 发布完成
package.json
View file @
4ba92227
...
...
@@ -14,6 +14,7 @@
"release"
:
"node ./scripts/release.js"
,
"size"
:
"npm run build && size-limit"
,
"start"
:
"dumi dev"
,
"site"
:
"dumi build"
,
"tsc:duplicate"
:
"tsc -p ./tests/tsconfig.duplicate.json"
,
"sync:tnpm"
:
"node -e 'require(
\"
./scripts/syncTNPM
\"
)()'"
,
"test"
:
"umi-test"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment