-
-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathgulpfile.js
More file actions
23 lines (19 loc) · 551 Bytes
/
Copy pathgulpfile.js
File metadata and controls
23 lines (19 loc) · 551 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const gulp = require('gulp');
const babel = require('gulp-babel');
const del = require('del');
gulp.task('clean_dist', function () {
return del.sync('./src');
});
gulp.task('transpile', function() {
return gulp.src('lib/**/*.js')
.pipe(babel())
.pipe(gulp.dest('src'));
});
gulp.task('copy_files',function(){
return gulp.src([
'./lib/schema/yaml/*.json',
'./lib/reporters/html-src/assets/*.css'
], { base: './lib/' })
.pipe(gulp.dest('src'));
});
gulp.task('default', ['clean_dist', 'transpile', 'copy_files']);