Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 58 additions & 1 deletion README.md
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
Copy link
Contributor

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 ?

* Eclipse IDE 2019-09 R (4.13.0) or higher
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be good to make convert this items to links

* 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`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sudo npm install...?

5. Install `Eclipse PDE (Plug-in Development Environment)` plugin in Eclipse IDE through `Eclipse Marketplace`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could not get the plugin working on on Ubuntu 20, and I had to install Eclipse for plugin developers


## 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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Click Next, Add all ->, Finish

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't it be automated?

```
<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`
Copy link

@ivan-lednev ivan-lednev Aug 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe remove the Eclipse -> part? On Linux & Windows Preferences is in a different menu

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`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevigate -> Navigate

4. Run `code .`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add npm install here

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