Skip to content

Instantly share code, notes, and snippets.

@addyosmani
Last active December 31, 2015 23:19
Show Gist options
  • Save addyosmani/8059506 to your computer and use it in GitHub Desktop.
Save addyosmani/8059506 to your computer and use it in GitHub Desktop.
Modular Yeoman generator exercise

I want to create a Gruntfile

https://github.com/yeoman/generator-gruntfile

I'd like HTML5 Boilerplate

https://npmjs.org/package/generator-h5bp

I want to choose a flavour of Twitter Bootstrap (Normal, Sass, Less, Stylus)

https://github.com/yeoman/generator-bootstrap

I want to use Yahoo's Pure

https://npmjs.org/package/generator-pure

I want to use TopCoat

https://npmjs.org/package/generator-topcoat

So, these install the library for me. What about adding boilerplate I can use?

None of them currently do this. The only one that does is generator-mobile. Perhaps we should extract that portion into a generator of its own?.

I want to use RequireJS

https://npmjs.org/package/generator-requirejs

I want to use CoffeeScript

https://npmjs.org/package/generator-coffee. But this isn't quite what you expect. It creates a Coffee Node module with the setup needed for it.

I want to create a Chrome extension

https://npmjs.org/package/generator-chrome-extension

I'd like it to also use AngularJS and give me some Angular boilerplate

https://npmjs.org/package/generator-angular gives you the Angular portion but it doesn't interop with the Chrome extension generator just yet. You could run one then the other and use our file conflicter to decide which files to keep.

I'd like to add Mocha tests

https://npmjs.org/package/generator-mocha

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