Tay Ray Chuan home archive

nuschedule, now with minified js!

Sun, 5 Sep 2010 15:05:01 +0800 | Filed under nuschedule

I've been itching to hack for the past few weeks, so this weekend I decided to scratch it.

First up - minifying the source, in an automated manner.

I knew jQuery was doing this with the Google Closure compiler, so I had a look at their Makefile. I also decided to take a leaf out of how git builds its man and html pages - by creating subdirectories/repositories of the "source" and "destination" branches, and updating the branches with the build result.

You can see the result in my rc/build branch. Getting the shell scripts to work in the Makefile was pretty cool.

Note that you'll need a Unix-y environment to run the Makefile/minification process.

blog comments powered by Disqus