update build scripts

This commit is contained in:
afc163 2015-07-21 17:55:14 +08:00
parent a274d8088b
commit 8e3ac6b6a5
2 changed files with 10 additions and 2 deletions

View File

@ -15,13 +15,21 @@
- **开发版** <span class="versions" id="latest-version"></span>
开发版并不稳定,随时可能变更。
<ul id="latest-links">
<li>
<a href="http://ant.design/dist/antd.js">antd.js</a>
</li>
<li>
<a href="http://ant.design/dist/antd.min.js">antd.min.js</a>
</li>
<li>
<a href="http://ant.design/dist/antd.css">antd.css</a>
</li>
<li>
<a href="http://ant.design/dist/antd.min.css">antd.min.css</a>
</li>
</ul>
- **历史版本**https://github.com/ant-design/ant-design/releases

View File

@ -79,10 +79,10 @@
"release": "npm run clean && webpack --config webpack.config.production.js && webpack --config webpack.config.min.js && zip dist/${npm_package_name}-${npm_package_version}.zip -j dist dist/*",
"start": "npm run clean && nico server --watch",
"clean": "rm -rf _site dist",
"deploy": "rm -rf node_modules && node scripts/install.js && npm run clean && webpack --optimize-minimize && nico build && node scripts/deploy.js",
"deploy": "rm -rf node_modules && node scripts/install.js && npm run clean && webpack && webpack --config webpack.config.min.js && nico build && node scripts/deploy.js",
"lint": "eslint components index.js --ext '.js,.jsx'",
"test": "webpack && npm run lint",
"prepublish": "npm run babel && rm -rf dist && webpack && node scripts/prenpm.js"
"prepublish": "npm run babel && rm -rf dist && webpack --config webpack.config.production.js && node scripts/prenpm.js"
},
"precommit": [
"lint"