grunt-steal.export
{Object}
A Grunt multi task that loads modules, and writes them out in different formats.
Object
Properties
-
An object with task names as keys,
and exportObjects as values.
grunt.initConfig({
"steal-export": {
taskName1: { ExportObject1 },
taskName2: { ExportObject2 }
}
});
Each ExportObject specifies:
- A
steal
object that specifies the modules to be loaded.
- An
options
object that specifies any special loading behavior, like turning logging.
- An
outputs
object that specifies how the modules should be written out.
grunt.initConfig({
"steal-export": {
taskName: {
steal : { .. },
options: { .. },
outputs: { .. }
}
}
});
Use
steal-export
is a Grunt multi-task that is used to build library projects to a variety of formats. For example, to load a "main" module and transpile it, and all of its dependencies (except jQuery), to AMD and CommonJS with debug output:Each ExportObject task is configured by three values:
The ExportObject documentation has more information.
meta.steal.export-helpers
You can add your own export helpers on your Grunt config's
meta.steal.export-helpers
object, as follows: