afc163
9 years ago
5 changed files with 22 additions and 37 deletions
@ -1,36 +0,0 @@ |
|||
*.iml |
|||
.idea/ |
|||
.ipr |
|||
.iws |
|||
*~ |
|||
~* |
|||
*.diff |
|||
*.patch |
|||
*.bak |
|||
.DS_Store |
|||
Thumbs.db |
|||
.project |
|||
.*proj |
|||
.svn/ |
|||
*.swp |
|||
*.swo |
|||
*.log |
|||
node_modules/ |
|||
.buildpath |
|||
.settings |
|||
npm-debug.log |
|||
nohup.out |
|||
_site |
|||
dist |
|||
**/*.md |
|||
docs |
|||
node_modules |
|||
theme |
|||
static |
|||
site |
|||
dist |
|||
*.yml |
|||
CNAME |
|||
nico.js |
|||
deploy.js |
|||
scripts |
@ -0,0 +1,11 @@ |
|||
var fs = require('fs'); |
|||
var cwd = process.cwd(); |
|||
var path = require('path'); |
|||
var originalIndex = fs.readFileSync(path.join(cwd, 'index.js'), 'utf-8'); |
|||
var newIndex = originalIndex |
|||
.replace(/\/components\//g, '/') |
|||
.replace("require('./package.json').version", "'" + require('../package.json').version + "'") |
|||
.replace("require('./style/index.less')", "require('./index.css')"); |
|||
fs.writeFileSync(path.join(cwd, 'lib/index.js'), newIndex, 'utf-8'); |
|||
fs.createReadStream(path.join(cwd, 'dist/antd.css')).pipe(fs.createWriteStream(path.join(cwd, 'lib/index.css'))); |
|||
console.log('prenpm done'); |
Loading…
Reference in new issue