1.3.0 • Published 9 years ago

grunt-plum v1.3.0

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

grunt-plum Build Status

Grunt plugin to build and run regressions tests against plum stylesheets.

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-plum --save-dev

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

grunt.loadNpmTasks('grunt-plum');

Usage

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

grunt.initConfig({
  plum: {
    test: {
      options: {
        src: 'path/to/plum/directory',
        dest: 'path/to/save/results/to',
        stylesheets: ['path/to/compiled/stylesheets']
      }
    }
  }
})

CLI

grunt plum:test

To run only a specific test(s) you can pass a comma , seperated list of paths to the the --tests.

# run all the modules tests.
grunt plum:test --tests=modules

# run only the button modules tests.
grunt plum:test --tests=modules/button

Options

NameTypeArgumentDescription
options.srcstring<required>the src path to your plum stylesheets.
options.deststring<required>the path to save the test results to.
options.stylesheetsarray|string<required>the path to your compiled css stylesheets.
options.testsarray|string<optional>the paths to the tests to be run.

Developing

grunt-plum is built using ES6. Run the following task to compile the src/ into tasks/.

npm run build

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

License

Copyright (c) 2015 Jason Bellamy
Licensed under the MIT license.

1.3.0

9 years ago

1.2.0

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.1

9 years ago