grunt-y-u-no-bundle
Grunt task for asserting that all of your AMD driver scripts are being bundled by r.js
Getting Started
This plugin requires Grunt ~0.4.5
npm install grunt-y-u-no-bundle --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt;
Overview
The plugin will throw an error if there are driver scripts in your codebase that aren't excluded and aren't in the modules section of your requirejs configuration.
Usage
grunt;
Options
options.root
Type: String
The path to all of your JavaScript files
options.config
Type: String
The path to your requirejs config (containing the modules
attribute)
options.exclude
Type: String[]
A list of files to exclude as driver scripts that you really don't want bundled for whatever reason.