Eddie Monge Jr

Results 42 issues of Eddie Monge Jr

Is there something else that can warn|error about incorrect spacing around parens? Basically to enforce a style guide. ``` js bad: hello('there') good: hello( 'there' ) ```

new rule
Help Wanted

Implement something like https://github.com/marcello3d/node-tosource so actual objects can be used instead of just strings.

When trying to update a config block that was a variable reference, an error was being thrown: ``` var conf = { abc: bar }; /Users/eddie/Dropbox/Sites/OSS/yeoman/generator/node_modules/gruntfile-editor/index.js:33 .key(name).value(config); ^ TypeError: Object...

This probably isn't needed or a good idea but if its not to hard to add an API for it, a whole config task should be replaceable.

Support positioning the new task before or after other tasks (if they exist)

registered task is function and task is array. Append `grunt.task.run(tasks)` to task function body. See https://github.com/bezoerb/gruntfile-api/tree/master#register-task for reference Before: ``` javascript grunt.registerTask('build', function(target) { // custom function task }); ```...

registered task is array and task is function. - Convert array to a function call - Add `grunt.task.run(existingTasks)` to function call - Append function task to function call See https://github.com/bezoerb/gruntfile-api/tree/master#register-task...

registered task is function and task is function https://github.com/bezoerb/gruntfile-api/tree/master#register-task Before: ``` javascript grunt.registerTask('build', function(target) { // existing function }); ``` After: ``` javascript grunt.registerTask('build', function(target) { // existing function //...

Config blocks should be able to specify what target to add/append to.

I know the goal of this is to programmatically control the Gruntfile but users will still probably read it to understand whats going on. Without the ability to add comments,...