Add npm prepublishOnly script
This commit is contained in:
parent
c73f79ef3b
commit
5a882cea2c
|
|
@ -6,10 +6,11 @@
|
||||||
"main": "dist/skinview3d.js",
|
"main": "dist/skinview3d.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rollup -c",
|
"build": "rollup -c",
|
||||||
|
"test": "karma start && npm run lint",
|
||||||
|
"prepublishOnly": "npm test && rimraf dist && npm run build",
|
||||||
"lint": "tslint --formatters-dir ./node_modules/tslint-formatter-beauty -t beauty -p .",
|
"lint": "tslint --formatters-dir ./node_modules/tslint-formatter-beauty -t beauty -p .",
|
||||||
"dev": "npm-run-all --parallel watch serve",
|
"dev": "npm-run-all --parallel watch serve",
|
||||||
"watch": "rollup -w -c",
|
"watch": "rollup -w -c",
|
||||||
"test": "karma start && npm run lint",
|
|
||||||
"serve": "ws"
|
"serve": "ws"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue