irspy
I R Spy is a small nodejs app that lets you do tasks when files change, like, compile less files for you.
Example
Start up example.js
:
$ node example.js# or $ ./example.js irspy 0.0.1 --auto, -a : Watch
The file can look like this:
#!/usr/bin/env node'use strict'; // run this file. if there's a .irspy json in the current folder, it will prefer it to local optionsvar fs = irspy = ; // example use casevar config = fs ? JSON : false; // defaults or read configconfig ? config : ;
Modify any dist/less/
files. Only dist/app.less
gets compiled. Tadaa!
Adding multiple tasks and locations
Hack around irspy.js. runNow and watches arrays can contain multiple directories and strategies.
a .irspy
you could use (JSON):
{
"compress": true,
"paths": {
"src": "dist/less",
"out": "dist/css",
"lessMain": "app.less",
"cssMain": "app-min.css"
},
"notify": {
"enabled": true
}
}
This is not really release ready but works well enough