Skip to content

Instantly share code, notes, and snippets.

@czzarr
Created July 28, 2012 14:54
Show Gist options
  • Save czzarr/3193667 to your computer and use it in GitHub Desktop.
Save czzarr/3193667 to your computer and use it in GitHub Desktop.
Custom grunt directive processing in config?
module.exports = function (grunt) {
// custom helper
grunt.registerHelper('concat_two_strings', function (a,b) {
return a + b;
}
// config
grunt.initConfig({
lint: { files: ['<concat_two_strings:need:linting>/*.js'] } // is this supposed to work or not?
});
};
@cowboy
Copy link

cowboy commented Jul 28, 2012

The entire string has to be a directive to be valid, so this could work: '<concat_two_strings:need:linting/*.js>'

@czzarr
Copy link
Author

czzarr commented Jul 29, 2012

oh ok thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment