Browse Source

update build scripts

pull/59/head
afc163 9 years ago
parent
commit
8e3ac6b6a5
  1. 8
      docs/download.md
  2. 4
      package.json

8
docs/download.md

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

4
package.json

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

Loading…
Cancel
Save