Skip to content

Commit 34630b5

Browse files
committed
node-pre-gyp install script for canvas-prebuilt
1 parent bc1a1f1 commit 34630b5

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
language: node_js
2+
install:
3+
- npm install --build-from-source
24
node_js:
35
- '8'
46
- '6'

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"description": "Canvas graphics API backed by Cairo",
44
"version": "2.0.0-alpha.5",
55
"author": "TJ Holowaychuk <[email protected]>",
6+
"main": "index.js",
67
"browser": "browser.js",
78
"contributors": [
89
"Nathan Rajlich <[email protected]>",
@@ -27,9 +28,17 @@
2728
"pretest": "node-gyp build",
2829
"test": "standard examples/*.js test/server.js test/public/*.js benchmark/run.js util/has_lib.js browser.js index.js && mocha test/*.test.js",
2930
"pretest-server": "node-gyp build",
30-
"test-server": "node test/server.js"
31+
"test-server": "node test/server.js",
32+
"install": "node-pre-gyp install"
33+
},
34+
"binary": {
35+
"module_name": "canvas-prebuilt",
36+
"module_path": "build/Release",
37+
"host": "https://github.com/chearon/node-canvas-prebuilt/releases/download/",
38+
"remote_path": "v{version}"
3139
},
3240
"dependencies": {
41+
"node-pre-gyp": "^0.6.36",
3342
"nan": "^2.4.0"
3443
},
3544
"devDependencies": {

0 commit comments

Comments
 (0)