Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

64 lines (43 sloc) 1.74 kb
-- 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.
Jump to Line
Something went wrong with that request. Please try again.