- Source:
Below are the APIs of CLI (Command Line Interface). Some inappropriate titles are used because they are generated by JsDoc.
Methods
(static) bundle()
- Source:
Example
Usage: wsh-packager bundle [options] <dirPath>
Bundles .js, .vbs (WSH scripts) files defined in .wsf file.
Options:
-V, --version output the version number
-J, --job-id <RegExp> A job id to be bundled (Default: "\.(js|vbs|wsf)$").
-D, --base-dir <path> Default is the <dirPath>
-I, --ignore-src <RegExp> Ex. "main\.js$"
-h, --help display help for command
// Ex1.
$ wsh-packager bundle "D:\MyWshProject"
done
// Ex2.
$ wsh-packager bundle "D:\MyWshProject" --job-id "JobName\.wsf$"
done