grunt-spider-script v0.0.9
Compile spider script into javascript.
Getting Started
This plugin requires Grunt.
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-spider-script --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt;
The "spider_script" task
Overview
In your project's Gruntfile, add a section named spider_script
to the data object passed into grunt.initConfig()
.
grunt
Options
options.sourcemap
Type: Boolean
Default: true
Generates sourcemaps next to compiled javascript files.
options.target
Type: String
Default: ES5
Which ECMAScript version to compile for. See spider documentation.
options.strict
Type: Boolean
Default: true
Determines if "use strict" should be enforced.
options.separator
Type: String
Default: grunt linefeed
Concatenated files will be joined with this string.
Usage Examples
Single File
grunt
Concatenate Files
Note: sourcemaps will be disabled.
grunt
Multiple files
grunt
ECMAScript 6
grunt
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Release History
- 2014-11-29 v0.0.9 Remove traceur dependency.
- 2014-11-29 v0.0.8 Update spider-script to spider-script 0.1.3. Add option to compile for ES5/6. Remove banner option.
- 2014-11-19 v0.0.7 Update spider-script to spider-script 0.0.7.
- 2014-11-19 v0.0.5 Update spider-script. Allow custom sourcemap source file.
- 2014-11-17 v0.0.4 Make spider-script dependency less strict
- 2014-11-17 v0.0.3 Support concatenation and file expanding
- 2014-11-17 v0.0.2 Add support for source maps and use strict mode
- 2014-11-17 v0.0.1 Initial release.
License
Copyright (c) 2014 Marius Craciunoiu. Licensed under the MIT license.