-
Notifications
You must be signed in to change notification settings - Fork 31
/
config.js
33 lines (32 loc) · 1.08 KB
/
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
var metadata = require('./package');
var path = require('path');
module.exports = function (opts) {
this.metadata = opts.metadata;
this.header = '// ' + this.metadata.name + ' v' + this.metadata.version + ' ' + this.metadata.homepage + '\n';
this.dependencies = {
// libs that MUST be included in a consuming app for this component to work
libs: opts.libs,
// libs that MAY be included in a consuming app but are used here for examples purposes
examples: opts.examples
};
this.fileNames = {
jsOut: this.metadata.name + '.js',
jsMinOut: this.metadata.name + '.min.js',
jsBundleOut: this.metadata.name + '.bundle.js',
dtsOut: this.metadata.name + '.d.ts'
};
this.directories = {
dist: './dist',
client: './dist/client/',
server: './dist/server/',
tests: './test'
};
this.browserify = {
src: this.directories.server,
target: this.directories.client,
config: {
standalone: this.metadata.name,
debug: false
}
};
}