forked from skaut/shared-drive-mover
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
32 lines (26 loc) · 833 Bytes
/
gulpfile.js
File metadata and controls
32 lines (26 loc) · 833 Bytes
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
/* eslint-env node */
const gulp = require("gulp");
const filter = require("gulp-filter");
const replace = require("gulp-replace");
const webpack = require("webpack-stream");
gulp.task("build:appsscript", function () {
return gulp.src("src/appsscript.json").pipe(gulp.dest("dist/"));
});
gulp.task("build:frontend", function () {
return gulp
.src("src/frontend/index.ts")
.pipe(webpack(require("./frontend.webpack.config.js")))
.pipe(filter(["index.html"]))
.pipe(replace("\u0085", "\\u0085"))
.pipe(gulp.dest("dist/"));
});
gulp.task("build:backend", function () {
return gulp
.src("src/backend/index.ts")
.pipe(webpack(require("./backend.webpack.config.js")))
.pipe(gulp.dest("dist/"));
});
gulp.task(
"build",
gulp.parallel("build:appsscript", "build:frontend", "build:backend")
);