generator-theia
Version:
Theia Generator
34 lines • 1.68 kB
JavaScript
;
/*
* Copyright (C) 2017 TypeFox and others.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*/
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var common_1 = require("../common");
var BrowserFrontendGenerator = (function (_super) {
__extends(BrowserFrontendGenerator, _super);
function BrowserFrontendGenerator() {
return _super !== null && _super.apply(this, arguments) || this;
}
BrowserFrontendGenerator.prototype.generate = function (fs) {
this.doGenerate(fs, this.model.frontendModules);
};
BrowserFrontendGenerator.prototype.compileIndexHead = function (frontendModules) {
return _super.prototype.compileIndexHead.call(this, frontendModules) + "\n <script type=\"text/javascript\" src=\"./require.js\" charset=\"utf-8\"></script>";
};
return BrowserFrontendGenerator;
}(common_1.AbstractFrontendGenerator));
exports.BrowserFrontendGenerator = BrowserFrontendGenerator;
//# sourceMappingURL=browser-frontend-generator.js.map