Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit 098364e

Browse files
committed
Safe npm scripts
1 parent 7909853 commit 098364e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77
"dev": "nodemon -w lib -w examples -x \"npm run build && node examples/test.js\"",
88
"clean": "rimraf ./dist ./docs ./.nyc_output ./coverage",
99
"build": "babel -d ./dist ./lib",
10-
"test": "NODE_ENV=test nyc ava",
10+
"test": "npm run test:lint && npm run test:code",
11+
"test:lint": "eslint ./lib",
12+
"test:code": "NODE_ENV=test nyc ava",
1113
"coverage": "NODE_ENV=test nyc report --reporter=text-lcov",
1214
"report": "nyc report --reporter=text-lcov | coveralls",
13-
"lint": "eslint ./lib",
1415
"docs": "documentation build -f html -o docs",
1516
"deploy:docs": "buildbranch gh-pages docs",
16-
"postversion": "npm run lint && npm test && npm run build && npm publish && npm run docs && git push --all origin && git push --tags origin && npm run deploy:docs"
17+
"preversion": "npm test && npm run build",
18+
"postversion": "npm publish && npm run docs && git push --all origin && git push --tags origin && npm run deploy:docs"
1719
},
1820
"bin": {
1921
"createrest": "./bin/createrest.js",

0 commit comments

Comments
 (0)