Skip to content
Mickael Daniel edited this page Jul 15, 2012 · 3 revisions

Task - clean

The clean task will remove and delete any previous build dirs (which are mapping staging and output config value).

staging: 'intermediate/',

// final build output
output: 'publish/',

No necessary configuration other than staging and output value is needed.

Helpers

rimraf

rimraf is the helper wrapper for rimraf package. The given cb callback if passed in will make the call asynchronous, otherwise rimraf.sync is used.

task.helper('rimraf', dir, cb);

» Home

» Tasks


» clean: Wipe the previous build dirs.

» mkdirs: Prepares the build dirs.

» concat: Concatenate files. (built-in)

» css: Concats, replaces @imports and minifies CSS files.

» min: Minify files using UglifyJS (built-in)

» rev: Automate the revving of assets and perform the hash rename

» usemin: Replaces references to non-minified scripts / stylesheets


» serve: Spawns up a basic local http server

» connect: livereload version of serve task

Clone this wiki locally