Skip to content
Snippets Groups Projects
Commit d905b17f authored by João Victor Tozatti Risso's avatar João Victor Tozatti Risso
Browse files

Add skeleton for basic dev tasks in gulpfile

parent 818591ba
No related branches found
No related tags found
1 merge request!7Refactor enrollments route to include query building
Pipeline #
......@@ -2,7 +2,10 @@ const gulp = require('gulp');
const babel = require('gulp-babel');
const eslint = require('gulp-eslint');
gulp.task('default', () => {
/**
* Compile source files
*/
function compile() {
// run ESLint
gulp.src('src/**/*.js')
.pipe(eslint())
......@@ -12,4 +15,23 @@ gulp.task('default', () => {
gulp.src('src/**/*.js')
.pipe(babel())
.pipe(gulp.dest('build'));
// copy configuration file to build directory
gulp.src('config.json')
.pipe(gulp.dest('build'));
}
gulp.task('build', compile);
gulp.task('run', ['build'], () => {
});
gulp.task('watch', [], () => {
compile();
});
gulp.task('test', ['build'], () => {
});
gulp.task('default', ['watch']);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment