Renamed the applications.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta 2019-08-29 08:05:47 +02:00
parent b82d5e4f0b
commit cd94608aee
9 changed files with 17 additions and 16 deletions

3
.gitignore vendored
View File

@ -6,7 +6,8 @@ build/
downloads/
!electron/build/
src-gen/
arduino-ide-*/webpack.config.js
browser-app/webpack.config.js
electron-app/webpack.config.js
.DS_Store
/workspace/static
# switching from `electron` to `browser` in dev mode.

View File

@ -8,7 +8,7 @@ ports:
tasks:
- init: >
yarn &&
yarn --cwd ./arduino-ide-browser start
yarn --cwd ./browser-app start
github:
prebuilds:

6
.vscode/launch.json vendored
View File

@ -14,7 +14,7 @@
"type": "node",
"request": "launch",
"name": "Launch Backend",
"program": "${workspaceRoot}/arduino-ide-browser/src-gen/backend/main.js",
"program": "${workspaceRoot}/browser-app/src-gen/backend/main.js",
"args": [
"--hostname=0.0.0.0",
"--port=3000",
@ -26,8 +26,8 @@
},
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/arduino-ide-browser/src-gen/backend/*.js",
"${workspaceRoot}/arduino-ide-browser/lib/**/*.js",
"${workspaceRoot}/browser-app/src-gen/backend/*.js",
"${workspaceRoot}/browser-app/lib/**/*.js",
"${workspaceRoot}/arduino-ide-extension/*/lib/**/*.js"
],
"smartStep": true,

4
.vscode/tasks.json vendored
View File

@ -6,7 +6,7 @@
{
"label": "Arduino Editor - Start Browser Example",
"type": "shell",
"command": "yarn --cwd ./arduino-ide-browser start",
"command": "yarn --cwd ./browser-app start",
"group": "build",
"presentation": {
"reveal": "always",
@ -28,7 +28,7 @@
{
"label": "Arduino Editor - Watch Browser Example",
"type": "shell",
"command": "yarn --cwd ./arduino-ide-browser watch",
"command": "yarn --cwd ./browser-app watch",
"group": "build",
"presentation": {
"reveal": "always",

View File

@ -26,7 +26,7 @@ yarn rebuild:browser
```
Then you can start the browser example again:
```
yarn --cwd arduino-ide-browser start
yarn --cwd browser-app start
```
## Arduino-PoC Electron Application

View File

@ -1,6 +1,6 @@
{
"private": true,
"name": "arduino-ide-browser",
"name": "browser-app",
"version": "0.0.1",
"license": "MIT",
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"private": true,
"name": "arduino-ide-electron",
"name": "electron-app",
"version": "0.0.1",
"license": "MIT",
"dependencies": {

View File

@ -47,13 +47,13 @@
}
//-----------------------------------------------------+
// No need to build the `arduino-ide-browser` example. |
// No need to build the `browser-app` example. |
//-----------------------------------------------------+
//@ts-ignore
let pkg = require('../working-copy/package.json');
const workspaces = pkg.workspaces;
// We cannot remove the `arduino-ide-electron`. Otherwise, there is not way to collect the unused dependencies.
const dependenciesToRemove = ['arduino-ide-browser'];
const dependenciesToRemove = ['browser-app'];
for (const dependencyToRemove of dependenciesToRemove) {
const index = workspaces.indexOf(dependencyToRemove);
if (index !== -1) {

View File

@ -14,12 +14,12 @@
"prepare": "lerna run prepare",
"rebuild:browser": "theia rebuild:browser",
"rebuild:electron": "theia rebuild:electron",
"start": "yarn --cwd ./arduino-ide-browser start",
"start": "yarn --cwd ./browser-app start",
"watch": "lerna run watch --parallel"
},
"workspaces": [
"arduino-ide-electron",
"arduino-ide-browser",
"arduino-ide-extension"
"arduino-ide-extension",
"electron-app",
"browser-app"
]
}