mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
add compiled css
This commit is contained in:
parent
7baa91f4d9
commit
a687c32b1d
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "antd",
|
"name": "antd",
|
||||||
"version": "0.10.0-beta5",
|
"version": "0.10.0-beta6",
|
||||||
"stableVersion": "0.9.1",
|
"stableVersion": "0.9.1",
|
||||||
"title": "Ant Design",
|
"title": "Ant Design",
|
||||||
"description": "一个 UI 设计语言",
|
"description": "一个 UI 设计语言",
|
||||||
|
@ -7,7 +7,10 @@ var originalIndex = fs.readFileSync(path.join(cwd, 'index.js'), 'utf-8');
|
|||||||
var newIndex = originalIndex
|
var newIndex = originalIndex
|
||||||
.replace(/\/components\//g, '/')
|
.replace(/\/components\//g, '/')
|
||||||
.replace("require('./package.json').version", "require('./version')")
|
.replace("require('./package.json').version", "require('./version')")
|
||||||
|
.replace("require('./style/index.less')", "require('../style/index.less')");
|
||||||
fs.writeFileSync(path.join(cwd, 'lib/index.js'), newIndex, 'utf-8');
|
fs.writeFileSync(path.join(cwd, 'lib/index.js'), newIndex, 'utf-8');
|
||||||
fs.writeFileSync(path.join(cwd, 'lib/version.js'), "module.exports = '" + require('../package.json').version + "';", 'utf-8');
|
fs.writeFileSync(path.join(cwd, 'lib/version.js'), "module.exports = '" + require('../package.json').version + "';", 'utf-8');
|
||||||
|
var antdCss = path.join(cwd, 'dist/index.css');
|
||||||
|
fs.createReadStream(antdCss)
|
||||||
|
.pipe(fs.createWriteStream(path.join(cwd, 'lib/index.css')));
|
||||||
console.log('prenpm done');
|
console.log('prenpm done');
|
||||||
|
Loading…
Reference in New Issue
Block a user