Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gitlab-artifact-dep
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
elice
gitlab-artifact-dep
Commits
a52478ec
Commit
a52478ec
authored
Jan 12, 2018
by
Jeongmin Byun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove gutil using code
parent
0d846fbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
package.json
package.json
+1
-1
src/index.js
src/index.js
+3
-3
No files found.
package.json
View file @
a52478ec
{
"name"
:
"gitlab-artifact-dep"
,
"version"
:
"0.2.
0
"
,
"version"
:
"0.2.
1
"
,
"description"
:
"Manages node.js package dependency towards Gitlab artifacts."
,
"main"
:
"src/index.js"
,
"repository"
:
"ssh://git@git.elicer.io:2201/elice/gitlab-artifact-dep.git"
,
...
...
src/index.js
View file @
a52478ec
...
...
@@ -66,7 +66,7 @@ function download(url, token, dest, attemptCount) {
if
(
count
<
MAX_DOWNLOAD_COUNT
)
{
const
message
=
(
`Requested GitLab artifact does not exist. `
+
`Installer will try to download again in
${
DOWNLOAD_SLEEP_DURATION
/
1000
}
seconds.`
);
gutil
.
log
(
message
);
log
(
message
);
setTimeout
(()
=>
{
download
(
url
,
token
,
dest
,
count
+
1
).
then
(
val
=>
{
...
...
@@ -195,7 +195,7 @@ function yarn(arg, cwd, cb) {
}
script
.
on
(
'
exit
'
,
function
(
code
)
{
if
(
code
!==
0
)
{
throw
new
gutil
.
PluginError
(
'
gitlab
'
,
`Failed on running Yarn with "
${
arg
}
" at "
${
cwd
}
".`
)
;
throw
`Failed on running Yarn with "
${
arg
}
" at "
${
cwd
}
".`
;
}
cb
(
code
);
});
...
...
@@ -205,7 +205,7 @@ function removePeerDependencies(project) {
return
new
Promise
((
resolve
,
reject
)
=>
{
const
packageInfo
=
JSON
.
parse
(
fs
.
readFileSync
(
`
${
project
.
path
}
/package.json`
,
'
utf8
'
,
function
(
err
)
{
if
(
err
)
{
console
.
log
(
`No package.json found in "
${
project
.
path
}
".`
);
log
(
`No package.json found in "
${
project
.
path
}
".`
);
}
}));
if
(
packageInfo
)
{
...
...
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