/fswatch-makefile

Example CSS and Javascript build system using a Makefile

Primary LanguageJavaScript

fswatch-makefile

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.

Quickstart

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.

Usage

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

More Resources