UNPKG

funcunit

Version:
65 lines (46 loc) 1.84 kB
@typedef {{}} steal-tools.grunt.live-reload steal-live-reload @parent steal-tools.grunt The `steal-live-reload` options object's values. @option {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. @option {Object} liveReloadOptions Specifies the `options` argument to [steal-tools.cmd.live-reload steal-tools live-reload]. @body ## 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].