pull/39/head
Fabian Jakobs 2015-02-18 15:33:05 +00:00
rodzic 8635ad3557
commit 94c3148eaa
1 zmienionych plików z 13 dodań i 7 usunięć

Wyświetl plik

@ -67,18 +67,24 @@ function main(config, settings, options, callback) {
compress: options.compress,
virtual: options.virtual
})
.concat({
consumes: [],
provides: ["cdn.build", "db"],
setup: function(options, imports, register) {
register(null, { "cdn.build": {}, "db": {} });
}
})
.filter(function(p) {
var path = p.packagePath;
return !path || path.indexOf("c9.db.redis/redis") == -1
&& path.indexOf("c9.static/build") == -1
&& path.indexOf("c9.api/health") == -1;
})
.concat({
consumes: [],
provides: ["cdn.build", "db", "health"],
setup: function(options, imports, register) {
register(null, {
"cdn.build": {},
"db": {},
"health": {
addCheck: function() {}
}
});
}
});