Browse Source

Merge branch 'master' of github.com:ant-design/ant-design

pull/287/head
afc163 9 years ago
parent
commit
1c19ad1b6d
  1. 2
      package.json
  2. 7
      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"

7
scripts/publish.sh

@ -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
Loading…
Cancel
Save