The official leaked source code of the Dyno Discord Bot.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
800 B

4 years ago
  1. 'use strict';
  2. const gulp = require('gulp');
  3. const babel = require('gulp-babel');
  4. const eslint = require('gulp-eslint');
  5. const paths = ['src/**/*.js'];
  6. gulp.task('default', ['build']);
  7. gulp.task('watch', ['build'], () => {
  8. gulp.watch(paths, ['build']);
  9. });
  10. gulp.task('build', ['babel']);
  11. gulp.task('lint', () => {
  12. gulp.src(paths)
  13. .pipe(eslint())
  14. .pipe(eslint.format())
  15. .pipe(eslint.failAfterError());
  16. });
  17. // gulp.task('sass', () =>
  18. // gulp.src('./public/css/**/*.scss')
  19. // .pipe(sass({ outputStyle: 'compressed' }).on('error', sass.logError))
  20. // .pipe(gulp.dest('./public/css')));
  21. // gulp.task('sass:watch', () => {
  22. // gulp.watch('./public/css/**/*.scss', ['sass']);
  23. // });
  24. gulp.task('babel', () => {
  25. gulp.src(paths)
  26. .pipe(babel())
  27. .pipe(gulp.dest('build'));
  28. });