File tree Expand file tree Collapse file tree 8 files changed +1678
-17
lines changed Expand file tree Collapse file tree 8 files changed +1678
-17
lines changed Original file line number Diff line number Diff line change
1
+ dist
Original file line number Diff line number Diff line change
1
+ {
2
+ "env" : {
3
+ "es2021" : true ,
4
+ "mocha" : true ,
5
+ "node" : true
6
+ },
7
+ "extends" : [" standard-with-typescript" , " prettier" ],
8
+ "parserOptions" : {
9
+ "ecmaVersion" : 2021 ,
10
+ "project" : " tsconfig.json" ,
11
+ "sourceType" : " module"
12
+ },
13
+ "plugins" : [" @typescript-eslint" ],
14
+ "rules" : {
15
+ "@typescript-eslint/explicit-function-return-type" : " off" ,
16
+ "@typescript-eslint/naming-convention" : " off" ,
17
+ "@typescript-eslint/no-namespace" : " off" ,
18
+ "@typescript-eslint/restrict-plus-operands" : " off" ,
19
+ "@typescript-eslint/restrict-template-expressions" : " off" ,
20
+ "@typescript-eslint/strict-boolean-expressions" : " off"
21
+ }
22
+ }
Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' **'
7
+
8
+ jobs :
9
+ build-check :
10
+ name : Build check
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+
17
+ - run : yarn
18
+ - run : yarn lint
19
+ - run : yarn build
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ release :
5
+ types :
6
+ - published
7
+
8
+ jobs :
9
+ publish :
10
+ name : Publish
11
+
12
+ if : github.repository_owner == 'coajs'
13
+
14
+ runs-on : ubuntu-latest
15
+
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+
19
+ - uses : actions/setup-node@v1
20
+ with :
21
+ node-version : 12
22
+ registry-url : https://registry.npmjs.org
23
+
24
+ - name : Yarn
25
+ run : |
26
+ yarn
27
+
28
+ - name : Lint
29
+ run : |
30
+ yarn lint
31
+
32
+ - name : Build
33
+ run : |
34
+ yarn version --no-git-tag-version --new-version ${{ github.event.release.tag_name }}
35
+ yarn build
36
+
37
+ - name : Publish
38
+ env :
39
+ NODE_AUTH_TOKEN : ${{ secrets.AEX_NPM_TOKEN }}
40
+ run : |
41
+ yarn publish dist
42
+
43
+ - name : Sync
44
+ run : |
45
+ sleep 5s
46
+ yarn sync
Original file line number Diff line number Diff line change
1
+ dist
Original file line number Diff line number Diff line change
1
+ {
2
+ "printWidth" : 160 ,
3
+ "semi" : false ,
4
+ "singleQuote" : true
5
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " coa-env" ,
3
- "version" : " 1.1 .0" ,
3
+ "version" : " 0.0 .0" ,
4
4
"description" : " env component for coa" ,
5
5
"keywords" : [
6
6
" coajs" ,
16
16
},
17
17
"scripts" : {
18
18
"dev" : " tsc -w" ,
19
- "build" : " rm -rf dist && tsc && cp package.json dist" ,
20
- "npm-publish" : " yarn build && yarn version --patch && cp package.json README.md dist && cd dist && npm publish"
19
+ "build" : " rm -rf dist && tsc && cp package.json *.md dist" ,
20
+ "lint" : " eslint ." ,
21
+ "prettier" : " prettier -w ." ,
22
+ "sync" : " curl -X PUT 'https://npm.taobao.org/sync/coa-env?sync_upstream=true'"
21
23
},
22
24
"dependencies" : {
23
- "coa-error" : " ^1.1.3 "
25
+ "coa-error" : " ^1.5.2 "
24
26
},
25
27
"devDependencies" : {
26
- "@types/node" : " ^14.14.33" ,
27
- "typescript" : " ^4.2.3"
28
+ "@types/node" : " ^15.6.2" ,
29
+ "@typescript-eslint/eslint-plugin" : " ^4.26.0" ,
30
+ "eslint" : " ^7.27.0" ,
31
+ "eslint-config-prettier" : " ^8.3.0" ,
32
+ "eslint-config-standard-with-typescript" : " ^20.0.0" ,
33
+ "eslint-plugin-import" : " ^2.23.4" ,
34
+ "eslint-plugin-node" : " ^11.1.0" ,
35
+ "eslint-plugin-promise" : " ^5.1.0" ,
36
+ "prettier" : " ^2.3.0" ,
37
+ "typescript" : " ^4.3.2"
28
38
}
29
39
}
You can’t perform that action at this time.
0 commit comments