mirror of
https://github.com/nasa/openmct.git
synced 2024-12-18 20:57:53 +00:00
[API] Add JSDoc task
This commit is contained in:
parent
b309f26b56
commit
ab5b1d3754
@ -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');
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user