-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(node-12): Add support for node 12 (#10)
* Add support for node 12 See mapbox/node-cpp-skel#54 nodejs/nan#849 * updates * Only need this * Use compatible versions * use dockerfile * updates * caching * Run commands from docker * Fix cov report * Fixes * lowercase * re-add cov check * change back to yarn run
- Loading branch information
Showing
11 changed files
with
992 additions
and
510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.git/ | ||
|
||
lib-cov | ||
*.seed | ||
*.log | ||
*.err | ||
*.csv | ||
*.dat | ||
*.out | ||
*.pid | ||
*.gz | ||
|
||
pids | ||
/logs | ||
results | ||
|
||
dump.rdb | ||
npm-debug.log | ||
node_modules/ | ||
|
||
coverage/ | ||
|
||
.idea/ | ||
.DS_Store | ||
|
||
xunit.xml | ||
|
||
db/seeds/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
{ | ||
"extends": "lob", | ||
"extends": "eslint-config-lob", | ||
"globals": { | ||
"expect": false | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 2018 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6.11.1 | ||
12.13.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM node:12.13.1-alpine3.10 | ||
|
||
ARG NODE_ENV=production | ||
ENV NODE_ENV=$NODE_ENV | ||
|
||
COPY ./scripts ./scripts | ||
RUN ./scripts/install-system-dependencies-alpine.sh | ||
RUN ./scripts/install-poppler-alpine.sh | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
|
||
COPY package.json package.json | ||
COPY yarn.lock yarn.lock | ||
RUN yarn --silent | ||
|
||
RUN apk del .build-deps | ||
|
||
COPY . . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Install Poppler and other dependencies | ||
# Alpine image is small, but lacks some essentials | ||
# - Add build tools, python, etc | ||
# - Add pkgconf, poppler-simple needs pkg-config to build | ||
# - Add poppler-dev, the standard poppler package won't do | ||
# - Add poppler-data from community repo | ||
apk add alpine-sdk | ||
apk add pkgconf | ||
apk add poppler-dev | ||
apk add poppler-data --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env sh | ||
|
||
apk update | ||
|
||
# Needed for poppler as well as some Node addons | ||
apk add --no-cache --virtual .build-deps python make g++ | ||
|
||
# Install certs so we can pull from https sources | ||
apk add --no-cache ca-certificates | ||
update-ca-certificates | ||
|
||
# For cov reports | ||
apk add lcov --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing | ||
|
||
# Install chamber | ||
wget -q -O /usr/bin/chamber https://github.com/segmentio/chamber/releases/download/v2.0.0/chamber-v2.0.0-linux-amd64 \ | ||
&& chmod +x /usr/bin/chamber |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.