Skip to content

Instantly share code, notes, and snippets.

@odoe
Created June 1, 2015 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odoe/aa9ae872624d49015000 to your computer and use it in GitHub Desktop.
Save odoe/aa9ae872624d49015000 to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
var babel = require('gulp-babel');
gulp.task('es6-dev', function() {
return gulp.src([
'src/*.js', 'src/**/*.js', 'src/**/**/*.js',
])
.pipe(babel({ modules: 'amd' }))
.pipe(gulp.dest('dist'));
});
gulp.task('copy', function() {
gulp.src([
'src/views/templates/*.html'
], { base: 'src' })
.pipe(gulp.dest('dist'));
});
gulp.task('default', ['es6-dev', 'copy']);
gulp.task('watch', function() {
gulp.watch('src/**/*.*', ['default']);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment