Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

broccoli-kss

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-kss

A broccoli plugin for KSS

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Keywords

FAQs

Package last updated on 21 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc