forked from DamonOehlman/tile5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.js
35 lines (31 loc) · 905 Bytes
/
build.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
var interleave = require('interleave'),
fs = require('fs'),
config = {
aliases: {
geojs: 'github://DamonOehlman/geojs/lib/$1',
cog: 'github://DamonOehlman/cog/cogs/$1',
interact: 'github://DamonOehlman/interact/$1',
timelord: 'github://sidelab/DamonOehlman/timelord',
colorparser: 'lib/colorparser',
glMatrix: 'gcode://glmatrix/hg/glMatrix'
}
};
// build each of the builds
interleave('builds', {
multi: 'pass',
path: 'dist',
config: config
});
fs.readdir('src/plugins', function(err, files) {
var buildFiles = files.map(function(file) { return 'src/plugins/' + file; });
interleave(buildFiles, {
multi: 'pass',
path: 'dist/plugins',
config: config
});
});
interleave('src/style', {
multi: 'pass',
path: 'dist/style',
config: config
});