Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
LESS is More!
CoffeeScript JavaScript
tag: v0.1.6

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
examples/app
lib
src
.gitignore
README
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.

More is not available in the NPM registry, however, installation is quite simple. To install the latest version of More either clone and checkout a stable tag, or download the latest tag from Github. To install More globally on your system, open a terminal and execute the following command in the "more" directory:

  $ sudo npm install -g

That's it! Now you can do whatever you'd like with the More directory. To uninstall More from your system, execute:

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