-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js
49 lines (43 loc) · 1.81 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// create
var path = require('path');
// Where do these folders live?
var folders = {};
folders.root = __dirname;
folders.source = path.resolve(__dirname, 'src/');
folders.typings = path.resolve(__dirname, 'typings/');
folders.build = path.resolve(__dirname, 'build/');
folders.release = path.resolve(__dirname, 'release/');
folders.distribute = path.resolve(__dirname, 'dist/');
// Where are the files from in the beginning?
var source = {};
source.polyfills = path.resolve(folders.source, 'javascript/polyfillers/**/**.js');
source.markup = path.resolve(folders.source, 'markup/**/**.+(md|html|htm)');
source.midi = path.resolve(folders.source, 'midi/**/**.+(mid|midi)');
source.static = path.resolve(folders.source, 'static');
source.style = path.resolve(folders.source, 'styles/style.less');
source.typescript = [folders.source+'typescript/audiobus/**/**.ts', './typings/**/**.ts'];
// Where do the files ends up in the end?
var destination = function( folder )
{
var output = {};
output.midi = path.resolve(folder,'assets/midi');
output.static = path.resolve(folder);
output.scripts = path.resolve(folder,'assets/scripts/');
output.style = path.resolve(folder,'assets/style/');
output.examples = path.resolve(folder,'examples/');
return output;
}
// expose
module.exports = {
folders : folders,
source : source,
typings : folders.typings,
build : destination( folders.build ),
release : destination( folders.release ),
distribute : destination( folders.distribute ),
destination : destination( folders.build ),
names : {
library : "audiobus",
polyfills : "polyfills"
}
}