Improve release scripts

This commit is contained in:
Rodrigo Fernandes 2016-05-07 14:03:37 +01:00
parent ca2c52438d
commit 9aa50909a7
No known key found for this signature in database
GPG key ID: 08E3C5F38969078E

View file

@ -38,9 +38,14 @@
"scripts": { "scripts": {
"release": "./scripts/release.sh", "release": "./scripts/release.sh",
"templates": "./scripts/hulk.js --wrapper node --variable 'browserTemplates' ./src/templates/*.mustache > ./src/templates/diff2html-templates.js", "templates": "./scripts/hulk.js --wrapper node --variable 'browserTemplates' ./src/templates/*.mustache > ./src/templates/diff2html-templates.js",
"test": "jscs src/*.js src/ui/js/*.js && istanbul cover _mocha -- -u exports -R spec ./test/**/* && istanbul check-coverage --statements 90 --functions 90 --branches 85 --lines 90 ./coverage/coverage.json",
"style": "jscs src/*.js src/ui/js/*.js", "style": "jscs src/*.js src/ui/js/*.js",
"codacy": "istanbul cover _mocha -- -u exports -R spec ./test/**/* && cat ./coverage/lcov.info | codacy-coverage" "coverage": "istanbul cover _mocha -- -u exports -R spec ./test/**/*",
"check-coverage": "istanbul check-coverage --statements 90 --functions 90 --branches 85 --lines 90 ./coverage/coverage.json",
"test": "npm run style && npm run coverage && npm run check-coverage",
"codacy": "npm run coverage && cat ./coverage/lcov.info | codacy-coverage",
"preversion": "npm run release && npm test",
"version": "git add -A src dist",
"postversion": "git push && git push --tags"
}, },
"main": "./src/diff2html.js", "main": "./src/diff2html.js",
"browser": { "browser": {