-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
43 lines (41 loc) · 815 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
/*eslint-disable*/
var path = require('path');
var fs = require('fs');
var src = path.join(__dirname, 'src/**/*.js');
var build = path.join(__dirname, 'build');
var entry = path.join(build, 'export.js');
var dist = path.join(__dirname, 'dist');
var test = path.join(__dirname, 'test');
var karmaConfig = path.join(test, 'karma.conf.js');
module.exports = {
build: build,
babel: {
comments: false,
optional: [
'runtime',
'spec.undefinedToVoid'
],
stage: 2
},
browserify: {
entries: entry,
dest: dist,
noParse: [],
outputName: 'rack.js',
standalone: 'Rack',
transform: [
'browserify-shim'
]
},
dist: dist,
releaseName: 'rack.min.js',
preprocess: {
context: {}
},
src: [
src
],
test: {
karmaConfig: karmaConfig
}
};