Last active
August 29, 2015 14:15
-
-
Save tkellen/f796539baedcf0c1a001 to your computer and use it in GitHub Desktop.
grunt-runner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var runner = require('grunt-runner'); | |
var concat = require('grunt-contrib-concat'); | |
var config = { | |
src: 'path/to/src', | |
concat: { | |
targetOne: { | |
src: '<%= src %>/one/*.js', | |
dest: 'output1.js' | |
}, | |
targetTwo: { | |
src: '<%= src %>/two/*.js', | |
dest: 'output2.js' | |
} | |
} | |
}; | |
var concatTask = runner(concat, config); | |
concatTask('concat'); // yields two functions | |
concatTask('concat:targetTwo'); // yields one function | |
concatTask('concat --verbose'); // yields two verbose logging functions |
cowboy
commented
Feb 12, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment