1.0.9 • Published 7 years ago

j2-grunt-jsdoc v1.0.9

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

j2-grunt-jsdoc

Task to generate js-doc documentation into json file that can be consumed later.

Generate your documentation

Install

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 j2-grunt-jsdoc --save-dev

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

grunt.loadNpmTasks('grunt-j2-grunt-jsdoc');

Configuration

First, add the doc entry to the options of the initConfig method of your Gruntfile.js :

grunt.initConfig({
    doc : {
        dist : {
        	options : {
        		configPath  : 'doc.config.json',
        		destination : 'build/',
        		projectName : 'myAwesomeProject'
        	}
        }
    }
});

The supported options are

  • configPath : Is the path to the jsdoc config file.
  • destination : Is the path for the destination directory. This is where the task will generate a doc.json file
  • projectName : Is the name of the current project. Just so the links etc are relative to the project

Generation

To generate the documentation, you need to call the doc task:

$>grunt doc

or integrate it to your build sequence:

grunt.registerTask('default', ['lint', 'test', 'doc']);

License

Copyright (c) 2017 SS Virk, J2 Innovation Inc. Licensed under the ISC license.

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago