UNPKG

generator-theia

Version:

Theia Generator

45 lines 2.13 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 electron_backend_generator_1 = require("./electron-backend-generator"); var electron_frontend_generator_1 = require("./electron-frontend-generator"); var TheiaElectronGenerator = (function (_super) { __extends(TheiaElectronGenerator, _super); function TheiaElectronGenerator() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.backend = new electron_backend_generator_1.ElectronBackendGenerator(_this.model); _this.frontend = new electron_frontend_generator_1.ElectronFrontendGenerator(_this.model); return _this; } TheiaElectronGenerator.prototype.initializing = function () { this.model.target = 'electron-renderer'; _super.prototype.initializing.call(this); }; TheiaElectronGenerator.prototype.configuring = function () { _super.prototype.configuring.call(this); }; TheiaElectronGenerator.prototype.writing = function () { _super.prototype.writing.call(this); this.backend.generate(this.fs); this.frontend.generate(this.fs); }; return TheiaElectronGenerator; }(common_1.AbstractAppGenerator)); exports.TheiaElectronGenerator = TheiaElectronGenerator; //# sourceMappingURL=electron-generator.js.map