Skip to content

Commit

Permalink
publish v0.7.0
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Dumais <[email protected]>
  • Loading branch information
marcdumais-work committed May 30, 2019
1 parent f090851 commit b67025d
Show file tree
Hide file tree
Showing 62 changed files with 10,500 additions and 372 deletions.
6 changes: 3 additions & 3 deletions dev-packages/application-manager/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@theia/application-manager",
"version": "0.6.0",
"version": "0.7.0",
"description": "Theia application manager API.",
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -28,7 +28,7 @@
"test": "theiaext test"
},
"dependencies": {
"@theia/application-package": "^0.6.0",
"@theia/application-package": "^0.7.0",
"@types/fs-extra": "^4.0.2",
"bunyan": "^1.8.10",
"circular-dependency-plugin": "^5.0.0",
Expand All @@ -50,7 +50,7 @@
"worker-loader": "^1.1.1"
},
"devDependencies": {
"@theia/ext-scripts": "^0.6.0"
"@theia/ext-scripts": "^0.7.0"
},
"nyc": {
"extends": "../../configs/nyc.json"
Expand Down
4 changes: 2 additions & 2 deletions dev-packages/application-package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@theia/application-package",
"version": "0.6.0",
"version": "0.7.0",
"description": "Theia application package API.",
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -40,7 +40,7 @@
"write-json-file": "^2.2.0"
},
"devDependencies": {
"@theia/ext-scripts": "^0.6.0"
"@theia/ext-scripts": "^0.7.0"
},
"nyc": {
"extends": "../../configs/nyc.json"
Expand Down
4 changes: 2 additions & 2 deletions dev-packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@theia/cli",
"version": "0.6.0",
"version": "0.7.0",
"description": "Theia CLI.",
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -30,6 +30,6 @@
"test": "echo 'skip'"
},
"dependencies": {
"@theia/application-manager": "^0.6.0"
"@theia/application-manager": "^0.7.0"
}
}
2 changes: 1 addition & 1 deletion dev-packages/electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@theia/electron",
"version": "0.6.0",
"version": "0.7.0",
"description": "Electron runtime dependencies for Theia",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion dev-packages/ext-scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@theia/ext-scripts",
"version": "0.6.0",
"version": "0.7.0",
"license": "EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0",
"description": "NPM scripts for Theia packages.",
"files": [
Expand Down
80 changes: 80 additions & 0 deletions examples/browser/a/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"private": true,
"name": "@theia/example-browser",
"version": "0.7.0",
"license": "EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0",
"theia": {
"frontend": {
"config": {
"applicationName": "Theia Browser Example",
"preferences": {
"files.enableTrash": false
}
}
}
},
"dependencies": {
"@theia/callhierarchy": "^0.7.0",
"@theia/console": "^0.7.0",
"@theia/core": "^0.7.0",
"@theia/cpp": "^0.7.0",
"@theia/debug": "^0.7.0",
"@theia/debug-nodejs": "^0.7.0",
"@theia/editor": "^0.7.0",
"@theia/editor-preview": "^0.7.0",
"@theia/editorconfig": "^0.7.0",
"@theia/file-search": "^0.7.0",
"@theia/filesystem": "^0.7.0",
"@theia/getting-started": "^0.7.0",
"@theia/git": "^0.7.0",
"@theia/java": "^0.7.0",
"@theia/java-debug": "^0.7.0",
"@theia/json": "^0.7.0",
"@theia/keymaps": "^0.7.0",
"@theia/languages": "^0.7.0",
"@theia/markers": "^0.7.0",
"@theia/merge-conflicts": "^0.7.0",
"@theia/messages": "^0.7.0",
"@theia/metrics": "^0.7.0",
"@theia/mini-browser": "^0.7.0",
"@theia/monaco": "^0.7.0",
"@theia/navigator": "^0.7.0",
"@theia/outline-view": "^0.7.0",
"@theia/output": "^0.7.0",
"@theia/plugin-ext": "^0.7.0",
"@theia/plugin-ext-vscode": "^0.7.0",
"@theia/preferences": "^0.7.0",
"@theia/preview": "^0.7.0",
"@theia/process": "^0.7.0",
"@theia/python": "^0.7.0",
"@theia/scm": "^0.7.0",
"@theia/search-in-workspace": "^0.7.0",
"@theia/task": "^0.7.0",
"@theia/terminal": "^0.7.0",
"@theia/textmate-grammars": "^0.7.0",
"@theia/tslint": "^0.7.0",
"@theia/typehierarchy": "^0.7.0",
"@theia/typescript": "^0.7.0",
"@theia/userstorage": "^0.7.0",
"@theia/variable-resolver": "^0.7.0",
"@theia/workspace": "^0.7.0"
},
"scripts": {
"prepare": "yarn run clean && yarn build",
"clean": "theia clean && rimraf errorShots",
"build": "theiaext compile && theia build --mode development",
"watch": "concurrently -n compile,bundle \"theiaext watch --preserveWatchOutput\" \"theia build --watch --mode development\"",
"start": "theia start --plugins=local-dir:../../plugins",
"start:debug": "yarn start --log-level=debug",
"test": "wdio wdio.conf.js",
"test-non-headless": "wdio wdio-non-headless.conf.js",
"coverage:compile": "yarn build --config coverage-webpack.config.js",
"coverage:remap": "remap-istanbul -i coverage/coverage.json -o coverage/coverage-final.json --exclude 'frontend/index.js' && rimraf coverage/coverage.json",
"coverage:report:html": "istanbul report --root coverage --format html",
"coverage:report:lcov": "istanbul report --root coverage --format lcov",
"coverage": "yarn coverage:compile && yarn test && yarn coverage:remap && yarn coverage:report:lcov && yarn coverage:report:html"
},
"devDependencies": {
"@theia/cli": "^0.7.0"
}
}
13 changes: 13 additions & 0 deletions examples/browser/a/src-gen/backend/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// @ts-check
const { BackendApplicationConfigProvider } = require('@theia/core/lib/node/backend-application-config-provider');
const main = require('@theia/core/lib/node/main');
BackendApplicationConfigProvider.set({});

const serverModule = require('./server');
const address = main.start(serverModule());
address.then(function (address) {
if (process && process.send) {
process.send(address.port.toString());
}
});
module.exports = address;
67 changes: 67 additions & 0 deletions examples/browser/a/src-gen/backend/server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
// @ts-check
require('reflect-metadata');
const path = require('path');
const express = require('express');
const { Container } = require('inversify');
const { BackendApplication, CliManager } = require('@theia/core/lib/node');
const { backendApplicationModule } = require('@theia/core/lib/node/backend-application-module');
const { messagingBackendModule } = require('@theia/core/lib/node/messaging/messaging-backend-module');
const { loggerBackendModule } = require('@theia/core/lib/node/logger-backend-module');

const container = new Container();
container.load(backendApplicationModule);
container.load(messagingBackendModule);
container.load(loggerBackendModule);

function load(raw) {
return Promise.resolve(raw.default).then(module =>
container.load(module)
)
}

function start(port, host, argv) {
if (argv === undefined) {
argv = process.argv;
}

const cliManager = container.get(CliManager);
return cliManager.initializeCli(argv).then(function () {
const application = container.get(BackendApplication);
application.use(express.static(path.join(__dirname, '../../lib')));
application.use(express.static(path.join(__dirname, '../../lib/index.html')));
return application.start(port, host);
});
}

module.exports = (port, host, argv) => Promise.resolve()
.then(function () { return Promise.resolve(require('@theia/process/lib/node/process-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/filesystem/lib/node/filesystem-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/filesystem/lib/node/download/file-download-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/workspace/lib/node/workspace-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/languages/lib/node/languages-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/json/lib/node/json-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/terminal/lib/node/terminal-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/task/lib/node/task-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/cpp/lib/node/cpp-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/debug/lib/node/debug-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/debug-nodejs/lib/node/debug-nodejs-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/editorconfig/lib/node/editorconfig-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/file-search/lib/node/file-search-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/git/lib/node/git-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/git/lib/node/env/git-env-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/java/lib/node/java-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/java-debug/lib/node/java-debug-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/metrics/lib/node/metrics-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/mini-browser/lib/node/mini-browser-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/search-in-workspace/lib/node/search-in-workspace-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/plugin-ext/lib/plugin-ext-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/plugin-ext-vscode/lib/node/plugin-vscode-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/python/lib/node/python-backend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/typescript/lib/node/typescript-backend-module')).then(load) })
.then(() => start(port, host, argv)).catch(reason => {
console.error('Failed to start the backend application.');
if (reason) {
console.error(reason);
}
throw reason;
});
13 changes: 13 additions & 0 deletions examples/browser/a/src-gen/frontend/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<script type="text/javascript" src="./bundle.js" charset="utf-8"></script>
</head>

<body>
<div class="theia-preload"></div>
</body>

</html>
89 changes: 89 additions & 0 deletions examples/browser/a/src-gen/frontend/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
// @ts-check
require('es6-promise/auto');
require('reflect-metadata');
const { Container } = require('inversify');
const { FrontendApplication } = require('@theia/core/lib/browser');
const { frontendApplicationModule } = require('@theia/core/lib/browser/frontend-application-module');
const { messagingFrontendModule } = require('@theia/core/lib/browser/messaging/messaging-frontend-module');
const { loggerFrontendModule } = require('@theia/core/lib/browser/logger-frontend-module');
const { ThemeService } = require('@theia/core/lib/browser/theming');
const { FrontendApplicationConfigProvider } = require('@theia/core/lib/browser/frontend-application-config-provider');

FrontendApplicationConfigProvider.set({
"applicationName": "Theia Browser Example",
"preferences": {
"files.enableTrash": false
}
});

const container = new Container();
container.load(frontendApplicationModule);
container.load(messagingFrontendModule);
container.load(loggerFrontendModule);

function load(raw) {
return Promise.resolve(raw.default).then(module =>
container.load(module)
)
}

function start() {
const themeService = ThemeService.get();
themeService.loadUserTheme();

const application = container.get(FrontendApplication);
application.start();
}

module.exports = Promise.resolve()
.then(function () { return Promise.resolve(require('@theia/core/lib/browser/menu/browser-menu-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/core/lib/browser/window/browser-window-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/core/lib/browser/keyboard/browser-keyboard-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/output/lib/browser/output-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/filesystem/lib/browser/filesystem-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/filesystem/lib/browser/download/file-download-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/filesystem/lib/browser/file-dialog/file-dialog-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/variable-resolver/lib/browser/variable-resolver-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/workspace/lib/browser/workspace-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/languages/lib/browser/languages-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/editor/lib/browser/editor-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/navigator/lib/browser/navigator-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/markers/lib/browser/problem/problem-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/outline-view/lib/browser/outline-view-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/monaco/lib/browser/monaco-browser-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/callhierarchy/lib/browser/callhierarchy-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/console/lib/browser/console-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/json/lib/browser/json-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/userstorage/lib/browser/user-storage-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/preferences/lib/browser/preference-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/terminal/lib/browser/terminal-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/task/lib/browser/task-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/cpp/lib/browser/cpp-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/debug/lib/browser/debug-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/editor-preview/lib/browser/editor-preview-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/editorconfig/lib/browser/editorconfig-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/file-search/lib/browser/file-search-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/keymaps/lib/browser/keymaps-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/getting-started/lib/browser/getting-started-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/scm/lib/browser/scm-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/git/lib/browser/git-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/git/lib/browser/prompt/git-prompt-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/java/lib/browser/java-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/java-debug/lib/browser/java-debug-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/merge-conflicts/lib/browser/merge-conflicts-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/messages/lib/browser/messages-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/mini-browser/lib/browser/mini-browser-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/search-in-workspace/lib/browser/search-in-workspace-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/plugin-ext/lib/plugin-ext-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/plugin-ext-vscode/lib/browser/plugin-vscode-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/preview/lib/browser/preview-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/python/lib/browser/python-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/textmate-grammars/lib/browser/textmate-grammars-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/typehierarchy/lib/browser/typehierarchy-frontend-module')).then(load) })
.then(function () { return Promise.resolve(require('@theia/typescript/lib/browser/typescript-frontend-module')).then(load) })
.then(start).catch(reason => {
console.error('Failed to start the frontend application.');
if (reason) {
console.error(reason);
}
});
Loading

0 comments on commit b67025d

Please sign in to comment.