Giter Site home page Giter Site logo

node-less-watcher's Introduction

less-watcher

Automatically detecting changes in .less files and recompile styles.

NPM

Install

Global

# npm install -g less-watcher2

Local

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

Usage

Show usage info

Global install: $ less-watcher --help

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

Use config file

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

Compile and exit (without watching)

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

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

Output

$ 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.

Generation

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

node-less-watcher's People

Contributors

unclechu avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.