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
bc78b227
Unverified
Commit
bc78b227
authored
Apr 26, 2019
by
Michael Mifsud
Committed by
GitHub
Apr 26, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2633 from xzyfer/node-12
Add support for Node 12
parents
0f86a0ae
12c00522
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
43 additions
and
24 deletions
+43
-24
.travis.yml
.travis.yml
+15
-9
CHANGELOG.md
CHANGELOG.md
+4
-0
README.md
README.md
+1
-0
appveyor.yml
appveyor.yml
+18
-10
binding.gyp
binding.gyp
+2
-3
extensions.js
lib/extensions.js
+1
-0
package.json
package.json
+1
-1
create_string.cpp
src/create_string.cpp
+1
-1
No files found.
.travis.yml
View file @
bc78b227
...
...
@@ -18,6 +18,12 @@ jobs:
node_js
:
"
node"
os
:
osx
-
stage
:
platform-test
node_js
:
"
11"
os
:
linux
-
stage
:
platform-test
node_js
:
"
11"
os
:
osx
-
stage
:
platform-test
node_js
:
"
10"
os
:
linux
-
stage
:
platform-test
...
...
@@ -30,28 +36,28 @@ jobs:
node_js
:
"
9"
os
:
osx
-
stage
:
platform-test
node_js
:
"
7
"
node_js
:
"
8
"
os
:
linux
-
stage
:
platform-test
node_js
:
"
7
"
node_js
:
"
8
"
os
:
osx
-
stage
:
platform-test
node_js
:
"
lts/carbon
"
node_js
:
"
7
"
os
:
linux
-
stage
:
platform-test
node_js
:
"
lts/carbon
"
node_js
:
"
7
"
os
:
osx
-
stage
:
platform-test
node_js
:
"
lts/boron
"
node_js
:
"
6
"
os
:
linux
-
stage
:
platform-test
node_js
:
"
lts/boron
"
node_js
:
"
6
"
os
:
osx
-
stage
:
platform-test
node_js
:
"
lts/argon
"
node_js
:
"
4
"
os
:
linux
-
stage
:
platform-test
node_js
:
"
lts/argon
"
node_js
:
"
4
"
os
:
osx
-
stage
:
platform-test
node_js
:
"
0.12"
...
...
@@ -74,7 +80,7 @@ before_install:
-
echo $TRAVIS_NODE_VERSION
-
npm config set python `which python`
-
if [ $TRAVIS_OS_NAME == "linux" ]; then
if [[ $(node -v) =~ v
1[01
] ]]; then
if [[ $(node -v) =~ v
[1-9][0-9
] ]]; then
export CC="gcc-4.9";
export CXX="g++-4.9";
export LINK="gcc-4.9";
...
...
CHANGELOG.md
View file @
bc78b227
## v4.12.0
https://github.com/sass/node-sass/releases/tag/v4.12.0
## v4.11.0
https://github.com/sass/node-sass/releases/tag/v4.11.0
...
...
README.md
View file @
bc78b227
...
...
@@ -4,6 +4,7 @@
NodeJS | Minimum node-sass version | Node Module
--------|--------------------------|------------
Node 12 | 4.12+ | 72
Node 11 | 4.10+ | 67
Node 10 | 4.9+ | 64
Node 8 | 4.5.3+ | 57
...
...
appveyor.yml
View file @
bc78b227
...
...
@@ -68,14 +68,18 @@
GYP_MSVS_VERSION
:
2015
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio 2015
-
nodejs_version
:
10
GYP_MSVS_VERSION
:
201
5
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio 201
5
GYP_MSVS_VERSION
:
201
7
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio 201
7
-
nodejs_version
:
11
GYP_MSVS_VERSION
:
2015
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio 2015
GYP_MSVS_VERSION
:
2017
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio 2017
-
nodejs_version
:
12
GYP_MSVS_VERSION
:
2017
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio 2017
install
:
-
ps
:
Install-Product node $env:nodejs_version $env:platform
# https://www.appveyor.com/docs/lang/nodejs-iojs/#installing-any-version-of-nodejs-or-iojs
-
ps
:
Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform
-
node --version
-
npm --version
-
npm install
...
...
@@ -161,14 +165,18 @@
GYP_MSVS_VERSION
:
2015
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio 2015
-
nodejs_version
:
10
GYP_MSVS_VERSION
:
201
5
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio 201
5
GYP_MSVS_VERSION
:
201
7
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio 201
7
-
nodejs_version
:
11
GYP_MSVS_VERSION
:
2015
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio 2015
GYP_MSVS_VERSION
:
2017
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio 2017
-
nodejs_version
:
12
GYP_MSVS_VERSION
:
2017
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio 2017
install
:
-
ps
:
Install-Product node $env:nodejs_version $env:platform
# https://www.appveyor.com/docs/lang/nodejs-iojs/#installing-any-version-of-nodejs-or-iojs
-
ps
:
Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform
-
node --version
-
npm --version
-
npm install
...
...
binding.gyp
View file @
bc78b227
...
...
@@ -28,9 +28,8 @@
}
},
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS': [
'-std=c++11'
],
'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
'CLANG_CXX_LIBRARY': 'libc++',
'OTHER_LDFLAGS': [],
'GCC_ENABLE_CPP_EXCEPTIONS': 'NO',
'MACOSX_DEPLOYMENT_TARGET': '10.7'
...
...
lib/extensions.js
View file @
bc78b227
...
...
@@ -77,6 +77,7 @@ function getHumanNodeVersion(abi) {
case
59
:
return
'Node.js 9.x'
;
case
64
:
return
'Node.js 10.x'
;
case
67
:
return
'Node.js 11.x'
;
case
72
:
return
'Node.js 12.x'
;
default
:
return
false
;
}
}
...
...
package.json
View file @
bc78b227
...
...
@@ -63,7 +63,7 @@
"
lodash
"
:
"^4.17.11"
,
"
meow
"
:
"^3.7.0"
,
"
mkdirp
"
:
"^0.5.1"
,
"
nan
"
:
"^2.1
0.0
"
,
"
nan
"
:
"^2.1
3.2
"
,
"
node-gyp
"
:
"^3.8.0"
,
"
npmlog
"
:
"^4.0.0"
,
"
request
"
:
"^2.88.0"
,
...
...
src/create_string.cpp
View file @
bc78b227
...
...
@@ -14,7 +14,7 @@ char* create_string(Nan::MaybeLocal<v8::Value> maybevalue) {
return
0
;
}
v8
::
String
::
Utf8Value
string
(
value
);
Nan
::
Utf8String
string
(
value
);
char
*
str
=
(
char
*
)
malloc
(
string
.
length
()
+
1
);
strcpy
(
str
,
*
string
);
return
str
;
...
...
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