Socket
Book a DemoInstallSign in
Socket

j2-grunt-jsdoc

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

j2-grunt-jsdoc

Grunt task to generate documentation for J2Inn projects

1.0.9
latest
Source
npmnpm
Version published
Weekly downloads
2
-50%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

j2inn

FAQs

Package last updated on 03 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.