Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wildcat
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bal Feng
wildcat
Commits
455fc09f
Commit
455fc09f
authored
Jul 30, 2018
by
Jason Zhou
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop'
parents
914081b6
f4745936
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
package.json
package.json
+1
-1
actions.js
packages/actions.js
+10
-0
No files found.
package.json
View file @
455fc09f
{
{
"name"
:
"
wildcat
"
,
"name"
:
"
wildcat
"
,
"version"
:
"
0.1
.0"
,
"version"
:
"
1.0
.0"
,
"description"
:
"A cli tool for accelerating webpack dev server of Bobcat."
,
"description"
:
"A cli tool for accelerating webpack dev server of Bobcat."
,
"main"
:
"index.js"
,
"main"
:
"index.js"
,
"bin"
:
{
"bin"
:
{
...
...
packages/actions.js
View file @
455fc09f
...
@@ -23,11 +23,21 @@ const preserveOldFiles = () => {
...
@@ -23,11 +23,21 @@ const preserveOldFiles = () => {
const
restoreOldFiles
=
()
=>
{
const
restoreOldFiles
=
()
=>
{
log
.
title
(
'📤 Restore previous configs'
)
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
=>
{
BACKUP_FILES
.
forEach
(
file
=>
{
log
.
item
(
`Restoring
${
file
}
...`
)
log
.
item
(
`Restoring
${
file
}
...`
)
const
basename
=
path
.
basename
(
file
)
const
basename
=
path
.
basename
(
file
)
fs
.
copyFileSync
(
`
${
__dirname
}
/backups/
${
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'
)
=>
{
const
updateConfigFiles
=
(
mode
=
'chill'
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment