grunt-steal-node

Grunt task for running steal build scripts

npm install grunt-steal-node
6 downloads in the last week
12 downloads in the last month

grunt-steal

Build Status

A task to allow for ease of running multiple Steal builds in your project.

This assumes that you have a stealconfig.js and a steal subfolder containing steal.js. If you install steal getting these prereqs is as simply as running steal install.

Getting Started

Install this plugin with: npm install grunt-steal-node

Then add this line to your project's Gruntfile.js file:

grunt.loadNpmTasks('grunt-steal-node');

Overview

Specify a steal section in your Gruntfile.js. This will allow configurations for overriding options in the specified build scripts.

Sample config

The configuration below specifies the steal root, where the js runner exists, then runs each build script.

  steal: {
    options: {
      compressor: "uglify"
    },
    dist: {
      src: "path/to/my/app.js",
      dest: "out_folder"
    }
  }

Or, if you have multiple projects all sharing the same steal, you can add those like so:

  steal: {
    options: {
      compressor: "uglify"
    },
    dist: {
      "out_folder": "path/to/my/app.js",
            "other_folder": "path/to/my/second/app.js"
    }
  }

Options

There are a number of options available. Specify them in the options section of your config.

compressor

Specifies which JavaScript compressor to use. Valid options are either closure or uglify (closure is the current default).

includeSteal

Signals that you want to package steal.js as part of the produced production.js. To turn on this option set it to: includeSteal: true.

depth

Specify the depth for packages.

npm loves you