fix scripts

This commit is contained in:
yiminghe 2016-01-14 19:23:25 +08:00
parent dc3b34510b
commit 1afb9b543d
4 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "antd",
"version": "0.12.0-beta9",
"version": "0.12.0-beta10",
"title": "Ant Design",
"description": "一个 UI 设计语言",
"homepage": "http://ant.design/",

View File

@ -13,7 +13,7 @@ fs.writeFileSync(
"module.exports = " + JSON.stringify(require('../package.json')) + ";",
'utf-8'
);
var antdCss = path.join(cwd, 'dist/index.css');
var antdCss = path.join(cwd, 'dist/antd.css');
fs.createReadStream(antdCss)
.pipe(fs.createWriteStream(path.join(cwd, 'lib/index.css')));
console.log('prenpm done');

View File

@ -1,6 +1,6 @@
npm run babel
rm -rf dist
webpack
webpack --config webpack.antd.config.js
node scripts/prenpm.js
npm publish $1 $2
rm -rf lib

View File

@ -1,6 +1,6 @@
var config = require('./webpack.config');
config.entry = {
'antd': ['./index.js']
'antd': ['./index.js', './style/index.less']
};
config.externals = {
'react': {