Currently we mangle all the app code into one file app.js. While this is fine for 150 loc, we as a JavaScript user group should be a good example for others.
What we should achieve:
seperate files in development
concatenated and minified files in production
easy deployments for the gh-pages branch
We currently just use the gh-pages branch as a mirror of the master branch. If we want to continue with that (which is convenient) we probably should do something like that:
refactor all the left markup out of the index.html file so that it basically only contains an empty ng-view
create a grunt task that concats & minifies files and saves one file to /dist/app.min.js
create one index.html file in the root that loads only /dist/app.min.js
create one index-dev.html in the root that loads all files individually
Releases would continue to be nearly as easy as now:
run the grunt task
commit
mirror master branch as gh-pages (either by merging or maybe better by resetting to master)
Currently we mangle all the app code into one file
app.js
. While this is fine for 150 loc, we as a JavaScript user group should be a good example for others.What we should achieve:
We currently just use the gh-pages branch as a mirror of the master branch. If we want to continue with that (which is convenient) we probably should do something like that:
Releases would continue to be nearly as easy as now: