Skip to content
This repository has been archived by the owner on Jun 15, 2018. It is now read-only.

maxkorp/node-pre-gyp-npmrc-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-pre-gyp-npmrc-helper

node-pre-gyp-npmrc-helper is a command line tool for calling out to node-pre-gyp in npm scripts, but to allow it to pull arguments like runtime from npmrc. This is useful so that native modules can automatically get downloads/compile for electron or node-webkit

##Installation Install it as a dependency, and include it in your bundledDependencies, just like with node-pre-gyp. node-pre-gyp is still required, and must be configured as per usual

"dependencies": {
  "node-pre-gyp": "x.y.z",
  "node-pre-gyp-npmrc-helper": "a.b.c"
},
"bundledDependencies": [
  "node-pre-gyp",
  "node-pre-gyp-npmrc-helper"
]

##Usage: Use it just like you would use node-pre-gyp in your npm scripts.

scripts: {
  "install": "npg-npmrc-helper install --fallback-to-build"
}

instead of

scripts: {
  "install": "node-pre-gyp install --fallback-to-build"
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published