Merge pull request #265 from ant-design/publish

fix publish
This commit is contained in:
偏右
2015-09-11 10:49:25 +08:00
2 changed files with 8 additions and 1 deletions
+1 -1
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"
+7
View File
@@ -0,0 +1,7 @@
npm run babel
rm -rf dist
webpack --config webpack.config.production.js
node scripts/prenpm.js
npm publish
rm -rf lib
rm -rf dist