grunt-docco-husky

Docco husky task for grunt

grunt-docco-husky

Grunt Docco-husky plugin.

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-docco-husky

Then add this line to your project's grunt.js gruntfile:

grunt.loadNpmTasks('grunt-docco-husky');

You can add parameters to the grunt docco husky task and hook it to your development workflow like so:

grunt.initConfig({
  docco_husky : {
    'project_name':'testing',
    'files':['js/*.js']
  },
  watch : {
    files: ['js/*.js', 'spec/javascripts/libs/*.spec.js'],
    tasks: 'docco_husky'
  }
});

Once docco-husky is installed, please add the "depedencies" property to your package.json:

{
  "name": "jquery-plugin",
  "version": "0.0.0-ignored",
  "engines": {
    "node": ">= 0.6.0"
  },
  "scripts": {
    "test": "grunt"
  },
  "devDependencies": {
    "grunt": "~0.3.16",
    "grunt-jasmine-runner": "0.5.5"
  },
  "dependencies": {}
}

This should prevent docco-husky to crash when generating your documentation.

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.

(Nothing yet)

Copyright (c) 2012 David Souther
Licensed under the MIT license.