less-watcher2

Automatically detecting changes in .less files and recompile styles.

less-watcher

Automatically detecting changes in .less files and recompile styles.

Install

# npm install -g less-watcher2
$ npm install less-watcher2
$ ln -s ./node_modules/.bin/less-watcher

Usage

Global install: $ less-watcher --help

Local install: $ ./less-watcher --help

Copy /examples/less-watcher.config.json to work dir and modify it.

Global install: $ less-watcher --just-compile

Local install: $ ./less-watcher --just-compile

$ less-watcher 
Configurations JSON file path is not set by argument and file by default value ("less-watcher.config.json") is not exists.
Will be used default configs:
 { path: './styles/',
  to_compile: [ { input_less: 'main.less', output_css: 'compiled_styles.css' } ],
  compress: true,
  debug: true,
  events: [ 'created', 'changed', 'removed' ],
  extensions: [ '.less' ] }
Compiling less "main.less" to css "compiled_styles.css" (counter: 1) [20:13:01]
Started watcher for less files (".less") in directory ".../styles/" [20:13:01]
Compiled less "main.less" to css "compiled_styles.css" (counter: 1) [20:13:02]
Catched! ".../styles/goods.less" [20:13:11]
Compiling less "main.less" to css "compiled_styles.css" (counter: 2) [20:13:11]
Compiled less "main.less" to css "compiled_styles.css" (counter: 2) [20:13:12]

Documentation

See /docs for automatically generated documentation by JSDoc utility.

$ jsdoc bin/* lib/* -p -d docs