FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodejs-template/scripts/updateCode.js at master · rhappdev/nodejs-template · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
rhappdev
/
nodejs-template
Public
Notifications
You must be signed in to change notification settings
Fork
239
Star
42
Code
Issues
1
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodejs-template
/
scripts
/
updateCode.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (14 loc) · 363 Bytes
Breadcrumbs
nodejs-template
/
scripts
/
updateCode.js
Copy path
File metadata and controls
14 lines (14 loc) · 363 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var
pkg
=
require
(
"../package.json"
)
;
var
shelljs
=
require
(
"shelljs"
)
;
var
update
=
[
"sos-api"
]
;
for
(
var
key
in
pkg
.
dependencies
)
{
if
(
key
.
indexOf
(
"fes-"
)
===
0
)
{
update
.
push
(
key
)
;
}
}
console
.
log
(
"Tobe updated: "
,
update
)
;
update
.
forEach
(
function
(
upd
)
{
shelljs
.
exec
(
"npm update "
+
upd
)
;
}
)
console
.
log
(
"Update template"
)
;
shelljs
.
exec
(
"git fetch upstream"
)
;
Back
|
FazBrowse Home
|
New Git URL