leedian-jsdoc
v1.0.5
Published
gulp-jsdoc3 + jaguarjs-jsdoc template
Downloads
5
Readme
Leedian JsDoc Template
Installation
npm i gulp-cli -g
npm i gulp --save-dev
npm i leedian-jsdoc --save-dev
Usage
You can also pass in your own config to override the defaults
conf.json
{
"tags": {
"allowUnknownTags": true
},
"source": {
"includePattern": ".+\\.js(doc)?$",
"excludePattern": "(^|\\/|\\\\)_"
},
"opts": {
"recurse": true,
"destination": "doc"
},
"templates": {
"cleverLinks": true,
"monospaceLinks": true,
"default": {
"outputSourceFiles": true
},
"applicationName": "My SDK",
"openGraph": {},
"meta": {}
}
}
gulpfile.js
var gulp = require('gulp');
var jsdoc = require('leedian-jsdoc');
gulp.task('default', function (cb) {
var config = require('./conf.json');
gulp.src(['./README.md', './*.js'], { read: false })
.pipe(jsdoc(config, cb));
});