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
118d768f
Commit
118d768f
authored
Nov 15, 2014
by
Adeel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Binary: Removes v8 version from the dir name.
parent
03bd9d01
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
10 deletions
+4
-10
index.js
lib/index.js
+1
-2
build.js
scripts/build.js
+2
-6
install.js
scripts/install.js
+1
-2
No files found.
lib/index.js
View file @
118d768f
...
...
@@ -8,8 +8,7 @@ var fs = require('fs'),
*/
function
getBinding
()
{
var
v8
=
'v8-'
+
/
[
0-9
]
+
\.[
0-9
]
+/
.
exec
(
process
.
versions
.
v8
)[
0
];
var
name
=
process
.
platform
+
'-'
+
process
.
arch
+
'-'
+
v8
;
var
name
=
process
.
platform
+
'-'
+
process
.
arch
;
var
candidates
=
[
path
.
join
(
__dirname
,
'..'
,
'build'
,
'Release'
,
'binding.node'
),
path
.
join
(
__dirname
,
'..'
,
'build'
,
'Debug'
,
'binding.node'
),
...
...
scripts/build.js
View file @
118d768f
...
...
@@ -82,8 +82,7 @@ function build(options) {
function
parseArgs
(
args
)
{
var
options
=
{
arch
:
process
.
arch
,
platform
:
process
.
platform
,
v8
:
/
[
0-9
]
+
\.[
0-9
]
+/
.
exec
(
process
.
versions
.
v8
)[
0
]
platform
:
process
.
platform
};
options
.
args
=
args
.
filter
(
function
(
arg
)
{
...
...
@@ -110,10 +109,7 @@ function parseArgs(args) {
*/
function
testBinary
(
options
)
{
options
.
bin
=
[
options
.
platform
+
'-'
+
options
.
arch
,
'-v8-'
+
options
.
v8
].
join
(
''
);
options
.
bin
=
options
.
platform
+
'-'
+
options
.
arch
;
if
(
options
.
force
||
process
.
env
.
SASS_FORCE_BUILD
)
{
return
build
(
options
);
...
...
scripts/install.js
View file @
118d768f
...
...
@@ -44,8 +44,7 @@ function download(url, dest, cb) {
*/
function
exists
()
{
var
v8
=
'v8-'
+
/
[
0-9
]
+
\.[
0-9
]
+/
.
exec
(
process
.
versions
.
v8
)[
0
];
var
name
=
process
.
platform
+
'-'
+
process
.
arch
+
'-'
+
v8
;
var
name
=
process
.
platform
+
'-'
+
process
.
arch
;
fs
.
exists
(
path
.
join
(
__dirname
,
'..'
,
'vendor'
,
name
),
function
(
exists
)
{
if
(
exists
)
{
...
...
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