-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
32 lines (27 loc) · 691 Bytes
/
index.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
'use strict';
global.gulp = global.gulp || require("gulp");
const tasker = require("./src/utils/tasker");
const Base = require("./src/Base");
const HTML = require("./src/HTML");
const JS = require("./src/JS");
const CSS = require("./src/CSS");
const gulphy = {
Base: Base,
HTML: HTML,
JS: JS,
CSS: CSS,
base: wrapNew(Base),
html: wrapNew(HTML),
js: wrapNew(JS),
css: wrapNew(CSS),
tasker: tasker,
registerRun: tasker.registerRun,
registerWatch: tasker.registerWatch,
registerRunAndWatch: tasker.registerRunAndWatch,
}
function wrapNew(fn) {
return function (settings) {
return new fn(settings);
}
}
module.exports = gulphy