Open lengstrom opened 10 years ago
What do you mean by "build system" ? A task to deploy a new version for example?
I'd like to have a system in which we use master
as the code development branch, and gh-pages
as the deploy branch.
The tricky bit is caching - to prevent caching, we have to rename all of the files that we modify, or else the page will have relatively random behavior for repeat viewers. Thus, I think that we should try to find a way (probably some sort of shell script) that will automatically join all of the .js
files in the correct order, name it a version, and then modify index.html
's code to account for that.
You should see around a "task runner" like GulpJS
A sample gulpfile.js : https://github.com/gulpjs/gulp/#sample-gulpfilejs
gulp-concat
join all file input in one file output.
Many plugins exist : http://gulpjs.com/plugins/
You would like gulp-rev
We need a real build system.