File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11node_modules /
22.tmp /
3+ coverage /
34artifacts /
45npm-debug.log
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ before_script:
1818 - ' curl -Lo travis_after_all.py https://git.io/vLSON'
1919script :
2020 - npm run test
21+ - npm run check-coverage
2122after_success :
2223 - python travis_after_all.py
2324 - export $(cat .to_export_back)
Original file line number Diff line number Diff line change 55 "main" : " src/index.js" ,
66 "scripts" : {
77 "start" : " npm run test:watch" ,
8- "test" : " mocha test/tests/index.js --compilers js:babel/register" ,
8+ "test" : " istanbul cover -x ./test _mocha -- -R spec test/tests/index.js --compilers js:babel/register" ,
99 "test:watch" : " nodemon -q --exec \" $(npm bin)/mocha test/tests/index.js --watch --compilers js:babel/register\" --" ,
1010 "semantic-release" : " semantic-release pre && npm publish && semantic-release post" ,
11- "commit" : " git-cz"
11+ "commit" : " git-cz" ,
12+ "check-coverage" : " istanbul check-coverage --statements 80 --branches 80 --functions 80 --lines 80 "
1213 },
1314 "czConfig" : {
1415 "path" : " ./node_modules/cz-conventional-changelog"
1516 },
1617 "config" : {
1718 "ghooks" : {
18- "pre-commit" : " npm run test"
19+ "pre-commit" : " npm run test && npm run check-coverage "
1920 }
2021 },
2122 "homepage" : " https://github.com/commitizen/cz-cli" ,
4243 "devDependencies" : {
4344 "chai" : " 3.3.0" ,
4445 "ghooks" : " 0.3.2" ,
46+ "istanbul" : " 0.3.22" ,
4547 "lodash" : " 3.10.1" ,
4648 "mocha" : " 2.3.3" ,
4749 "semantic-release" : " ^4.3.5"
You can’t perform that action at this time.
0 commit comments