From 34630b5fafe32878bf016968d386288e16766d74 Mon Sep 17 00:00:00 2001 From: Caleb Hearon Date: Sun, 3 Sep 2017 18:25:39 -0400 Subject: [PATCH] node-pre-gyp install script for canvas-prebuilt --- .travis.yml | 2 ++ package.json | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 747f4c97b..9b1276f57 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,6 @@ language: node_js +install: + - npm install --build-from-source node_js: - '8' - '6' diff --git a/package.json b/package.json index dbb7d2884..84fe14afd 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "description": "Canvas graphics API backed by Cairo", "version": "2.0.0-alpha.5", "author": "TJ Holowaychuk ", + "main": "index.js", "browser": "browser.js", "contributors": [ "Nathan Rajlich ", @@ -27,9 +28,17 @@ "pretest": "node-gyp build", "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", "pretest-server": "node-gyp build", - "test-server": "node test/server.js" + "test-server": "node test/server.js", + "install": "node-pre-gyp install" + }, + "binary": { + "module_name": "canvas-prebuilt", + "module_path": "build/Release", + "host": "https://github.com/chearon/node-canvas-prebuilt/releases/download/", + "remote_path": "v{version}" }, "dependencies": { + "node-pre-gyp": "^0.6.36", "nan": "^2.4.0" }, "devDependencies": {