Skip to content

Commit

Permalink
BLD: make sure the test script also verify beautification and linting…
Browse files Browse the repository at this point in the history
… of files before running tests
  • Loading branch information
royriojas committed Nov 1, 2015
1 parent c3d3320 commit e94e176
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"beautify-check": "esbeautifier -k 'cache.js' 'specs/**/*.js'",
"eslint": "eslinter 'cache.js' 'specs/**/*.js'",
"lint": "npm run beautify && npm run eslint",
"verify": "npm run beautify-check && npm run eslint",
"verify": "npm run beautify-check && npm run eslint && npm run test:cache",
"install-hooks": "prepush install && changelogx install-hook && precommit install",
"changelog": "changelogx -f markdown -o ./changelog.md",
"do-changelog": "npm run changelog && git add ./changelog.md && git commit -m 'DOC: Generate changelog' --no-verify",
Expand All @@ -35,7 +35,8 @@
"bump-major": "npm run pre-v && npm version major -m 'BLD: Release v%s' && npm run post-v",
"bump-minor": "npm run pre-v && npm version minor -m 'BLD: Release v%s' && npm run post-v",
"bump-patch": "npm run pre-v && npm version patch -m 'BLD: Release v%s' && npm run post-v",
"test": "mocha -R spec test/specs",
"test:cache": "mocha -R spec test/specs",
"test": "npm run verify --silent",
"cover": "istanbul cover test/runner.js html text-summary",
"watch": "watch-run -i -p 'test/specs/**/*.js' istanbul cover test/runner.js html text-summary"
},
Expand Down

0 comments on commit e94e176

Please sign in to comment.