Improve npm script hooks

This commit is contained in:
Daniel García Aubert 2019-11-28 18:07:25 +01:00
parent e841774978
commit 3498fceb6a

View File

@ -71,9 +71,12 @@
"lint:fix": "eslint --fix app.js \"lib/**/*.js\" \"test/**/*.js\"",
"lint": "eslint app.js \"lib/**/*.js\" \"test/**/*.js\"",
"preinstall": "make pre-install",
"pretest": "NODE_ENV=test node test setup",
"pretest:setup": "npm run lint",
"test:setup": "NODE_ENV=test node test setup",
"pretest": "npm run test:setup",
"test": "NODE_ENV=test mocha -t 5000 --exit --recursive test/acceptance test/integration test/unit",
"posttest": "NODE_ENV=test node test teardown",
"posttest": "npm run test:teardown",
"test:teardown": "NODE_ENV=test node test teardown",
"update-internal-deps": "rm -rf node_modules && npm install",
"docker-test": "./docker-test.sh",
"docker-bash": "./docker-bash.sh"