Initial new rt integration

This commit is contained in:
dcode
2019-05-12 13:50:28 +02:00
parent dd2bdd0383
commit ba1a0c2369
52 changed files with 1066 additions and 2985 deletions

View File

@ -392,11 +392,11 @@ exports.main = function main(argv, options, callback) {
// Include runtime template
{
let templateName = String(args.runtime);
let templateText = exports.libraryFiles["runtime/" + templateName];
let templateText = exports.libraryFiles["rt/index-" + templateName];
if (templateText == null) {
templateText = readFile(templateName + ".ts", baseDir);
if (templateText == null) {
return callback(Error("Runtime template '" + templateName + " not found."));
return callback(Error("Runtime template '" + templateName + "' not found."));
}
}
stats.parseCount++;