-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
48 lines (41 loc) · 1.2 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
var gulp = require('gulp');
const fs = require('fs');
var concat = require('gulp-concat');
gulp.task('default', (done) => {
const folders = [
'./target/',
'./target/classes/',
'./target/classes/public/',
'./target/classes/public/script',
'./target/classes/public/style'
];
folders.forEach(dir => {
if(!fs.existsSync(dir)) {
fs.mkdirSync(dir);
}
});
// regular JS
gulp.src([
'node_modules/jquery/dist/jquery.min.js',
'node_modules/vue/dist/vue.js',
'node_modules/vuetify/dist/vuetify.js',
])
.pipe(concat('deps.js'))
.pipe(gulp.dest('./target/classes/public/script/'));
// minified JS
gulp.src([
'node_modules/jquery/dist/jquery.min.js',
'node_modules/vue/dist/vue.min.js',
'node_modules/vuetify/dist/vuetify.min.js',
])
.pipe(concat('deps.min.js'))
.pipe(gulp.dest('./target/classes/public/script/'));
// minified CSS
gulp.src([
'node_modules/vuetify/dist/vuetify.min.css',
'node_modules/material-design-icons-iconfont/dist/material-design-icons.css',
])
.pipe(concat('deps.css'))
.pipe(gulp.dest('./target/classes/public/style/'));
done();
});