node-sfxbundler
node-sfxbundler
is a Node module wrapper around the touchifyapp/sfx binary.
Getting Started
node-sfxbundler
works as a wrapper around the sfx
bundler.
It abstracts the commands' switches with JS object abstraction.
Installation
node-sfxbundler
can be installed using NPM:
$ npm install sfxbundler --save
Usage
First import node-sfxbundler
in your project:
var sfxbundler = ;
Then use sfxbundler's commands:
sfxbundler;
node-sfxbundler
uses native Promise
to wrap asynchronous operations and resolves with the result of the command:
sfxbundler; ;
Command-line
node-sfxbundler
can work as a simple wrapper around touchifyapp/sfx.
# Install module globally $ npm install sfxbundler -g # Run module from command line $ sfxbundler -exe path/to/sfx.exe -dir path/to/dir -id my.app.id
Documentation
sfxbundler.bundle(dest: string, dir: string, [options: BundleOptions]): Promise
Bundle a new sfx Executable using sfx bootstrapper.
/** Bundle Options */
sfxbundler.run(args: string[], [runOptions: RunOptions]): Promise
Run SFX bundler by using raw arguments.
/** Run Options */
Contribute
Install Project dependencies
$ npm install
Build project
$ npm run build