Skip to content

Commit 820d005

Browse files
committed
add npm scripts
1 parent 7a74dd6 commit 820d005

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"test": "npm run build && npm run lint && npm run coverage",
88
"lint": "jshint lib/ && jscs lib/ -v",
99
"coverage": "istanbul cover --report text --report html --report lcov node_modules/mocha/bin/_mocha",
10-
"build": "uglifyjs lib/posthtml-render.js -c \"evaluate=false\" -o posthtml-render.min.js"
10+
"build": "uglifyjs lib/posthtml-render.js -c \"evaluate=false\" -o posthtml-render.min.js",
11+
"preversion": "npm test",
12+
"postversion": "git push && git push --tags && rm -rf coverage"
1113
},
1214
"repository": {
1315
"type": "git",

0 commit comments

Comments
 (0)