Browse Source

fix publish

pull/265/head
yiminghe 9 years ago
parent
commit
cc16da4a9f
  1. 2
      package.json
  2. 5
      scripts/publish.sh

2
package.json

@ -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

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