File tree 3 files changed +17
-31
lines changed
3 files changed +17
-31
lines changed Original file line number Diff line number Diff line change 1
1
sudo : false
2
2
language : node_js
3
- cache :
4
- yarn : true
5
- directories :
6
- - " ~/.npm"
7
3
notifications :
8
4
email : false
9
5
node_js :
10
6
- ' 10'
11
7
- ' 12'
12
8
- ' 14'
13
- env :
14
- global :
15
- - PATH=$HOME/.yarn/bin:$PATH
16
- before_install :
17
- - curl -o- -L https://yarnpkg.com/install.sh | bash
18
- install : yarn
19
- script : yarn validate
9
+ script : npm run validate
20
10
jobs :
21
11
include :
22
- - stage : release
23
- node_js : ' 14'
24
- deploy :
25
- provider : script
26
- script : yarn test:update && npx codecov && npx semantic-release
27
- skip_cleanup : true
12
+ - stage : release
13
+ node_js : ' 14'
14
+ deploy :
15
+ provider : script
16
+ script : npm run test:update && npx codecov && npx semantic-release
17
+ skip_cleanup : true
28
18
branches :
29
19
only : master
Original file line number Diff line number Diff line change @@ -7,12 +7,8 @@ to an Open Source Project on GitHub][egghead]
7
7
8
8
## Project setup
9
9
10
- Make sure that Yarn is installed.
11
- <br >
12
- Installation instructions can be found here: https://yarnpkg.com/en/docs/install .
13
-
14
10
1 . Fork and clone the repo
15
- 2 . Run ` yarn setup` to install dependencies and run validation
11
+ 2 . Run ` npm run setup -s ` to install dependencies and run validation
16
12
3 . Create a branch for your PR with ` git checkout -b pr/your-branch-name `
17
13
18
14
> Tip: Keep your ` master ` branch pointing at the original repository and make pull requests from
@@ -32,7 +28,7 @@ Installation instructions can be found here: https://yarnpkg.com/en/docs/install
32
28
33
29
## Committing and Pushing changes
34
30
35
- Please make sure to run the tests before you commit your changes. You can run `yarn test:update`
31
+ Please make sure to run the tests before you commit your changes. You can run `npm run test:update`
36
32
which will update any snapshots that need updating. Make sure to include those changes (if they
37
33
exist) in your commit.
38
34
Original file line number Diff line number Diff line change 41
41
"clean" : " rimraf dist" ,
42
42
"build" : " babel src --out-dir dist --ignore '**/__tests__/**,**/__mocks__/**'" ,
43
43
"test" : " jest src/__tests__ " ,
44
- "test:watch" : " yarn test --watch" ,
45
- "test:update" : " yarn test --updateSnapshot --coverage" ,
46
- "setup" : " yarn && yarn validate" ,
47
- "validate" : " yarn lint && yarn test && yarn clean && yarn build" ,
44
+ "test:watch" : " npm test --watch" ,
45
+ "test:update" : " npm test --updateSnapshot --coverage" ,
46
+ "setup" : " npm install && npm run validate" ,
47
+ "validate" : " npm run lint && npm test && npm run clean && npm run build" ,
48
48
"contributors:add" : " all-contributors add" ,
49
49
"contributors:generate" : " all-contributors generate"
50
50
},
94
94
},
95
95
"lint-staged" : {
96
96
"README.md" : [
97
- " yarn toc" ,
97
+ " npm run toc" ,
98
98
" prettier --parser markdown --write" ,
99
99
" git add"
100
100
],
101
101
".all-contributorsrc" : [
102
- " yarn contributors:generate" ,
102
+ " npm run contributors:generate" ,
103
103
" git add"
104
104
],
105
105
"**/*.js" : [
106
- " yarn lint" ,
107
- " yarn test" ,
106
+ " npm run lint" ,
107
+ " npm test" ,
108
108
" git add"
109
109
]
110
110
},
You can’t perform that action at this time.
0 commit comments