jjwilliams42 / generator-aspnet-semanticui

Yeoman ASP.NET Generator with Semantic UI Library
1 stars 2 forks source link

Experimental - overrides #1

Open jjwilliams42 opened 8 years ago

jjwilliams42 commented 8 years ago

I created an experimental branch to allow various UI framework overrides for the web and webbasic projects. This is an attempt at using a command line argument on the yo generator. This may never get used, was just playing around.

The basic idea is that in templates/overrides a developer will add all of his view/css/html/razor changes.

in app/index.js a new argument was added, ui (currently supports bootstrap and semantic). Would probably need to remove bootstrap since it is the default UI framework used.

The copying first copies the items in templates/web or templates/webbasic (like usual), depending on what the user chose.

Then it copies anything in template/overrides/web or templates/overrides/webbasic.

Was interesting to see how it would work. Would probably want to refactor and remove the explicit version selection in app/index.js, and allow any developer to specify in her bower.json.

But then again this could be going the jack of all trades, master of none route. Might just be best to have a generator per framework.

jjwilliams42 commented 8 years ago

@peterblazejewicz @sayedihashimi Per our discussion Friday, I will be finalizing these changes and submitting a pull request containing the UI overrides functionality.