ExportObject
steal-tools.export.object
{Object}
An object that specifies the modules to load and their outputs. This is used by export and [steal-tools.grunt.export].
{Object}
An object that specifies the modules to load and their outputs. This is used by export and [steal-tools.grunt.export].
Use
Each ExportObject task is configured by three values:
steal
A StealConfig object that is used to load modules. Typically, you will want to specify at least the
config
andmain
options, like so:options
Options configures logging. Example:
or
outputs
outputs
specifies different ways the modules loaded bysteal
are written out. It's an object of ExportOutput objects. Each ExportOutput supports the following options:And the options available to TransformOptions.
Only one of
modules
,eachModule
, orgraphs
should be specified.Example:
output names
An output name can mixin default output options of an Export Helper, like [steal-tools/lib/build/helpers/cjs], by including a "+", followed by the name of the export helper. For example:
The given output ExportObject's value will overwrite or modify the behavior of the Export Helper. For example,
{dist: __dirname+"/cjs"}
will change the output destination of "+cjs".