Skip to content

Commit

Permalink
Add oslc-ui-model instructions (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
berezovskyi authored Aug 23, 2021
1 parent 61fc74c commit 6f1699a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 123 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@
1. After cloning this git repository, go the root folder of the repo.
2. run `npm run build:elements-prod` to build the project. This will produce a `dist` with artefacts
3. Copy the `dist` folder to under `/src/main/webapp/static/` of your web project. That is, you will have a number of js/css files under the folder `/src/main/webapp/static/dist/oslc-ui`
4. Use generated `/dist/oslc-ui/java-gen/*` classes for your Java app
4. Add the following dependency to your Java app:

```
<dependency>
<groupId>org.eclipse.lyo.server</groupId>
<artifactId>oslc-ui-model</artifactId>
<version>4.1.0-SNAPSHOT</version>
</dependency>
```

### oslc-selector

Expand Down
121 changes: 0 additions & 121 deletions includes/PreviewFactory.java

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"create-link-schema": "ts-json-schema-generator --type Link --tsconfig ./tsconfig.json --path \"./src/app/preview/models.ts\" > src/link-schemas.json",
"create-java-preview-classes": "./libs/jsonschema2pojo-1.0.2/bin/jsonschema2pojo --source \"src/preview-schemas.json\" --target dist/oslc-ui/java-gen -p org.eclipse.lyo.oslc_ui",
"create-java-link-classes": "./libs/jsonschema2pojo-1.0.2/bin/jsonschema2pojo --source \"src/link-schemas.json\" --target dist/oslc-ui/java-gen -p org.eclipse.lyo.oslc_ui",
"generate": "npm run create-preview-schema && npm run create-link-schema && npm run create-java-preview-classes && npm run create-java-link-classes && cp includes/PreviewFactory.java dist/oslc-ui/java-gen/org/eclipse/lyo/oslc_ui/",
"generate": "npm run create-preview-schema && npm run create-link-schema && npm run create-java-preview-classes && npm run create-java-link-classes",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
Expand Down

0 comments on commit 6f1699a

Please sign in to comment.