Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var paths = {
- distDocs: '../../docs/build',
- docs: '../../docs/**/*.js',
- };
- gulp.task('dgeni', ['cleanDocs', 'copyDocs'], function() {
- // Notice how we are specifying which config to use
- // This will import the index.js from the /docs/config folder and will use that
- // configuration file while generating the documentation
- var dgeni = new Dgeni([require('../../docs/config')]);
- // Using the dgeni.generate() method
- return dgeni.generate();
- });
- gulp.task('copyDocs', function () {
- return gulp.src(paths.docs)
- .pipe(gulp.dest(paths.distDocs + '/src'));
- });
- gulp.task('cleanDocs', function() {
- del(paths.distDocs).then(function () {
- console.log('deleted files and folders in the build directory');
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement