-
Notifications
You must be signed in to change notification settings - Fork 5
Add extension development guide #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,58 @@ | ||
| # [WIP] Vividus extension for Visual Studio Code | ||
| # Development guide | ||
|
|
||
| ## Tools | ||
| * Node JS v12.13.0 or higher | ||
| * Open JDK 12.0.1 or higher | ||
| * Eclipse IDE 2019-09 R (4.13.0) or higher | ||
|
||
| * Visual Studio Code 1.47.1 or higher | ||
|
|
||
| ## General | ||
| 1. Run `git clone https://github.com/vividus-framework/vividus-studio.git` | ||
| 2. Run `npm install -g yo generator-code` | ||
|
||
| 5. Install `Eclipse PDE (Plug-in Development Environment)` plugin in Eclipse IDE through `Eclipse Marketplace` | ||
|
||
|
|
||
| ## Import project to Eclipse | ||
| ### Import plugin | ||
| 1. Open `Eclipse IDE` | ||
| 2. Go to `File` tab in main menu and select `Import...` | ||
| 4. Select `Plug-ins and fragments` under `Plug-in development` section | ||
| 5. Set import directory to `<path-to-repo>/vividus-studio/vividus-studio-server` under `Import From` section | ||
| 6. Select `Select from all plug-ins and fragments found at the specified location` under `Plug-ins and Fragments to Import` section | ||
| 7. Select `Projects with source folders` under `Import As` section | ||
| 8. Click `Add all ->` and then `Finish` buttons | ||
|
||
| 9. Add the follwing entries into `<path-to-repo>/vividus-studio/vividus-studio-server/vividus-studio-plugin/.classpath` XML file under `<classpath>` section and then refresh the project | ||
|
||
| ``` | ||
| <classpathentry exported="true" kind="lib" path="external/slf4j-api.jar"/> | ||
| <classpathentry exported="true" kind="lib" path="external/log4j-api.jar"/> | ||
| <classpathentry exported="true" kind="lib" path="external/log4j-core.jar"/> | ||
| <classpathentry exported="true" kind="lib" path="external/log4j-slf4j18-impl.jar"/> | ||
| <classpathentry exported="true" kind="lib" path="external/junit-jupiter-api.jar"/> | ||
| <classpathentry exported="true" kind="lib" path="external/junit-jupiter-params.jar"/> | ||
| <classpathentry exported="true" kind="lib" path="external/mockito-core.jar"/> | ||
| <classpathentry exported="true" kind="lib" path="external/mockito-junit-jupiter.jar"/> | ||
| <classpathentry exported="true" kind="lib" path="external/hamcrest.jar"/> | ||
| <classpathentry exported="true" kind="lib" path="external/opentest4j.jar"/> | ||
| ``` | ||
|
|
||
| ### Import target platform | ||
| 1. Open `Eclipse IDE` | ||
| 2. Go to `File` tab in main menu and select `Import...` | ||
| 4. Select `Existing Project into Workspace` under `General` section | ||
| 5. Set root directory to `<path-to-repo>/vividus-studio/vividus-studio-server/vividus-studio-target-definition` under `Select root directory` section | ||
| 6. Click `Finish` | ||
| 7. Nevigate to `Eclipse -> Preferences... -> Plug-in Development -> Target Platform` | ||
|
||
| 8. Select `Vividus Studio Target Definition` | ||
| 9. Click `Apply and Close` | ||
|
|
||
| ## Build server | ||
| 1. Go to `<path-to-repo>/vividus-studio/vividus-studio-server` | ||
| 2. Run `./mwnw clean install` | ||
|
|
||
| ## Use extension | ||
| 1. Run `git clone --recursive https://github.com/vividus-framework/vividus-starter.git` | ||
| 2. Run `cd vividus-starter && unset BUILD_SYSTEM_ROOT && ./gradlew runStories` | ||
| 3. Nevigate to `<path-to-repo>/vividus-studio` | ||
|
||
| 4. Run `code .` | ||
|
||
| 5. Press `F5` to start extension | ||
| 6. After project window is open click `File -> Open...` | ||
| 7. In the opened window open `vividus-starter` project cloned previously | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't it be JDK 11 ?