-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
33 lines (29 loc) · 1.03 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
import gulp from 'gulp';
import compileScripts from "./build/compileScripts.js";
import compileStyles from './build/compileStyles.js';
import compileTemplates from './build/compileTemplates.js';
import compileMaps from './build/compileMaps.js';
import {
assetsDir,
createDirectory,
distDir, mapsCompileDir,
outputDir,
recursiveCopy,
removePath, scriptCompileDir, staticDir,
styleCompileDir,
templateCompileDir
} from "./build/paths.js";
import path from "path";
export default gulp.series(
gulp.series(removePath(outputDir), createDirectory(outputDir)),
gulp.parallel(compileScripts, compileStyles, compileTemplates, compileMaps),
createDirectory(distDir),
gulp.parallel(
recursiveCopy(scriptCompileDir, distDir),
recursiveCopy(styleCompileDir, distDir),
recursiveCopy(templateCompileDir, distDir),
recursiveCopy(assetsDir, path.join(distDir, 'assets')),
recursiveCopy(staticDir, distDir),
recursiveCopy(mapsCompileDir, distDir)
)
);