Closed orther closed 8 years ago
Glad to hear that. The feature is added in 6ea4966, and README is updated too.
However the example test has failed, indicating that if you use this as a module, you might need some flags like --harmony-destructuring
to make it works, though node.js 6.x should works.
See also #18.
Sweet! I am now using those changes. I am having errors when I set the mac icns but I will create an issue for that.
FYI for anyone wanting to use this module with gulp (or other build tools) I had to add the following code toward the top of my gulpfile.babel.js
to get it to work:
// required for nwjs-builder module
require("babel-polyfill");
require("babel-register")({
ignore: /node_modules\/(?!nwjs-builder|nwjs-download)/,
});
Thanks for the code snippet, close now as it has been solved.
This is great. I really appreciate your steady work on this.
I was using
nw-builder
from my gulp task to build my nw.js app but am usingnwjs-builder
now that I am usingnw.js@0.14.5
. It would be nice if this module could be imported and used programmatically likenw-builder
allows.Here is an example if how I was using
nw-builder
in a gulp task (gulp-tasks/build-app.js
):I have looked through the source of this probject but it doesn't seem like this is supported. For the time being I am just using
exec
to call thenwb
command in another process which is not ideal (one problem I have with this method is that the nwb command doesn't seem to return exit codes to indicated errors).Any information or advice for using this within a build tools programmatically would be greatly appreciated. Thanks for building this utility!