forked from brick-js/brick.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
44 lines (41 loc) · 862 Bytes
/
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
const _ = require('lodash');
const process = require('process');
const path = require('path');
var config = {
root: path.resolve(process.cwd(), 'bricks'),
html: {
entry: 'index.html'
},
css: {
entry: 'index.css'
},
client: {
entry: 'client.js'
},
server: {
entry: 'server.js'
},
static: {
css: {
url: '/104097114116116108101.css',
file: false,
comment: '/* brick: %s */'
},
js: {
url: '/104097114116116108101.js',
file: false,
comment: '// brick: %s'
}
},
set: function(k, v) {
this[k] = v;
return this;
},
get: function(k) {
return this[k];
}
};
function factory(args) {
return _.merge({}, config, args);
}
exports.factory = factory;