Broccoli build and serve tasks for Grunt task runner
Allows you to execute your Broccoli configurations as Grunt tasks. Broccoli is an asset pipeline that allows for incremental builds. Broccoli rebuilds individual files instead of the entire project as Grunt watch does. Checkout the Broccoli Sample App.
grunt-broccoli is a multi-task so you must specify a target when running the task.
You can configure these settings (see examples below):
config: [String or Function]
If a string, it refers to the location of the Brocfile relative to the current working directory.
If a function, it expects that the return value is a Broccoli-compatible tree.
Defaults to 'Brocfile.js'.
Specifies the output folder. This doesn't affect the
watch commands will abort if a
dest directory is not set.
Specifies the host and port that the Broccoli server runs on. This only affects the
BROCCOLI_ENV to use (see broccoli-env).
broccoli:dist:dest: 'dist'var transpiled = transpileTree'lib';var allFiles = mergeTreestranspiled 'vendor';var concated = concatFilesallFiles;var uglified = uglifyFilesconcated;return uglified;dev:dest: 'tmp/tests'config: 'brocfiles/development.js'port: 4201