1 |
|
2 |
|
3 |
|
4 | 'use strict';
|
5 |
|
6 | const T = require('../tools'),
|
7 | util = require('../utils');
|
8 |
|
9 | class TaskNodeFun {
|
10 | |
11 |
|
12 |
|
13 |
|
14 |
|
15 | constructor(fun, gupack) {
|
16 | this.name = undefined;
|
17 | this.fun = fun;
|
18 | this.src = '';
|
19 | this.filters = '';
|
20 | this.plugins = [];
|
21 | this.watch = [];
|
22 | this.run = true;
|
23 | this.noWatch = false;
|
24 | this.dest = null;
|
25 | this.loader = {};
|
26 | this.base = T.getArg('cwdir') || process.cwd();
|
27 | this.gupack = undefined;
|
28 | this.pluginCache = {};
|
29 | this.merge = false;
|
30 |
|
31 | if (gupack) {
|
32 | this.gupack = gupack;
|
33 | this.gulp = this.gupack.gulp;
|
34 | this.basePath = this.gupack.basePath;
|
35 | this.sourceDir = this.gupack.sourceDir;
|
36 | this.buildDir = this.gupack.buildDir;
|
37 | }
|
38 |
|
39 |
|
40 | }
|
41 |
|
42 | init() {
|
43 |
|
44 | }
|
45 | }
|
46 |
|
47 | module.exports = TaskNodeFun;
|