steal-build

  • typedef
grunt-steal.build {Object}  

The steal-build options object's values.

Object

Properties

  1. steal {Object}

    Specifies the config argument in build. The main option must be specified. Typically, configPath is also specified, as that is used to set baseURL. Any Steal configuration can be specified; however, most other build configuration values are specified by buildConfig, in the config file.

  2. buildOptions {Object}

    Specifies the options argument to stealTools.build.

Use

Note: The steal-build Grunt task calls steal-tools.build internally. This page documents the specifics of the Grunt task. Read steal-tools.build's documentation for how to use the build in various workflows and detailed information on the steal and options arguments.

"steal-build" is registered as a Grunt multi-build task. Specify the default "steal-build" task options, as follows:

grunt.initConfig({
  "steal-build": {
    default: {
      options: {
        steal: {
          config: __dirname + "/app/config.js",
          main: "app/app"
        },
        buildOptions: {
          minify: false
        }
      }
    }
  }
});

The Grunt task takes 2 objects as its options: steal, and buildOptions.

steal

These are 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"]
}

buildOptions

The buildOptions property specifies the properties on the options argument to stealTools.build. Read more about them on stealTools.build.

Help us improve StealJS by taking our community survey