grunt
grunt copied to clipboard
Grunt: The JavaScript Task Runner
Hey guys, I'm using the concat task in one of my projects using the wildcard syntax to specify a pattern of files to match. It works fine for me. However...
I have tried to use [this](https://github.com/paazmaya/grunt-trimtrailingspaces) Grunt task, that uses Grunt's `grunt.file.read()` method, and noticed the following issue: When the given path starts with a "#" symbol (such as "#work/stuff"),...
It's always returning `false`. So, I ran some tests: ``` javascript grunt.registerTask("test", "", function(){}); grunt.registerTask("bleh", ["test"]); grunt.registerTask("default", ["test"]); console.log( grunt.task._tasks["bleh"].fn.alias ); // undefined console.log( grunt.task._tasks["bleh"].info ); // "Alias for..." console.log(...
Code: ``` console.log('/************* Test *****************/', (new Date()).toISOString()); var t = grunt.file.expand([ '**/*.js', '!node_modules/**', '!dist/**', '!app/jspm_packages/**', '!app/**/vendor/**', '!app/config.js' ]); console.log(t.length, '/************* Test End *****************/', (new Date()).toISOString()); ``` Output: ``` /************* Test...
Is there an API for executing another task from within my task? I'd like to execute another task from within my own, then perform some cleanup tasks afterwards _even if...
Using the `cwd` option when defining a fileset has no effect if the `expand` option has not been enabled. Under some circumstances, it would be very handful to _prefix_ the...
for this error: ``` Fatal error: spawn EMFILE Running "watch" task Waiting...OK >> File "app/templates/views/deals/deals.html" changed. ------------------------------------------------------------------------ error: Looks like a Grunt error occurred-- error: Please fix it, then **restart...
Right now `this.files` is being populated as: ``` 'src/applications/hr/admin/organization/settings/settings.js', 'src/applications/hr/admin/organization/settings/settings-controller.js', 'src/applications/hr/hr.js', 'src/applications/hr/hr-services.js' ``` and should be like: ``` 'src/applications/hr/hr.js', 'src/applications/hr/hr-services.js' 'src/applications/hr/admin/organization/settings/settings.js', 'src/applications/hr/admin/organization/settings/settings-controller.js', ``` This seems to be a minor issue,...
Ok, so I have this idea, and I think it's a good one. _I'd like to support `.gruntrc` files in projects / user home directories to allow per-project or per-user...
The provided arguments in this call: `grunt task:arg1:"arg2 with spaces":"arg3 : blah"` Should be split out into `"arg1"`, `"arg2 with spaces"`, and `"arg3 : blah"`, but they will actually be...