fix publish

This commit is contained in:
yiminghe 2015-09-11 10:29:26 +08:00
parent 0fafa86cac
commit cc16da4a9f
2 changed files with 6 additions and 1 deletions

View File

@ -100,7 +100,7 @@
"lint": "eslint components index.js --ext '.js,.jsx'",
"lesslint": "lesslint style",
"test": "webpack && npm run lint",
"prepublish": "npm run babel && rm -rf dist && webpack --config webpack.config.production.js && node scripts/prenpm.js"
"pub": "sh ./scripts/publish.sh"
},
"precommit": [
"lint"

5
scripts/publish.sh Normal file
View File

@ -0,0 +1,5 @@
npm run babel
rm -rf dist
webpack --config webpack.config.production.js
node scripts/prenpm.js
npm publish