funcunit
Version:
<!-- @hide title
65 lines (46 loc) • 1.84 kB
Markdown
{{}} steal-tools.grunt.live-reload steal-live-reload
steal-tools.grunt
The `steal-live-reload` options object's values.
{Object} system Specifies the `config` argument in
[steal-tools.build]. The [System.main main] option must be specified. Typically,
[System.configPath configPath] is also specified, as that is used to set
[System.baseURL baseURL]. Any System [System.config configuration] can be specified; however,
most other __build__ configuration values are specified
by [System.buildConfig], in the config file.
{Object} liveReloadOptions Specifies the `options` argument
to [steal-tools.cmd.live-reload steal-tools live-reload].
## Use
`"steal-live-reload"` is registered as a Grunt multi-build task. Specify the
default "steal-live-reload" task options, as follows:
grunt.initConfig({
"steal-live-reload": {
default: {
options: {
system: {
config: __dirname + "/app/config.js",
main: "app/app"
},
liveReloadOptions: {
liveReloadPort: 8013
}
}
}
}
});
The Grunt task takes 2 objects as its
options: `system`, and `liveReloadOptions`.
## system
These are [System.config] values that are used to
load modules during the build process. Typically, you will want
to specify at least the `config` and `main` options, like so:
{
config: __dirname + "/config.js",
main: ["math/add", "math/subtract"]
}
## liveReloadOptions
The `liveReloadOptions` property specifies the properties on the `options`
argument to [steal-tools.cmd.live-reload steal-tools live-reload].
The following options are available:
- liveReloadPort <i>{Number}</i>
Read more about them on [steal-tools.cmd.live-reload steal-tools live-reload].