[API] Add JSDoc task

This commit is contained in:
Victor Woeltjen 2016-08-25 13:49:21 -07:00
parent b309f26b56
commit ab5b1d3754
2 changed files with 10 additions and 0 deletions

View File

@ -145,6 +145,15 @@ gulp.task('watch', function () {
return gulp.watch(paths.scss, ['stylesheets', 'assets']);
});
gulp.task('api', function () {
var jsdoc2md = require('gulp-jsdoc-to-markdown');
var concat = require('gulp-concat');
return gulp.src('src/**/*.js')
.pipe(concat('api.md'))
.pipe(jsdoc2md())
.pipe(gulp.dest(paths.dist));
});
gulp.task('serve', function () {
console.log('Running development server with all defaults');
var app = require('./app.js');

View File

@ -12,6 +12,7 @@
"git-rev-sync": "^1.4.0",
"glob": ">= 3.0.0",
"gulp": "^3.9.0",
"gulp-concat": "^2.6.0",
"gulp-jscs": "^3.0.2",
"gulp-jsdoc-to-markdown": "^1.2.2",
"gulp-jshint": "^2.0.0",