npm install grunt-steal --save-dev
grunt-steal is a collection of Grunt tasks for building out projects that use StealJS.
-
build
{steal-build}
:A task for building an application for production. Equivalent to using [steal-tools.build].
-
export
{steal-export}
:A task for exporting a project to another module format, for sharing with others who will use your project outside of StealJS.
-
live-reload
{steal-live-reload}
:A task for starting a [live-reload] server.
The steal-build
options object's values.
-
steal
{Object}
: Specifies theconfig
argument in [steal-tools.build]. The [config.main main] option must be specified. Typically, [config.configPath configPath] is also specified, as that is used to set [config.baseURL baseURL]. Any Steal [config.config configuration] can be specified; however, most other build configuration values are specified by [config.buildConfig], in the config file. -
buildOptions
{Object}
: Specifies theoptions
argument to [steal-tools.build stealTools.build].
A Grunt multi task that loads modules, and writes them out in different formats.
-
tasks
{Object<String,steal-tools.export.object>}
: An object with task names as keys, and exportObjects as values.grunt.initConfig({ "steal-export": { taskName1: { ExportObject1 }, taskName2: { ExportObject2 } } });
Each [steal-tools.export.object] 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: { .. } } } });
- A
The steal-live-reload
options object's values.
-
steal
{Object}
: Specifies theconfig
argument in [steal-tools.build]. The [config.main main] option must be specified. Typically, [config.configPath configPath] is also specified, as that is used to set [config.baseURL baseURL]. Any Steal [config.config configuration] can be specified; however, most other build configuration values are specified by [config.buildConfig], in the config file. -
liveReloadOptions
{Object}
: Specifies theoptions
argument to [steal-tools.cmd.live-reload steal-tools live-reload].
MIT