forked from IIIF-Commons/manifold
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.config.js
51 lines (48 loc) · 1.67 KB
/
gulpfile.config.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
var metadata = require('./package');
var GulpConfig = (function () {
function GulpConfig() {
this.name = metadata.name;
// libs that MUST be included in a consuming app for this component to work
this.deps = [
'node_modules/manifesto.js/dist/client/manifesto.bundle.js'
];
// libs that MAY be included in a consuming app but are used here for examples purposes
this.examplesDeps = [
];
this.examplesDir = './examples';
this.examplesDepsDir = './examples/js';
// ts definitions to copy to the typings dir
this.typings = [
'node_modules/manifesto.js/dist/manifesto.bundle.d.ts'
];
this.typingsDir = './typings';
this.dist = './dist';
this.header = '// ' + this.name + ' v' + metadata.version + ' ' + metadata.homepage + '\n';
this.jsOut = this.name + '.js';
this.jsBundleOut = this.name + '.bundle.js';
this.jsMinOut = this.name + '.min.js';
this.dtsOut = this.name + '.d.ts';
this.dtsBundleOut = this.name + '.bundle.d.ts';
this.tsSrc = [
'src/_references.ts',
'src/*.ts',
'typings/*.ts',
'typings/**/*.ts'
];
this.tsConfig = {
declarationFiles: true,
noExternalResolve: true,
noLib: false,
module: 'commonjs',
sortOutput: true
};
this.browserifyConfig = {
standalone: this.name,
debug: false
};
this.browserifySrc = this.dist;
this.browserifyTarget = this.dist;
}
return GulpConfig;
})();
module.exports = GulpConfig;