tasks.js 470 B

12345678910111213141516171819
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. 'use strict';
  6. const gulp = require( 'gulp' );
  7. const jsdoc = require( 'gulp-jsdoc3' );
  8. module.exports = () => {
  9. gulp.task( 'docs', [ 'build-esnext' ], function( cb ) {
  10. const config = require( './jsdoc.json' );
  11. // Add the readme to the output.
  12. gulp.src( [ 'README.md' ], { read: false } )
  13. .pipe( jsdoc( config, cb ) );
  14. } );
  15. };