'use strict';

var piedmont = require('piedmont'),
    process = require('process');

module.exports = function (grunt) {

  // Please see the Grunt documentation for more information regarding task
  // creation: http://gruntjs.com/creating-tasks

  grunt.registerMultiTask('piedmont', 'Generate a Living Styleguide based on a Frontend Prototype', function () {
    // Merge task-specific and/or target-specific options with these defaults.
    var options = this.options({
        dest: './styling-guidelines',
        src: './dist',
        styles: './src/sass/**/*.scss',
        tmp: '.tmp/styleguide'
      }),
      done = this.async();

    piedmont({
      cwd: process.cwd(),
      dest: options.dest,
      src: options.src,
      styles: options.styles,
      tmp: options.tmp
    }, done);

    grunt.log.writeln('Waiting for the files to be written...');
  });

};

'use strict';

var piedmont = require('piedmont'),
    process = require('process');

module.exports = function (grunt) {

  // Please see the Grunt documentation for more information regarding task
  // creation: http://gruntjs.com/creating-tasks

  grunt.registerMultiTask('piedmont', 'Generate a Living Styleguide based on a Frontend Prototype', function () {
    // Merge task-specific and/or target-specific options with these defaults.
    var options = this.options({
        dest: './styling-guidelines',
        src: './dist',
        styles: './src/sass',
        tmp: '.tmp/styleguide'
      }),
      done = this.async();

    piedmont({
      cwd: process.cwd(),
      dest: options.dest,
      src: options.src,
      styles: options.styles,
      tmp: options.tmp
    }, done);

    grunt.log.writeln('Waiting for the files to be written...');
  });

};

Fix default option value of styles
Fix default option value of styles
