You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no current way (other than modifying a tracked index.html file) to change to use non-minified versions of the code. Also the index.html file is not placed in the dist dir like it should. I understand that there where reasons to do this... but there must be a better way:
Have index.html end up in dist like the rest of the project when built.
Change the gh-pages stuff to just publish the contents of dist.
This gets rid of all the extra stuff that is being published that should not be (config files etc)
Everything is at the right level then (i.e. index.html is no longer treated special)
Make index.html based on a template in the root folder, but use a grunt html processor to build out the real index.html based on build type. Some possible grunt tools already exist:
Make grunt serve and the connect stuff for grunt serve from the dist dir.
In the end you would be able to specify build type... each would pre-process the index.html to the proper form, populate the dist dir, and if updating master push a release version of the dist dir to gh-pages.
I plan to work on prototyping this (as a learning exercise for myself) in the aaronr_gruntwork branch
The text was updated successfully, but these errors were encountered:
+1 to being able to develop off of L.DNC.js and serve off of L.DNC.min.js, the uglified file definitely takes some fun out of the dev process.
My $0.02: I think what would make this the easiest/most-natural-to-develop-on would be to have the dev folder hierarchy match what we want the prod folder to be (starting with moving index.html to src/index.html). Basically, any assets that would make their way into dist/ should go into src/. Is this kind of along the lines of what you were thinking?
Change the gh-pages stuff to just publish the contents of dist.
In the event that you haven't already looked into it, this is super trivial (assuming #44 is merged), you would only need to change the base arg to point to dist/.
There is no current way (other than modifying a tracked index.html file) to change to use non-minified versions of the code. Also the index.html file is not placed in the dist dir like it should. I understand that there where reasons to do this... but there must be a better way:
Have index.html end up in dist like the rest of the project when built.
Change the gh-pages stuff to just publish the contents of dist.
In the end you would be able to specify build type... each would pre-process the index.html to the proper form, populate the dist dir, and if updating master push a release version of the dist dir to gh-pages.
I plan to work on prototyping this (as a learning exercise for myself) in the aaronr_gruntwork branch
The text was updated successfully, but these errors were encountered: