UNPKG

generator-theia

Version:

Theia Generator

45 lines 2.1 kB
"use strict"; /* * 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 browser_backend_generator_1 = require("./browser-backend-generator"); var browser_frontend_generator_1 = require("./browser-frontend-generator"); var TheiaBrowserGenerator = (function (_super) { __extends(TheiaBrowserGenerator, _super); function TheiaBrowserGenerator() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.backend = new browser_backend_generator_1.BrowserBackendGenerator(_this.model); _this.frontend = new browser_frontend_generator_1.BrowserFrontendGenerator(_this.model); return _this; } TheiaBrowserGenerator.prototype.initializing = function () { this.model.target = 'web'; _super.prototype.initializing.call(this); }; TheiaBrowserGenerator.prototype.configuring = function () { _super.prototype.configuring.call(this); }; TheiaBrowserGenerator.prototype.writing = function () { _super.prototype.writing.call(this); this.backend.generate(this.fs); this.frontend.generate(this.fs); }; return TheiaBrowserGenerator; }(common_1.AbstractAppGenerator)); exports.TheiaBrowserGenerator = TheiaBrowserGenerator; //# sourceMappingURL=browser-generator.js.map