File tree 9 files changed +60
-13
lines changed
9 files changed +60
-13
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ name : Publish CI
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v1
12
+ - uses : actions/setup-node@v1
13
+ with :
14
+ node-version : 12
15
+ registry-url : https://registry.npmjs.org/
16
+ - run : yarn install
17
+ - run : npm publish --access public
18
+ env :
19
+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
Original file line number Diff line number Diff line change
1
+ name : Test CI
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ test :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v1
10
+ - uses : actions/setup-node@v1
11
+ with :
12
+ node-version : 12
13
+ registry-url : https://registry.npmjs.org/
14
+ - run : yarn install
15
+ - run : yarn test
Original file line number Diff line number Diff line change @@ -30,9 +30,3 @@ yarn.lock
30
30
npm-debug.log *
31
31
yarn-debug.log *
32
32
yarn-error.log *
33
-
34
- ** /.DS_Store
35
-
36
- .idea /
37
- .vscode /
38
- .vs /
Original file line number Diff line number Diff line change 6
6
"bracketSpacing": true,
7
7
"jsxBracketSameLine": false,
8
8
"arrowParens": "always",
9
- "trailingComma": "none"
9
+ "trailingComma": "none",
10
+ "endOfLine":"auto"
10
11
}
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ const App = () => {
127
127
128
128
## Contribution
129
129
130
- Please make sure to read the[ Contributing Guide] ( https://github.com/mxdi9i7/vant-react/blob/master /CONTRIBUTION.md) before making a pull request.
130
+ Please make sure to read the[ Contributing Guide] ( .github /CONTRIBUTION.md) before making a pull request.
131
131
132
132
Or, join our discussion group on Wechat by adding me!
133
133
Original file line number Diff line number Diff line change 18
18
"test" : " run-s test:unit test:lint test:build" ,
19
19
"test:build" : " run-s build" ,
20
20
"test:lint" : " eslint ." ,
21
- "test:unit" : " cross-env CI=1 react-scripts test --env=jsdom" ,
21
+ "test:unit" : " cross-env CI=1 react-scripts test --env=jsdom --passWithNoTests " ,
22
22
"test:watch" : " react-scripts test --env=jsdom" ,
23
23
"predeploy" : " cd example && yarn install && yarn run build" ,
24
24
"deploy" : " gh-pages -d example/build" ,
Original file line number Diff line number Diff line change
1
+ /// <reference types="react-scripts" />
Original file line number Diff line number Diff line change 2
2
"compilerOptions" : {
3
3
"outDir" : " dist" ,
4
4
"module" : " esnext" ,
5
- "lib" : [" dom" , " esnext" ],
5
+ "lib" : [
6
+ " dom" ,
7
+ " esnext"
8
+ ],
6
9
"moduleResolution" : " node" ,
7
10
"jsx" : " react" ,
8
11
"sourceMap" : true ,
15
18
"suppressImplicitAnyIndexErrors" : true ,
16
19
"noUnusedLocals" : true ,
17
20
"noUnusedParameters" : true ,
18
- "allowSyntheticDefaultImports" : true
21
+ "allowSyntheticDefaultImports" : true ,
22
+ "target" : " es5" ,
23
+ "allowJs" : true ,
24
+ "skipLibCheck" : true ,
25
+ "strict" : true ,
26
+ "forceConsistentCasingInFileNames" : true ,
27
+ "resolveJsonModule" : true ,
28
+ "isolatedModules" : true ,
29
+ "noEmit" : true
19
30
},
20
- "include" : [" src" ],
21
- "exclude" : [" node_modules" , " dist" , " demo" ]
31
+ "include" : [
32
+ " src"
33
+ ],
34
+ "exclude" : [
35
+ " node_modules" ,
36
+ " dist" ,
37
+ " demo"
38
+ ]
22
39
}
You can’t perform that action at this time.
0 commit comments