Skip to content

Commit

Permalink
Merge pull request #302 from nicolasnoble/node-10
Browse files Browse the repository at this point in the history
Adding initial node 10 support.
  • Loading branch information
nicolasnoble authored May 2, 2018
2 parents 13afb85 + 30310d7 commit 4885390
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/grpc-native-core/build.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
settings:
'#': It's possible to have node_version here as a key to override the core's version.
'node_version': 1.11.0
'node_version': 1.11.1
4 changes: 2 additions & 2 deletions packages/grpc-native-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grpc",
"version": "1.11.0",
"version": "1.11.1",
"author": "Google Inc.",
"description": "gRPC Library for Node",
"homepage": "https://grpc.io/",
Expand Down Expand Up @@ -30,7 +30,7 @@
"dependencies": {
"lodash": "^4.15.0",
"nan": "^2.0.0",
"node-pre-gyp": "0.7.0",
"node-pre-gyp": "^0.10.0",
"protobufjs": "^5.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/grpc-native-core/templates/package.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"lodash": "^4.15.0",
"nan": "^2.0.0",
"node-pre-gyp": "0.7.0",
"node-pre-gyp": "^0.10.0",
"protobufjs": "^5.0.0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
FROM node:8-alpine
FROM node:10-alpine
RUN apk add --no-cache python curl bash build-base
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

set arch_list=ia32 x64

set node_versions=4.0.0 5.0.0 6.0.0 7.0.0 8.0.0 9.0.0
set node_versions=4.0.0 5.0.0 6.0.0 7.0.0 8.0.0 9.0.0 10.0.0

set electron_versions=1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.7.0 1.8.0 2.0.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.


set -ex

arch_list=( ia32 x64 )
node_versions=( 4.0.0 5.0.0 6.0.0 7.0.0 8.0.0 9.0.0 )
node_versions=( 4.0.0 5.0.0 6.0.0 7.0.0 8.0.0 9.0.0 10.0.0 )
electron_versions=( 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.7.0 1.8.0 2.0.0 )

while true ; do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@

set -ex

# https://github.com/mapbox/node-pre-gyp/issues/362
npm install -g node-gyp

cd $(dirname $0)/../../..

rm -rf build || true
Expand All @@ -23,7 +26,7 @@ mkdir -p "${ARTIFACTS_OUT}"

npm update

node_versions=( 4.0.0 5.0.0 6.0.0 7.0.0 8.0.0 9.0.0 )
node_versions=( 4.0.0 5.0.0 6.0.0 7.0.0 8.0.0 9.0.0 10.0.0 )

for version in ${node_versions[@]}
do
Expand Down
8 changes: 7 additions & 1 deletion tools/release/kokoro.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@

@echo "Starting Windows build"

@rem https://github.com/mapbox/node-pre-gyp/issues/362
powershell -c "& { iwr https://raw.githubusercontent.com/grumpycoders/nvm-ps/master/nvm.ps1 | iex }"

SET PATH=%APPDATA%\nvm-ps;%APPDATA%\nvm-ps\nodejs;%PATH%
call nvm install 10
call nvm use 10

call npm install -g npm
call npm install -g node-gyp

cd /d %~dp0
Expand Down
8 changes: 7 additions & 1 deletion tools/release/kokoro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# https://github.com/mapbox/node-pre-gyp/issues/362
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

nvm install 10
nvm use 10
npm install -g npm
npm install -g node-gyp

set -ex
Expand Down

0 comments on commit 4885390

Please sign in to comment.