Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
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
楚学文
node-sass
Commits
40dd964c
Commit
40dd964c
authored
Nov 12, 2016
by
David Gasperoni
Committed by
Michael Mifsud
Nov 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch from console.log to npmlog (#1786)
Change console.log to npmlog
parent
2882d6b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
install.js
scripts/install.js
+5
-5
No files found.
scripts/install.js
View file @
40dd964c
...
@@ -48,7 +48,7 @@ function download(url, dest, cb) {
...
@@ -48,7 +48,7 @@ function download(url, dest, cb) {
return
response
.
statusCode
>=
200
&&
response
.
statusCode
<
300
;
return
response
.
statusCode
>=
200
&&
response
.
statusCode
<
300
;
};
};
console
.
log
(
'Start downloading binary at'
,
url
);
log
.
http
(
'node-sass install'
,
'Start downloading binary at'
+
url
);
try
{
try
{
request
(
url
,
downloadOptions
(),
function
(
err
,
response
)
{
request
(
url
,
downloadOptions
(),
function
(
err
,
response
)
{
...
@@ -98,17 +98,17 @@ function checkAndDownloadBinary() {
...
@@ -98,17 +98,17 @@ function checkAndDownloadBinary() {
mkdir
(
path
.
dirname
(
sass
.
getBinaryPath
()),
function
(
err
)
{
mkdir
(
path
.
dirname
(
sass
.
getBinaryPath
()),
function
(
err
)
{
if
(
err
)
{
if
(
err
)
{
console
.
error
(
err
);
log
.
error
(
'node-sass install'
,
err
);
return
;
return
;
}
}
download
(
sass
.
getBinaryUrl
(),
sass
.
getBinaryPath
(),
function
(
err
)
{
download
(
sass
.
getBinaryUrl
(),
sass
.
getBinaryPath
(),
function
(
err
)
{
if
(
err
)
{
if
(
err
)
{
console
.
error
(
err
);
log
.
error
(
'node-sass install'
,
err
);
return
;
return
;
}
}
console
.
log
(
'Binary downloaded and installed at'
,
sass
.
getBinaryPath
());
log
.
info
(
'node-sass install'
,
'Binary downloaded and installed at'
+
sass
.
getBinaryPath
());
});
});
});
});
}
}
...
@@ -118,7 +118,7 @@ function checkAndDownloadBinary() {
...
@@ -118,7 +118,7 @@ function checkAndDownloadBinary() {
*/
*/
if
(
process
.
env
.
SKIP_SASS_BINARY_DOWNLOAD_FOR_CI
)
{
if
(
process
.
env
.
SKIP_SASS_BINARY_DOWNLOAD_FOR_CI
)
{
console
.
log
(
'Skipping downloading binaries on CI builds'
);
log
.
info
(
'node-sass install'
,
'Skipping downloading binaries on CI builds'
);
return
;
return
;
}
}
...
...
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