File tree Expand file tree Collapse file tree 4 files changed +15
-50
lines changed Expand file tree Collapse file tree 4 files changed +15
-50
lines changed Original file line number Diff line number Diff line change 11
11
name : restore npm cache
12
12
keys :
13
13
- npm-{{ .Branch }}-{{ checksum "package-lock.json" }}
14
- - run : make setup
15
- - run : make test
16
- - run : make coverage
14
+ - run : npm run setup
15
+ - run : npm run test
16
+ - run : npm run coverage
17
17
- save_cache :
18
18
name : save npm cache
19
19
key : npm-{{ .Branch }}-{{ checksum "package-lock.json" }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -33,8 +33,7 @@ You can provide a custom error message as an optional third parameter.
33
33
34
34
## Development
35
35
36
- - run all tests: ` make test `
37
- - see all available make commands: ` make help `
36
+ - run all tests: ` npm run test `
38
37
- deploy a new version:
39
38
- update ` package.json ` to the new version and commit to master
40
39
- run ` npm publish `
Original file line number Diff line number Diff line change 14
14
" dist"
15
15
],
16
16
"scripts" : {
17
- "prepublishOnly" : " make build" ,
18
- "test" : " make test"
17
+ "build" : " tsc" ,
18
+ "clean" : " rm -rf dist" ,
19
+ "coverage" : " node --test --import tsx --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info -- test/*.test.ts" ,
20
+ "doc" : " text-runner" ,
21
+ "fix" : " prettier --write . && eslint . --ext .ts --fix && sort-package-json --quiet" ,
22
+ "lint" : " eslint --ext .ts . && prettier --list-different . && tsc --noEmit && sort-package-json --check" ,
23
+ "prepublishOnly" : " tsc" ,
24
+ "setup" : " npm install" ,
25
+ "test" : " npm run fix && npm run lint && npm run unit && npm run doc" ,
26
+ "unit" : " mocha test/*.test.ts" ,
27
+ "update" : " npm-check-updates -u && npm install"
19
28
},
20
29
"dependencies" : {
21
30
"chalk" : " 4.1.1" ,
You can’t perform that action at this time.
0 commit comments