Skip to content

Commit a18418f

Browse files
committed
Add working tree editor
1 parent 92619e6 commit a18418f

File tree

306 files changed

+950152
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

306 files changed

+950152
-1
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
.browser_modules
3+
*.log

.vscode/launch.json

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
// Use IntelliSense to learn about possible Node.js debug attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Start Browser Backend",
11+
"program": "${workspaceRoot}/browser-app/src-gen/backend/main.js",
12+
"args": [
13+
"--loglevel=debug",
14+
"--port=3000",
15+
"--no-cluster"
16+
],
17+
"env": {
18+
"NODE_ENV": "development"
19+
},
20+
"sourceMaps": true,
21+
"outFiles": [
22+
"${workspaceRoot}/node_modules/@theia/*/lib/**/*.js",
23+
"${workspaceRoot}/browser-app/lib/**/*.js",
24+
"${workspaceRoot}/browser-app/src-gen/**/*.js"
25+
],
26+
"smartStep": true,
27+
"internalConsoleOptions": "openOnSessionStart",
28+
"outputCapture": "std"
29+
},
30+
{
31+
"type": "node",
32+
"request": "launch",
33+
"name": "Start Electron Backend",
34+
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
35+
"windows": {
36+
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
37+
},
38+
"program": "${workspaceRoot}/electron-app/src-gen/frontend/electron-main.js",
39+
"protocol": "inspector",
40+
"args": [
41+
"--loglevel=debug",
42+
"--hostname=localhost",
43+
"--no-cluster"
44+
],
45+
"env": {
46+
"NODE_ENV": "development"
47+
},
48+
"sourceMaps": true,
49+
"outFiles": [
50+
"${workspaceRoot}/electron-app/src-gen/frontend/electron-main.js",
51+
"${workspaceRoot}/electron-app/src-gen/backend/main.js",
52+
"${workspaceRoot}/electron-app/lib/**/*.js",
53+
"${workspaceRoot}/node_modules/@theia/*/lib/**/*.js"
54+
],
55+
"smartStep": true,
56+
"internalConsoleOptions": "openOnSessionStart",
57+
"outputCapture": "std"
58+
}
59+
]
60+
}

README.md

+73-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,73 @@
1-
jsonforms-tree-editor
1+
# veggie-editor
2+
The example of how to build the Theia-based applications with the veggie-editor.
3+
4+
## Getting started
5+
6+
Install [nvm](https://github.com/creationix/nvm#install-script).
7+
8+
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash
9+
10+
Install npm and node.
11+
12+
nvm install 8
13+
nvm use 8
14+
15+
Install yarn.
16+
17+
npm install -g yarn
18+
19+
## Running the browser example
20+
21+
yarn rebuild:browser
22+
cd browser-app
23+
yarn start
24+
25+
Open http://localhost:3000 in the browser.
26+
27+
## Running the Electron example
28+
29+
yarn rebuild:electron
30+
cd electron-app
31+
yarn start
32+
33+
## Developing with the browser example
34+
35+
Start watching of veggie-editor.
36+
37+
cd veggie-editor
38+
yarn watch
39+
40+
Start watching of the browser example.
41+
42+
yarn rebuild:browser
43+
cd browser-app
44+
yarn watch
45+
46+
Launch `Start Browser Backend` configuration from VS code.
47+
48+
Open http://localhost:3000 in the browser.
49+
50+
## Developing with the Electron example
51+
52+
Start watching of veggie-editor.
53+
54+
cd veggie-editor
55+
yarn watch
56+
57+
Start watching of the electron example.
58+
59+
yarn rebuild:electron
60+
cd electron-app
61+
yarn watch
62+
63+
Launch `Start Electron Backend` configuration from VS code.
64+
65+
## Publishing veggie-editor
66+
67+
Create a npm user and login to the npm registry, [more on npm publishing](https://docs.npmjs.com/getting-started/publishing-npm-packages).
68+
69+
npm login
70+
71+
Publish packages with lerna to update versions properly across local packages, [more on publishing with lerna](https://github.com/lerna/lerna#publish).
72+
73+
npx lerna publish

0 commit comments

Comments
 (0)