-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
54 lines (44 loc) · 997 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
45
46
47
48
49
50
51
52
53
54
'use strict';
const path = require('path');
const debug = process.env.NODE_ENV === 'development';
const output = path.join(__dirname, 'build');
const config = {
debug: debug,
sourcemap: debug,
linting: debug,
build: {
output: output,
lcov: output
},
js: {
src: 'lib/**/*.js',
output: 'dist',
coverage: 'dist/**/*.js',
},
test: {
src: ['test/**/*.js', '!test/fixture/**/*'],
output: 'dist-test',
tests: 'dist-test/**/*.spec.js',
bootstrap: './dist-test/bootstrap.js',
},
fixture: {
src: 'test/fixture/**/*',
output: 'dist-test/fixture',
},
man: {
src: 'README.md',
output: 'man/git-streaker.1',
},
babel: {
optional: ['es7.classProperties', 'runtime'],
loose: ['es6.classes', 'es6.properties.computed', 'es6.modules', 'es6.forOf'],
},
};
config.outputs = [
config.fixture.output,
config.js.output,
config.test.output,
config.man.output,
config.build.output,
];
module.exports = config;