0.3.0 • Published 9 years ago

less-index v0.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Coveralls – test coverage
Travis – build status
David – status of dependencies
Stability: unstable
Code style: airbnb

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

License

MIT © Studio B12 GmbH