Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. var gulp = require('gulp');
  2. var babel = require('gulp-babel');
  3. var coveralls = require('gulp-coveralls');
  4.  
  5. gulp.task('compile', function() {
  6. return gulp
  7. .src(['src/*.js', 'test/spec.js'])
  8. .pipe(babel({
  9. optional: ['runtime']
  10. }))
  11. .pipe(gulp.dest('dist'));
  12. });
  13.  
  14. gulp.task('debug', ['compile'], function() {
  15. gulp.watch(['src/*.js', 'test/*.js'], ['compile']);
  16. });
  17.  
  18. gulp.task('coveralls', function() {
  19. return gulp.src('./coverage/lcov.info').pipe(coveralls());
  20. });
  21.  
  22. gulp.task('default', ['compile']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement