gonzofish / angular-librarian

An Angular 2+ scaffolding setup for creating libraries
https://www.npmjs.com/package/angular-librarian
MIT License
91 stars 9 forks source link

Auto-generate first component #3

Closed gonzofish closed 7 years ago

gonzofish commented 7 years ago

When a library is initialized, it should create the first component. There is a high likelihood that the first component is going to be the same name as the library.

Perhaps the project initialization needs an option to say "don't generate first component", too, to avoid this behavior.

litzebauer commented 7 years ago

Up to you on this feature but is it really necessary? I created a project today that had 0 components. Is it a big burden to run the command to create a component after project generation?

gonzofish commented 7 years ago

Good point. This could be a CLI argument in the futures; npm run g i --generate-first-component or something if the user wants it