Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yeoman sub generators for MEAN application?

I've been playing with Mean.IO (http://mean.io/), and wondered if there was a Yeoman generator (sub-generator?) that I could use to auto-generate code for an "entity" across the entire stack. For example, in the mean.io project there is an "Article" example that contains 7 components related to "Articles" (Model, Controller, Node Routes, Angular Routes/Service/Controller/Views). Is there a generator that will create this "component stack" for a custom entity?

eg, something like:

yo meangenerator:entity 'MyEntity'

would then create 7 different files that tie 'MyEntity' into an existing MEAN application.

like image 876
Marty Avatar asked Feb 14 '23 09:02

Marty


1 Answers

Couldn't really find anything that worked how i wanted, so I wrote my own. My first Yeoman generator, as well as first real interaction with github and https://npmjs.org/. Fun!

GitHub: https://github.com/MartyIce/generator-meancrud

NPM: https://npmjs.org/package/generator-meancrud

like image 143
Marty Avatar answered Feb 28 '23 11:02

Marty