-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
35 lines (25 loc) · 874 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
(() => {
"use strict";
const gulp = require("gulp");
const babel = require("gulp-babel");
const uglify = require("gulp-uglify");
const plumber = require("gulp-plumber");
const concat = require("gulp-concat");
const fs = require("fs");
const minifyCSS = require("gulp-minify-css");
const inject = require("gulp-inject");
const sourcemaps = require("gulp-sourcemaps");
const config = require("./gulpconfig");
const requireDir = require("require-dir");
requireDir("./tasks");
gulp.task("default", ["inject", "buildNode", "copy"]);
gulp.task("watch", ["default"], () => {
gulp.watch(config.src.js, ["injectJS"]);
gulp.watch(config.src.template, ["cacheTemplates"]);
gulp.watch(config.src.node, ["buildNode"]);
gulp.watch(config.src.css, ["injectCSS"]);
});
module.exports = () => {
gulp.run("default");
};
})();