node-pre-gyp-npmrc-helper
util for npm scripts to call out to node-pre-gyp but get arguments from npmrc
Last updated 11 years ago by maxkorp .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install node-pre-gyp-npmrc-helper 
SYNC missed versions from official npm registry.

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"
}

Current Tags

  • 1.1.0                                ...           latest (11 years ago)

2 Versions

  • 1.1.0                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 7
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE