7 days of WordPress plugins, themes & templates - for free!* Unlimited asset downloads! Start 7-Day Free Trial
FREELessons: 14Length: 2.4 hours

Next lesson playing in 5 seconds

  • Overview
  • Transcript

2.11 Generator Options in Grunt

Once you have a basic understanding of how to create a generator, you need to start flexing your generator to accomodate the user’s choices and requirements. The same way you customize your Angular, Backbone or Ember app, you should provide the same flexibility to your own generator. For that purpose, we’ll learn how to extract possible options in our generated Gruntfile.js file so that the end user may change them in the future without messing with your generator.