Skip to content

Commit

Permalink
Format build targets, move all the comments to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
mklabs committed May 19, 2012
1 parent 2d5db6c commit 67bbb06
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions tasks/h5bp.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,34 @@ var fs = require('fs'),
//
// not implemented tasks (add noop waithing for their impl): manifest images
//

//
//
// build (default) no html optimizations
//
// text same as build but without image (png/jpg) optimizing
//
// buildkit minor html optimizations, all html whitespace/comments
// maintained
//
// basics same as build minus plugs minor html optimizations
// (extra quotes and comments removed)
// (todo: inline script/style minified)
//
// minify same as build plus full html minification,
//

module.exports = function(grunt) {

// Setup some default alias...
grunt.registerTask('default', 'build:default');
grunt.registerTask('reload', 'default connect watch:reload');

// and build targets, these are equivalent to alias except that we
// defined a single task and use arguments to trigger the appropriate
// target
var targets = {
// build - (default) no html optimizations
default: 'concat css min img rev usemin manifest',

// text - same as build but without image (png/jpg) optimizing
text: 'concat css min rev usemin manifest',

// buildkit - minor html optimizations, all html whitespace/comments
// maintained
// (todo: inline script/style minified)
default: 'concat css min img rev usemin manifest',
text: 'concat css min rev usemin manifest',
buildkit: 'concat css min img rev usemin manifest html:buildkit',

// basics - same as build minus plugs minor html optimizations
// (extra quotes and comments removed)
// (todo: inline script/style minified)
basics: 'concat css min img rev usemin manifest html:basics',

// minify - same as build plus full html minification,
minify: 'concat css min img rev usemin manifest html:compress'
basics: 'concat css min img rev usemin manifest html:basics',
minify: 'concat css min img rev usemin manifest html:compress'
};

var targetList = grunt.log.wordlist(Object.keys(targets));
Expand Down

0 comments on commit 67bbb06

Please sign in to comment.