An example of how to build the Theia-based applications with the tree-editor-extension.
We are relying on a bunch of projects:
- https://github.com/eclipsesource/theia-tree-editor
- https://github.com/eclipsesource/jsonforms
- https://github.com/eclipsesource/graphical-lsp
If you encounter issues please report them in the corresponding project. This project should not contain much code and should mostly consist of 'glue' code to combine the different components.
Install nvm.
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash
Install npm and node.
nvm install 8
nvm use 8
Install yarn.
npm install -g yarn
git clone https://github.com/eclipsesource/coffee-editor.git
cd coffee-editor
yarn install
cd browser-app
yarn start
Open http://localhost:3000 in the browser.
On the File Menu
, open a project and right click to a JSON file and select Open With -> Open With Tree Editor
-
Start watching changes on the extension via
cd coffee-editor-extension && yarn watch
This command starts watching the changes within the extension, e.g. whenever you update any of the source code files within the extension
-
Start watching the browser app via
cd browser-app && yarn watch
This command watches for changes within the browser app and rebuils it, e.g. this is the case whenever the coffee-editor-changes finished rebuilding, as the browser has a depedency on the extension. Note that rebuilding the browser app might take a couple of seconds. You can verify that it finished building the browser-app by looking at the hash of the bundle generated by webpack
-
Start the browser app with
cd browser-app && yarn start
This start the browser app on
http://localhost:3000
NOTE: The browser does not reload automatically whenever you changed something, you need to reload yourself currently.
Create a npm user and login to the npm registry, more on npm publishing.
npm login
Publish packages with lerna to update versions properly across local packages, more on publishing with lerna.
npx lerna publish