less-index
v0.3.0
Published
Create an entry point for a directory of LESS files.
Downloads
7
Readme
less-index
Create an entry point for a directory of LESS files.
Installation
# Globally – for a user:
npm install --global less-index
# …or locally – for a project:
npm install --save-dev less-index
Usage
SYNOPSIS
Usage: less-index [<options>] ...<directory>
or: less-index (-h|--help)
DESCRIPTION
Create an entry point for a directory of LESS files.
Running `less-index ./module` over a directory like this:
./module
├── mixins.less
├── settings.less
└── styles.less
…will write the following content:
@import "./module/mixins";
@import "./module/settings";
@import "./module/styles";
…to the file `./module.less`.
You can then `@import "./module";` from another LESS file and you get the
whole lot.
Files with an extension other than `.less` are ignored.
OPTIONS
-f, --force
Overwrite files without prompting.
-i <regex>, --ignore=<regex>
Ignore directories matching <regex>.
-h, --help
Display this help text (--help) or short usage info (-h).