KT-3008 Add support of module kind to Ant task. Repair Ant JS tests

This commit is contained in:
Alexey Andreev
2016-04-25 15:19:49 +03:00
parent a9ed789727
commit 713a7efcdf
9 changed files with 89 additions and 3 deletions
@@ -0,0 +1,15 @@
(function(global) {
var modules = {};
modules.kotlin = kotlin;
function define(name, dependencies, body) {
var resolvedDependencies = [];
for (var i = 0; i < dependencies.length; ++i) {
resolvedDependencies[i] = modules[dependencies[i]];
}
modules[name] = body.apply(body, resolvedDependencies);
}
define.amd = {};
global.define = define;
})(this);