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
Jason Zhou
wildcat
Commits
f4745936
Commit
f4745936
authored
Jul 30, 2018
by
Jason Zhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log optimization
parent
87b60b32
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
actions.js
packages/actions.js
+10
-0
No files found.
packages/actions.js
View file @
f4745936
...
...
@@ -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'
)
=>
{
...
...
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