Example CSS and Javascript build system using a Makefile.
A simple alternative to other build systems such as Grunt, Gulp, and Guard.
This example compiles javascript and CSS dependencies into single minified files.
The example assumes dependencies fswatch and yuicompressor are installed, but you could tailor it however you want. Both can be installed with Homebrew.
Run the following to get started:
git clone https://github.com/pwenzel/fswatch-makefile.git
cd fswatch-makefile
brew install yuicompressor fswatch
make
Open index.html
in your web browser.
Then review the Makefile
for more info.
Automatically compile CSS and Javascript files when changed:
make watch
Compile CSS and Javascript files:
make
Compile your CSS files:
make css
Compile your Javascript files:
make js
Optimize/minifiy Javascript and CSS files:
make optimize