0.1.1 • Published 10 years ago

broccoli-kss v0.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
10 years ago

broccoli-kss

The broccoli-kss plugin generates a living styleguide based on the KSS-Node project. Note that currently this implementation supports only SASS.

Installation

npm install --save-dev broccoli-kss

Usage

var compileKss = require('broccoli-kss');

var outputTree = compileKss(inputTree, options);
  • inputTrees: An broccoli tree that is the KSS source directory containing all your SCSS files to be parsed for styleguide documentation.

  • options: A hash of options for kss-node. Supported options are templateDir, sassFile, destDir.

    • templateDir: the directory where your KSS template files live for custom styling of KSS output.
    • sassFile: the top level *.scss file containing the styleguide documentation.
    • destDir: the output directory (relative to the broccoli build output folder) to place the generated stylesheet.

Example

var inputTree = pickFiles('kss', {
  srcDir: '/',
  destDir: '/'
});
var styleguide = compileKss(inputTree, {
  templateDir: 'kss/template',
  sassFile: 'kss/styles.scss',
  destDir: 'styleguide'
});

Where your KSS documentation lives under {project_home}/kss, your KSS templates live under the {project_home}/kss/template folder, and the top level scss file for your documentation lives is at {project_home}/kss/styles.scss. This will output your style guide in the folder: {broccoli_output}/styleguide.

0.1.1

10 years ago

0.1.0

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago