buildFast.js node.js 快速发布到gitee上,这样就不用每次点击,并且自动弹出发布页面,再点击发布,完美!
const fs = require('fs-extra');
fs.copyFileSync('public/data/naviData.js', 'build/data/naviData.js');
let exec = require('child_process').exec;
exec('git add .',() => {
exec('git push', () => {
exec('git commit -m buildFast', () => {
exec('git push -u origin master', () => {
console.info('git is over')
exec('start https://gitee.com/pengchenggang/navigator/pages')
})
})
})
})