-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publishing pre-built binaries to GitHub releases
- Loading branch information
1 parent
2f31c51
commit 64b4c1d
Showing
6 changed files
with
183 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,6 @@ node_modules/ | |
npm-debug.log | ||
|
||
build | ||
build-pre-gyp | ||
|
||
.vscode |
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 |
---|---|---|
|
@@ -5,19 +5,24 @@ | |
"gypfile": true, | ||
"main": "dist/lib/index.js", | ||
"scripts": { | ||
"_preinstall": "npm install node-pre-gyp", | ||
"_install": "node-pre-gyp install --fallback-to-build", | ||
"install": "node-pre-gyp install --fallback-to-build", | ||
"prepublishOnly": "yarn run build && yarn run gyp:clean && yarn run gyp:configure && yarn run gyp:build && yarn test", | ||
"test": "jest", | ||
"build": "yarn run clean && yarn run lint && tsc", | ||
"build:w": "yarn run clean && tsc -w", | ||
"clean": "rimraf dist", | ||
"generate": "node dist/generate-files", | ||
"gyp:build": "node-gyp build", | ||
"gyp:build": "node-pre-gyp build", | ||
"gyp:clean": "rimraf build", | ||
"gyp:configure": "node-gyp configure", | ||
"gyp:configure": "node-pre-gyp configure", | ||
"lint": "tslint --project .", | ||
"pre-gyp:pack": "rimraf build-pre-gyp && node-pre-gyp rebuild && node-pre-gyp package" | ||
"pre-gyp:prebuild": "rimraf build-pre-gyp && yarn run gyp:clean && node-pre-gyp configure", | ||
"pre-gyp:publish": "yarn run pre-gyp:publish-darwin && yarn run pre-gyp:publish-linux && yarn run pre-gyp:publish-linux-ia32 && yarn run pre-gyp:publish-win32 && yarn run pre-gyp:publish-win32-ia32", | ||
"pre-gyp:publish-darwin": "yarn run pre-gyp:prebuild && node-pre-gyp rebuild --target_platform=darwin && node-pre-gyp package --target_platform=darwin && node-pre-gyp-github publish --release", | ||
"pre-gyp:publish-linux": "yarn run pre-gyp:prebuild && node-pre-gyp rebuild --target_platform=linux --target_arch=x64 && node-pre-gyp package --target_platform=linux --target_arch=x64 && node-pre-gyp-github publish --release", | ||
"pre-gyp:publish-linux-ia32": "yarn run pre-gyp:prebuild && node-pre-gyp rebuild --target_platform=linux --target_arch=ia32 && node-pre-gyp package --target_platform=linux --target_arch=ia32 && node-pre-gyp-github publish --release", | ||
"pre-gyp:publish-win32": "yarn run pre-gyp:prebuild && node-pre-gyp rebuild --target_platform=win32 --target_arch=x64 && node-pre-gyp package --target_platform=win32 --target_arch=x64 && node-pre-gyp-github publish --release", | ||
"pre-gyp:publish-win32-ia32": "yarn run pre-gyp:prebuild && node-pre-gyp rebuild --target_platform=win32 --target_arch=ia32 && node-pre-gyp package --target_platform=win32 --target_arch=ia32 && node-pre-gyp-github publish --release" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
@@ -63,12 +68,14 @@ | |
"node-pre-gyp": "^0.12.0" | ||
}, | ||
"devDependencies": { | ||
"node-cloop-gen": "0.0.1-beta.2" | ||
"node-cloop-gen": "0.0.1-beta.2", | ||
"node-pre-gyp-github": "^1.4.3" | ||
}, | ||
"binary": { | ||
"module_name": "addon", | ||
"module_path": "./build-pre-gyp/{node_abi}-{platform}-{arch}", | ||
"package_name": "{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz", | ||
"host": "https://github.com/asfernandes/node-firebird-drivers/releases/download/[email protected]" | ||
"host": "https://github.com/asfernandes/node-firebird-drivers/releases/download/", | ||
"remote_path": "node-firebird-native-api@{version}" | ||
} | ||
} |
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,3 @@ | ||
declare module 'node-pre-gyp' { | ||
export function find(path: string): string; | ||
} |
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 |
---|---|---|
|
@@ -27,6 +27,7 @@ | |
"exclude": [ | ||
"node_modules", | ||
"dist", | ||
"build" | ||
"build", | ||
"build-pre-gyp" | ||
] | ||
} |
Oops, something went wrong.