Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build system #93

Open
lengstrom opened this issue Aug 20, 2014 · 3 comments
Open

Build system #93

lengstrom opened this issue Aug 20, 2014 · 3 comments

Comments

@lengstrom
Copy link
Member

We need a real build system.

@zckrs
Copy link

zckrs commented Aug 20, 2014

What do you mean by "build system" ? A task to deploy a new version for example?

@lengstrom
Copy link
Member Author

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.

@zckrs
Copy link

zckrs commented Aug 20, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants