mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
fix scripts
This commit is contained in:
parent
dc3b34510b
commit
1afb9b543d
@ -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/",
|
||||
|
@ -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');
|
||||
|
@ -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
|
||||
|
@ -1,6 +1,6 @@
|
||||
var config = require('./webpack.config');
|
||||
config.entry = {
|
||||
'antd': ['./index.js']
|
||||
'antd': ['./index.js', './style/index.less']
|
||||
};
|
||||
config.externals = {
|
||||
'react': {
|
||||
|
Loading…
Reference in New Issue
Block a user