Utility to build native packages according to your engine
Linux | OSX | Windows | Coverage | Dependencies | DevDependencies |
---|---|---|---|---|---|
|
|
|
|
|
$ [sudo] npm install native-builder --save
Add to your package.json
{
...
"scripts": {
"install": "native-builder build"
}
}
Engines allows you to complie native package accourding to the package engine.
The user of your package should add to his package.json
{
...
"engines": {
"electron": "0.30.1"
}
}
Available engines are electron
, atom-shell
, nw.js
and node-webkit
.
For more info look at which-native-nodish
$ [sudo] npm install native-builder -g
$ native-builder build
$ native-builder --help
Usage: native-builder [command]
Commands:
resolve Resolve the build command
build Build native packages according to your engine
A cli tool to build native packages according to your engine
Options:
-h, --help output usage information
-V, --version output the version number
$ [sudo] npm install native-builder --save
var nativeBuilder = require('native-builder');
nativeBuilder.resolve()
.then(function (command) {
// command -> resolved command to execute
});
Unistall a package
nativeBuilder.build('command to build with')
.then(function (exec) {
// exec -> the exec object from the build action
});
$ npm test