File tree Expand file tree Collapse file tree 5 files changed +35
-11
lines changed Expand file tree Collapse file tree 5 files changed +35
-11
lines changed Original file line number Diff line number Diff line change @@ -3,27 +3,42 @@ node_js:
3
3
- " 10"
4
4
5
5
cache :
6
+ yarn : true
6
7
directories :
7
8
- node_modules
8
9
9
10
jobs :
10
11
include :
12
+
11
13
- stage : test
14
+ before_install :
15
+ - curl -o- -L https://yarnpkg.com/install.sh | bash
16
+ - export PATH="$HOME/.yarn/bin:$PATH"
12
17
install :
13
- - npm install
18
+ - yarn --frozen-lockfile
19
+ before_script :
20
+ - yarn run clean:component
21
+ - yarn run build:component
14
22
script :
15
- - npm run test:ci
23
+ - yarn run test:ci
24
+
16
25
- stage : deploy
17
26
if : (branch = master) AND (NOT (type IN (pull_request)))
27
+ before_install :
28
+ - curl -o- -L https://yarnpkg.com/install.sh | bash
29
+ - export PATH="$HOME/.yarn/bin:$PATH"
18
30
install :
19
- - npm install
31
+ - yarn --frozen-lockfile
32
+ before_script :
33
+ - yarn run clean
20
34
script :
21
- - npm run build:doc
22
- after_script :
23
- - cd site
35
+ - yarn run build
36
+ deploy :
37
+ - yarn run publish
38
+ after_deploy :
39
+ - cd packages/taro-ui-docs/dist
24
40
- git init
25
- - echo 'taro-ui.aotu.io' > CNAME
26
- - git add .
41
+ - git add -A
27
42
- git commit -m "Update Document"
28
43
- git push --force --quiet "https://${GITHUB_TOKEN}@${GH_REF}" master:gh-pages
29
44
Original file line number Diff line number Diff line change 4
4
],
5
5
"version" : " independent" ,
6
6
"npmClient" : " yarn" ,
7
- "usingWorkspaces " : true
7
+ "useWorkspaces " : true
8
8
}
Original file line number Diff line number Diff line change 15
15
]
16
16
},
17
17
"scripts" : {
18
- "build" : " lerna run build"
18
+ "bootstrap" : " lerna bootstrap" ,
19
+ "build" : " lerna run build" ,
20
+ "build:component" : " lerna run --scope taro-ui build" ,
21
+ "clean" : " lerna run clean" ,
22
+ "clean:component" : " lerna run --scope taro-ui clean" ,
23
+ "publish" : " lerna publish from-git --yes"
19
24
},
20
25
"devDependencies" : {
21
26
"@commitlint/cli" : " ^8.3.5" ,
Original file line number Diff line number Diff line change 32
32
"dev:h5" : " yarn run build:h5 --watch" ,
33
33
"dev:rn" : " yarn run build:rn --watch" ,
34
34
"dev:qq" : " yarn run build:qq --watch" ,
35
- "dev:quickapp" : " yarn run build:quickapp --watch"
35
+ "dev:quickapp" : " yarn run build:quickapp --watch" ,
36
+ "clean" : " rimraf .temp dist"
36
37
},
37
38
"browserslist" : [
38
39
" last 3 versions" ,
Original file line number Diff line number Diff line change 28
28
"url" :
" [email protected] :nervjs/taro-ui.git"
29
29
},
30
30
"license" : " MIT" ,
31
+ "publishConfig" : {
32
+ "tag" : " next"
33
+ },
31
34
"scripts" : {
32
35
"dev" : " yarn run dev:lib" ,
33
36
"dev:lib" : " tsc --project ./tsconfig.build.json --watch --incremental" ,
You can’t perform that action at this time.
0 commit comments