Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
Release v0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hansonw committed Jul 18, 2018
1 parent 094459b commit 40c05eb
Show file tree
Hide file tree
Showing 523 changed files with 49,551 additions and 46,456 deletions.
Empty file removed DEVELOPMENT
Empty file.
23 changes: 1 addition & 22 deletions flow-libs/nuclide.flow.js
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
/**
* 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.
*
* @flow strict
* @format
*/

/* eslint-disable no-undef */

declare interface nuclide$CwdApi {
setCwd(path: string): void;
observeCwd(callback: (path: ?string) => void): IDisposable;
getCwd(): ?string;
}

declare interface nuclide$RpcService {
getServiceByNuclideUri(serviceName: string, uri: ?string): any;
}
"use strict";
116 changes: 73 additions & 43 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,41 @@
"use strict";

var _fs = _interopRequireDefault(require("fs"));

var _path = _interopRequireDefault(require("path"));

function _UniversalDisposable() {
const data = _interopRequireDefault(require("./modules/nuclide-commons/UniversalDisposable"));

_UniversalDisposable = function () {
return data;
};

return data;
}

function _FeatureLoader() {
const data = _interopRequireDefault(require("./modules/nuclide-commons-atom/FeatureLoader"));

_FeatureLoader = function () {
return data;
};

return data;
}

function _displayNuclideWarning() {
const data = _interopRequireDefault(require("./display-nuclide-warning"));

_displayNuclideWarning = function () {
return data;
};

return data;
}

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
Expand All @@ -6,75 +44,67 @@
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*
* @format
*/

/* eslint-disable nuclide-internal/no-commonjs */

import fs from 'fs';
// eslint-disable-next-line nuclide-internal/prefer-nuclide-uri
import path from 'path';
import UniversalDisposable from 'nuclide-commons/UniversalDisposable';
import FeatureLoader from 'nuclide-commons-atom/FeatureLoader';
import displayNuclideWarning from './display-nuclide-warning';

const featureDir = path.join(__dirname, 'modules/atom-ide-ui/pkg');
const features = fs
.readdirSync(featureDir)
.map(item => {
const dirname = path.join(featureDir, item);
try {
const pkgJson = fs.readFileSync(
path.join(dirname, 'package.json'),
'utf8',
);
return {
path: dirname,
pkg: JSON.parse(pkgJson),
};
} catch (err) {
if (err.code !== 'ENOENT' && err.code !== 'ENOTDIR') {
throw err;
}
}
})
.filter(Boolean);
const featureDir = _path.default.join(__dirname, 'modules/atom-ide-ui/pkg');

const features = _fs.default.readdirSync(featureDir).map(item => {
const dirname = _path.default.join(featureDir, item);

try {
const pkgJson = _fs.default.readFileSync(_path.default.join(dirname, 'package.json'), 'utf8');

return {
path: dirname,
pkg: JSON.parse(pkgJson)
};
} catch (err) {
if (err.code !== 'ENOENT' && err.code !== 'ENOTDIR') {
throw err;
}
}
}).filter(Boolean);
/**
* Use a unified package loader to load all the feature packages.
* See the following post for more context:
* https://nuclide.io/blog/2016/01/13/Nuclide-v0.111.0-The-Unified-Package/
*/
let disposables: ?UniversalDisposable;
const featureLoader = new FeatureLoader({


let disposables;
const featureLoader = new (_FeatureLoader().default)({
path: __dirname,
config: {},
features,
features
});
featureLoader.load();

module.exports = {
config: featureLoader.getConfig(),

activate() {
disposables = new UniversalDisposable(
require('nuclide-commons-ui'),
atom.packages.onDidActivatePackage(pkg => {
if (pkg.name === 'nuclide') {
displayNuclideWarning();
}
}),
);
disposables = new (_UniversalDisposable().default)(require("./modules/nuclide-commons-ui"), atom.packages.onDidActivatePackage(pkg => {
if (pkg.name === 'nuclide') {
(0, _displayNuclideWarning().default)();
}
}));
featureLoader.activate();
},

deactivate() {
featureLoader.deactivate();

if (disposables != null) {
disposables.dispose();
disposables = null;
}
},

serialize() {
featureLoader.serialize();
},
};
}

};
7 changes: 4 additions & 3 deletions modules/atom-ide-ui/__atom_tests__/empty-test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

/**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
Expand All @@ -6,10 +8,9 @@
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow strict-local
* strict-local
* @format
*/

test('test', () => {
expect(2).toMatchSnapshot();
});
});
7 changes: 4 additions & 3 deletions modules/atom-ide-ui/__tests__/empty-test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

/**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
Expand All @@ -6,10 +8,9 @@
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow strict-local
* strict-local
* @format
*/

test('test', () => {
expect(1).toMatchSnapshot();
});
});
155 changes: 21 additions & 134 deletions modules/atom-ide-ui/index.js
Original file line number Diff line number Diff line change
@@ -1,134 +1,21 @@
/**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow strict-local
* @format
*/

export type {
BusySignalOptions,
BusySignalService,
} from './pkg/atom-ide-busy-signal/lib/types';

export type {
CodeAction,
CodeActionProvider,
} from './pkg/atom-ide-code-actions/lib/types';

export type {
CodeFormatProvider,
RangeCodeFormatProvider,
FileCodeFormatProvider,
OnTypeCodeFormatProvider,
OnSaveCodeFormatProvider,
} from './pkg/atom-ide-code-format/lib/types';

export type {
CodeHighlightProvider,
} from './pkg/atom-ide-code-highlight/lib/types';

export type {
Datatip,
DatatipProvider,
DatatipService,
MarkedString,
ModifierDatatipProvider,
ModifierKey,
} from './pkg/atom-ide-datatip/lib/types';

export type {
Definition,
DefinitionProvider,
DefinitionPreviewProvider,
DefinitionQueryResult,
} from './pkg/atom-ide-definitions/lib/types';

export type {
CallbackDiagnosticProvider,
DiagnosticFix,
DiagnosticInvalidationCallback,
DiagnosticInvalidationMessage,
DiagnosticMessage,
DiagnosticMessages,
DiagnosticMessageKind,
DiagnosticMessageType,
DiagnosticProvider,
DiagnosticProviderUpdate,
DiagnosticTrace,
DiagnosticUpdateCallback,
IndieLinterDelegate,
LinterMessage,
LinterMessageV1,
LinterMessageV2,
LinterProvider,
LinterTrace,
ObservableDiagnosticProvider,
RegisterIndieLinter,
} from './pkg/atom-ide-diagnostics/lib/types';

export type {
FindReferencesProvider,
FindReferencesReturn,
Reference,
} from './pkg/atom-ide-find-references/lib/types';

export type {
AvailableRefactoring,
RefactorResponse,
RefactorProvider,
RefactorRequest,
} from './pkg/atom-ide-refactor/lib/types';

export type {
Outline,
OutlineProvider,
OutlineTree,
ResultsStreamProvider,
} from './pkg/atom-ide-outline-view/lib/types';

export type {
Signature,
SignatureHelp,
SignatureHelpProvider,
SignatureHelpRegistry,
SignatureParameter,
} from './pkg/atom-ide-signature-help/lib/types';

export type {
HyperclickProvider,
HyperclickSuggestion,
} from './pkg/hyperclick/lib/types';

export type {
ConsoleService,
ConsoleApi,
Level as ConsoleLevel,
Message as ConsoleMessage,
SourceInfo as ConsoleSourceInfo,
OutputProviderStatus,
} from './pkg/atom-ide-console/lib/types';

// Deprecated console types. Exported only for legacy users.
export type {
OutputService,
RegisterExecutorFunction,
} from './pkg/atom-ide-console/lib/types';

export {
RemoteDebuggerService as DebuggerService,
} from './pkg/atom-ide-debugger/lib/types';

export type {
TerminalInfo,
TerminalInstance,
TerminalApi,
} from './pkg/atom-ide-terminal/lib/types';

export type {
Command as TerminalCommand,
} from './pkg/atom-ide-terminal/lib/pty-service/rpc-types';
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "DebuggerService", {
enumerable: true,
get: function () {
return _types().RemoteDebuggerService;
}
});

function _types() {
const data = require("./pkg/atom-ide-debugger/lib/types");

_types = function () {
return data;
};

return data;
}
Loading

0 comments on commit 40c05eb

Please sign in to comment.