1 | var
|
2 | loaddir = require('../'),
|
3 | _ = require('underscore');
|
4 |
|
5 |
|
6 | module.exports = function(){
|
7 | var self = this;
|
8 | var options = this.options;
|
9 |
|
10 | options.debug = options.debug == null ?
|
11 | loaddir.debug
|
12 | : options.debug;
|
13 |
|
14 | _.each([
|
15 | 'asObject',
|
16 | 'baseName',
|
17 | 'callback',
|
18 | 'compile',
|
19 | 'debug',
|
20 | 'destination',
|
21 | 'existingManifest',
|
22 | 'extension',
|
23 | 'fastWatch',
|
24 | 'fileName',
|
25 | 'output',
|
26 | 'path',
|
27 | 'pathsOnly',
|
28 | 'recursive',
|
29 | 'relativePath',
|
30 | 'require',
|
31 | 'toFilename',
|
32 | 'watch',
|
33 | 'watchHandler',
|
34 | 'watchedPaths',
|
35 | 'watchers',
|
36 | ], function(opt) {
|
37 | self[opt] = options[opt];
|
38 | })
|
39 |
|
40 | if (self.watch == null)
|
41 | self.watch = self.loaddir.watch;
|
42 |
|
43 | };
|