1.0.0 • Published 9 years ago

circus-stylus v1.0.0

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

circus-stylus

Implments Stylus compilation that is aware of Circus component dependencies when resolving includes.

Usage

Generally follows the stylus-loader behaviors, with the distinction that files indented for direct imports within other components after the source component has been built.

Configuration

Used as a preprocessor for the Circus.config method:

var Circus = require('circus'),
    CircusStylus = require('circus-stylus');

var config = {};
config = CircusStylus.config(config);
config = Circus.config(config);

circus-stylus defines optional config values on the stylus config key. These are:

  • defines: Key/value pair defining stylus variables to be used. These defines do not apply to copied include files, which are copied verbatim.
  • includeDir: Path to export for stylus includes. Content in this directory will be copied to the build output directory and be made available to stylus include content. Defaults to ./src/lib/styles/includes/**/*.styl
  • remap: Optional function that is passed the source file name and may return the build destination file name. Default behavior is to remap relative to the project root in a 1 to 1 manner.
1.0.0

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago