prepublish

pull/29/head
afc163 10 years ago
parent 51c14b8872
commit adc05ad22e

@ -22,8 +22,6 @@ npm-debug.log
nohup.out nohup.out
_site _site
dist dist
elasticsearch-*
config/base.yaml
**/*.md **/*.md
docs docs
node_modules node_modules
@ -33,3 +31,6 @@ site
dist dist
*.yml *.yml
CNAME CNAME
components
nico.js
deploy.js

@ -1,6 +1,6 @@
{ {
"name": "antd", "name": "antd",
"version": "0.1.0", "version": "0.1.0-pre",
"title": "Ant Design", "title": "Ant Design",
"description": "下一个设计&前端框架", "description": "下一个设计&前端框架",
"homepage": "http://ant-design.github.io/", "homepage": "http://ant-design.github.io/",
@ -49,14 +49,14 @@
"webpack-dev-middleware": "~1.0.11" "webpack-dev-middleware": "~1.0.11"
}, },
"scripts": { "scripts": {
"babel": "rm -rf lib && babel components --out-dir lib && rm -rf components && mv lib components", "babel": "babel components --out-dir lib",
"build": "npm run clean && webpack && nico build", "build": "npm run clean && webpack && nico build",
"start": "npm run clean && nico server --watch", "start": "npm run clean && nico server --watch",
"clean": "rm -rf _site", "clean": "rm -rf _site",
"deploy": "npm run build && node deploy.js", "deploy": "npm run build && node deploy.js",
"lint": "eslint components index.js --ext '.js,.jsx'", "lint": "eslint components index.js --ext '.js,.jsx'",
"test": "webpack && npm run lint", "test": "webpack && npm run lint",
"postinstall": "npm run babel" "prepublish": "npm run babel"
}, },
"precommit": [ "precommit": [
"lint" "lint"

Loading…
Cancel
Save