Grunt task for running steal build scripts
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
Install this plugin with:
npm install grunt-steal-node
Then add this line to your project's
steal section in your
Gruntfile.js. This will allow configurations for overriding options in the specified build scripts.
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"
There are a number of options available. Specify them in the
options section of your config.
uglify (closure is the current default).
Signals that you want to package
steal.js as part of the produced
production.js. To turn on this option set it to:
depth for packages.