SBoudrias / gruntfile-editor

An API to modify a Gruntfile.js content
MIT License
40 stars 10 forks source link

#insertJavaScript(): Allow inserting raw JavaScript #9

Closed eddiemonge closed 9 years ago

eddiemonge commented 10 years ago

There should be a way to add custom requires (or variables, or even arbitrary code). One specific use case is Yeoman things like:

require('time-grunt')(grunt);
require('load-grunt-tasks')(grunt);
SBoudrias commented 10 years ago

Ahh yeah, I though that'd be covered by the insertVariable https://github.com/SBoudrias/gruntfile-editor#editorinsertvariable-name-value- but it is not...

keirlawson commented 9 years ago

This would be very useful, currently having to avoid using the gruntfile editor approach in yeoman to because of this issue.