-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
44 lines (36 loc) · 926 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
37
38
39
40
41
42
43
44
'use strict';
const gulp = require('gulp');
const del = require('del');
gulp.task('clean', () => del.sync(['./build']));
gulp.task('copy-auto-to-root', () => {
return gulp
.src(['./build/client/auth/index.html'])
.pipe(gulp.dest('./build/client/'));
});
gulp.task('copy-config', () => {
return gulp
.src(['./nginx.conf', './pm2.json'])
.pipe(gulp.dest('./build/'));
});
gulp.task('copy-server-assets', () => {
return gulp
.src(['./src/server/**/*.{hbs,csv}'])
.pipe(gulp.dest('./build/server'));
});
gulp.task('copy-package', () => {
return gulp
.src(['./package.json'])
.pipe(gulp.dest('./build/server'));
});
gulp.task('copy-favicon', () => {
return gulp
.src(['./src/client/favicon/*'])
.pipe(gulp.dest('./build/client/favicon'));
});
gulp.task('copy-assets', [
'copy-auto-to-root',
'copy-config',
'copy-package',
'copy-favicon',
'copy-server-assets'
]);