-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.js
45 lines (45 loc) · 1.18 KB
/
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
36
37
38
39
40
41
42
43
44
45
{
baseUrl : '../',
name : 'bower_components/almond/almond.js',
include : ['apitizer'],
out : '../dist/apitizer.js',
wrap : {
startFile : './start.frag',
endFile: './end.frag'
},
optimize : 'none',
exclude : ['jquery'],
onBuildWrite : function(moduleName, path, contents){
contents = contents.replace(/\/\/\#\s*sourceMappingURL.*$/g, '');
return "\r\n" + contents + "\r\n";
},
paths: {
jquery : 'bower_components/jquery/dist/jquery',
faker : 'bower_components/Faker.js/Faker',
tv4 : 'bower_components/tv4/tv4',
RandExp : 'bower_components/Randexp.js/index',
taffy : 'bower_components/taffydb/taffy',
fakexmlhttprequest : 'bower_components/fake-xml-http-request/fake_xml_http_request',
rlite : 'bower_components/rlite/rlite',
querystring : 'bower_components/query-string/query-string'
},
shim : {
faker : {
exports : 'Faker'
},
taffy : {
exports : 'TAFFY'
},
fakexmlhttprequest : {
exports: 'FakeXMLHttpRequest'
},
rlite : {
exports : 'Rlite',
}
},
wrapShim : true,
packages : [{
name : 'lodash',
location : 'bower_components/lodash-amd/modern'
}]
}