Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. var paths = {
  2. distDocs: '../../docs/build',
  3. docs: '../../docs/**/*.js',
  4. };
  5.  
  6. gulp.task('dgeni', ['cleanDocs', 'copyDocs'], function() {
  7. // Notice how we are specifying which config to use
  8. // This will import the index.js from the /docs/config folder and will use that
  9. // configuration file while generating the documentation
  10. var dgeni = new Dgeni([require('../../docs/config')]);
  11.  
  12. // Using the dgeni.generate() method
  13. return dgeni.generate();
  14. });
  15.  
  16. gulp.task('copyDocs', function () {
  17. return gulp.src(paths.docs)
  18. .pipe(gulp.dest(paths.distDocs + '/src'));
  19. });
  20.  
  21. gulp.task('cleanDocs', function() {
  22. del(paths.distDocs).then(function () {
  23. console.log('deleted files and folders in the build directory');
  24. });
  25. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement