3 ms·
In case anyone's curious, I've been using Makefiles for web development for a long time. The src files of a webpage are un-minified javascript, less/sass files,
by zx2c4 10y ago
In case anyone's curious, I've been using Makefiles for web development for a long time. The src files of a webpage are un-minified javascript, less/sass files, and thumbnails. The dst files are the minified/built/thumbnailed output. This suits Make particularly well.
https://gist.github.com/zx2c4/11de49b2780c787b3ed5e1ee39485747 https://gist.github.com/zx2c4/11de49b2780c787b3ed5e1ee394857...
That's the Makefile I use on https://www.edgesecurity.com/ https://www.edgesecurity.com/ if you're interested. It also has in it some very simple ssh/rsync deployment mechanism. Since the deployment relies on the built files, I can simply run:
$ make deploy
And the entire webpage is built and deployed in one step.
Every webpage I manage has a variant of this, with all sorts of rules for building and managing things. It turns out to be much easier than grunt or ant or random bash scripts or vagrant or whatever else kids use these days.