forked from canjs/canjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.js
61 lines (57 loc) · 1.59 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
var stealTools = require("steal-tools");
var globalJS = require("steal-tools/lib/build/helpers/global").js;
var baseNormalize = globalJS.normalize();
stealTools.export({
system: {
config: __dirname + "/package.json!npm",
main: "can/all"
},
options: {
useNormalizedDependencies: false,
verbose: true
},
outputs: {
"all": {
modules: ["can/all"],
format: "global",
dest: globalJS.dest(__dirname+"/dist/global/can.all.js"),
useNormalizedDependencies: true,
normalize: function(depName, depLoad, curName, curLoad, loader){
return baseNormalize.call(this, depName, depLoad, curName, curLoad, loader, true);
},
// ignore jquery
ignore: [function(name){
if(name.indexOf("jquery") === 0 || name.indexOf("kefir") === 0) {
return true;
} else {
return false;
}
}],
exports: {"jquery": "jQuery", "can-util/namespace": "can", "kefir": "Kefir"},
removeDevelopmentCode: false
},
"core": {
modules: ["can/can"],
format: "global",
dest: globalJS.dest(__dirname+"/dist/global/can.js"),
useNormalizedDependencies: true,
normalize: function(depName, depLoad, curName, curLoad, loader){
return baseNormalize.call(this, depName, depLoad, curName, curLoad, loader, true);
},
// ignore jquery
ignore: [function(name){
if(name.indexOf("jquery") === 0 || name.indexOf("kefir") === 0) {
return true;
} else {
return false;
}
}],
exports: {"jquery": "jQuery", "can-util/namespace": "can", "kefir": "Kefir"},
removeDevelopmentCode: false
}
}
}).catch(function(e){
setTimeout(function(){
throw e;
},1);
});