Skip to content
This repository

LESS is More!

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README
Octocat-spinner-32 package.json
README
-- WORKING DRAFT --

More is a command line utility to rapidly compile LESS (http://lesscss.org/) into static CSS. It's current goal is to provide the missing "watch" functionality that the current LESS CLI doesn't provide, as well as persist the compiler's instructions (which is extremely useful when working in a large team). The next release will focus on minifying the CSS output. Future releases will aim to incorporate other CSS superset languages like Stylus, Sass, and Compass.

INSTALLATION

More requires that your system have Node >= 5.0 and NPM (node package manager) installed.

Installation is quite simple...

  $ sudo npm install -g more

...and so is uninstalling!

  $ sudo npm uninstall -g more

CONFIGURATION

In order to compile CSS, config.json must be present in the directory
where you want to execute the `mo` command.

config.json:

{ "compiler": {
    "css": {
      "input": "./less",
      "output": "./compiled",
      "relation": {
        "base.less": "base.css",
        ...
      }
    }
  }
}

COMMANDS

compile
  Invoke the compilers for the specified language(s), which happens
  to only be LESS at the moment.
    
  Options:
  
    -c, --css
      Compile all `.less` files into the corresponding `.css` files
      defined in config.json.
    
    -w, --watch
      Start watching for changes on all files in the current working
      directory, and it's children. ctrl+C to exit.

OPTIONS

-v, --version
  Display the current version of More.

EXAMPLES

mo compile --css
    Compile `.less` files into `.css` and return control to the user.
  
mo compile --css --watch
    Start watching for changes on all `.less` files, compile if any file
    is directly or indirectly referenced in config.json.
Something went wrong with that request. Please try again.