Ice Builder for Gulp
npm install gulp-ice-builder
gulp-ice-builder calls the
slice2js compiler. You can install the latest slice2js with:
npm install slice2js
var iceBuilder = ;// Output directoryvar genDir = 'generated';gulp;
The root directory of your Ice installation used for locating the Slice-to-JS compiler and Slice files of your Ice installation, you don't need to set it when using the slice2js npm package.
If not set, the builder will try to use the slice2js npm package.
The directory of the
slice2js executable. This setting is ignored when using the slice2js npm package (
iceHome not set).
When not set
<iceHome>/cpp/bin are searched for the
The destination directory for your generated
When this option is set, dependencies will be computed and saved in a
.depend sub-directory. This avoids unnecessary
recompilation of your
Slice files. This directory must be the same as the directory used for
List of directories to add to Slice compiler include file search path.
Each directory in
include is passed to
-I<dir>. The Ice slice file
directory is automatically included from either the slice2js npm package or
iceHome (when set).
The list of extra arguments passed to the
For a full list of arguments you can pass to the
slice2js compiler refer to slice2js.