UNPKG

atom-nuclide

Version:

A unified developer experience for web and mobile development, built as a suite of features on top of Atom to provide hackability and the support of an active community.

69 lines (53 loc) 2.54 kB
Object.defineProperty(exports, '__esModule', { value: true }); /* * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the LICENSE file in * the root directory of this source tree. */ var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } var _debuggingDebuggingActivation2; function _debuggingDebuggingActivation() { return _debuggingDebuggingActivation2 = require('./debugging/DebuggingActivation'); } var _packagerPackagerActivation2; function _packagerPackagerActivation() { return _packagerPackagerActivation2 = require('./packager/PackagerActivation'); } var _shellShellActivation2; function _shellShellActivation() { return _shellShellActivation2 = require('./shell/ShellActivation'); } var _atom2; function _atom() { return _atom2 = require('atom'); } var Activation = (function () { function Activation(state) { _classCallCheck(this, Activation); this._disposables = new (_atom2 || _atom()).CompositeDisposable(this._debuggingActivation = new (_debuggingDebuggingActivation2 || _debuggingDebuggingActivation()).DebuggingActivation(), this._packagerActivation = new (_packagerPackagerActivation2 || _packagerPackagerActivation()).PackagerActivation(), new (_shellShellActivation2 || _shellShellActivation()).ShellActivation()); } _createClass(Activation, [{ key: 'dispose', value: function dispose() { this._disposables.dispose(); } }, { key: 'consumeOutputService', value: function consumeOutputService(api) { return this._packagerActivation.consumeOutputService(api); } }, { key: 'consumeCwdApi', value: function consumeCwdApi(api) { return this._packagerActivation.consumeCwdApi(api); } }]); return Activation; })(); exports.default = Activation; module.exports = exports.default;