forked from NetanelBasal/vue-generate-component
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gulpfile.js
36 lines (30 loc) · 803 Bytes
/
Gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
var gulp = require('gulp');
var babel = require('gulp-babel');
var del = require('del');
const runSequence = require('gulp4-run-sequence');
gulp.task('dev', async function() {
return gulp.src(['./lib/**/*.js', '!./lib/blueprints/**/*.js'])
.pipe(babel({
presets: ['es2015']
}))
.pipe(gulp.dest('dist'));
});
gulp.task('copy', async function() {
gulp.src('./lib/blueprints/**/**', {
base: "./lib"
})
.pipe(gulp.dest('./dist'));
gulp.src('./lib/config/config.json')
.pipe(gulp.dest('./dist/config'));
});
gulp.task('clean', async function() {
return del([
'dist/**'
]);
});
gulp.task('build', async function(callback) {
runSequence('clean',
'dev',
'copy',
callback);
});