PyTux

Trips of a curious penguin.

Hello, time traveler! You are reading an article that is almost ten years old. The world has changed, and so have I and my opinions. There is a good chance what's below is not current, correct, or secure anymore, and maybe it never was. This page is preserved because I am an archivist at heart, but you have been warned.

Automatically compile .less and .coffee files

This small python script makes use of watchdog (and sh) to monitor your code directory (recursively) and build less and CoffeeScript files upon edit.

Simply launch it from the relevant folder and it will work in the background.

It should be trivial to add minification (and linting, but I suggest linting in the editor) to the process.

It requires coffee (npm install coffee-script) and lessc (npm install less).

Should be compatible with Mac OS X and Linux at least, BSD and Win… maybe.