@lukechavers/jsdoc

0.1.7 • Public • Published

Luke's JSDoc

Travis GitHub license NPM GitHub watchers

This project provides JSDoc and a collection of plugin's that I use for most of my JavaScript projects.

What does it do?

It abbreviates the necessary dependencies for our projects, allowing me to include fewer libraries for our JSDoc generation needs.

Why did I create it?

I wanted a simple way to add JSDoc documentation to all (or most) of my Javascript projects without needing to train each of my coworkers on the intricacies of JSDoc execution and configuration. My hope was that this, in turn, would lead to a wider adoption rate of JSDoc in my projects.

I also wanted to make my JSDoc output more consistent.

Installation

Use NPM to install this library as a devDependency of your project:

$ npm install --save-dev --save-exact lukes-jsdoc

Basic Usage

Step 1 - Create a JSDoc Config

conf/docs/html.json

{
	"source"        : {
		"include"        : [
			"lib",
			"package.json",
			"README.md"
		],
		"includePattern" : ".js$",
		"excludePattern" : "(node_modules/|docs)"
	},
	"opts"          : {
		"destination" : "./doc/html/",
		"template"    : "./node_modules/lukes-jsdoc"
	}
}

Step 2 - Execute JSDoc

$ cd /path/to/myproject
$ node node_modules/lukes-jsdoc/node_modules/jsdoc/jsdoc.js --configure conf/docs/html.json

Next Steps

The above example is a minimal implementation. You should, at least, add your documentation generation to an "npm script". More information about that is outlined in the Usage Document.

Documentation

Useful Links

Package Sidebar

Install

npm i @lukechavers/jsdoc

Weekly Downloads

2

Version

0.1.7

License

MIT

Last publish

Collaborators

  • c2cs
  • vmadman