tomek-he-him / ideas

Ideas for new projects. One-man brainstorms.
0 stars 0 forks source link

less-index #3

Closed tomek-he-him closed 9 years ago

tomek-he-him commented 9 years ago

less-index

Create an entry point for a directory of LESS files.

 

Installation

# 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 without the extension `.less` are ignored.

OPTIONS

-f  --force  Overwrite files without prompting.
-h  --help   Display this help text (--help) or short usage info (-h).
tomek-he-him commented 9 years ago

Working on it at https://github.com/studio-b12/less-index