Commit 455fc09f by Jason Zhou

Merge branch 'develop'

parents 914081b6 f4745936
{
"name": "wildcat",
"version": "0.1.0",
"version": "1.0.0",
"description": "A cli tool for accelerating webpack dev server of Bobcat.",
"main": "index.js",
"bin": {
......
......@@ -23,11 +23,21 @@ const preserveOldFiles = () => {
const restoreOldFiles = () => {
log.title('📤 Restore previous configs')
log.title(
`⚠️ Make sure you have execed ${chalk.bgGreen.black(
'wildcat run'
)}, or it may go wrong`
)
BACKUP_FILES.forEach(file => {
log.item(`Restoring ${file} ...`)
const basename = path.basename(file)
fs.copyFileSync(`${__dirname}/backups/${basename}`, file)
})
log.title(
`⚠️ Run ${chalk.bgGreen.black(
'npm update'
)} yourself to reset node_mouduls`
)
}
const updateConfigFiles = (mode = 'chill') => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment