grunt-livingstyleguide

1.0.3 • Public • Published

grunt-livingstyleguide Build Status

Generate livingstyleguide with Grunt.
Easily create living style guides/front-end style guides/pattern libraries by adding Markdown documentation to your Sass project.

Style Guide Setup

First you have to install the livingstyleguide gem:

gem install livingstyleguide

Livingstyleguide workshop

Getting Started

This plugin requires Grunt.

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-livingstyleguide --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-livingstyleguide');

The "livingstyleguide" task

Overview

In your project's Gruntfile, add a section named livingstyleguide to the data object passed into grunt.initConfig().

grunt.initConfig({
  livingstyleguide: {
    generate: {
      options: {
        src: 'test/fixtures/styleguide.lsg'
      }
    }
  },
})

Options

options.src

Type: String
*Required

The path to your livingstyleguide config file.

options.dest

Type: String
Default value: styleguide.html
*Optional

The path to your destination file.

Usage Examples

Default Options

grunt.initConfig({
  livingstyleguide: {
    generate: {
      options: {
        src: 'test/fixtures/styleguide.lsg',
        dest: 'tmp/styleguide.html'
      }
    }
  },
})

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

License

Copyright (c) 2015 Nexway Lab. Licensed under the MIT license.

Package Sidebar

Install

npm i grunt-livingstyleguide

Weekly Downloads

17

Version

1.0.3

License

none

Last publish

Collaborators

  • balmor