Skip to content

Commit

Permalink
chore(release): adjust usertask/task-form-embedded-react
Browse files Browse the repository at this point in the history
  • Loading branch information
mboskamp committed Sep 28, 2023
1 parent 8de1ab3 commit a5ae50a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
4 changes: 2 additions & 2 deletions usertask/task-form-embedded-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ React is a popular library to build user interfaces. If you want to use react to

## Overview
### How can I add React to my Tasklist?
1. Add [loadReact.js](config/react/loadReact.js) to `app/tasklist/scripts/react` of your webapp. This will load React and ReactDOM from a CDN and add it to the global scope. If you want to use other versions of React, adjust the import paths accordingly.
2. Add the loader as a custom script in `app/tasklist/scripts/config.js`.
1. Add [loadReact.js](config/react/loadReact.js) to `app/tasklist/scripts/react` of the Camunda Tasklist webapp (e.g., for Tomcat, it will be `/webapps/camunda/app/tasklist/scripts/react`). This will load React and ReactDOM from a CDN and add it to the global scope. If you want to use other versions of React, adjust the import paths accordingly.
2. Add the loader as a custom script in `app/tasklist/scripts/config.js` of the Camunda Tasklist webapp (e.g., for Tomcat, it will be `/webapps/camunda/app/tasklist/scripts/config.js`).
```javascript
customScripts: [
'scripts/react/loadReact.js'
Expand Down
21 changes: 14 additions & 7 deletions usertask/task-form-embedded-react/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@

<properties>
<version.camunda>7.20.0</version.camunda>
<javax-servlet-api.version>4.0.1</javax-servlet-api.version>
<version.jakarta-servlet-api>4.0.4</version.jakarta-servlet-api>

<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.release>11</maven.compiler.release>
<maven.compiler.version>3.11.0</maven.compiler.version>
<maven.war-plugin.version>3.3.2</maven.war-plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<failOnMissingWebXml>false</failOnMissingWebXml>
</properties>
Expand All @@ -27,9 +28,9 @@
</dependency>

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>${javax-servlet-api.version}</version>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>${version.jakarta-servlet-api}</version>
<scope>provided</scope>
</dependency>

Expand All @@ -41,7 +42,13 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
<version>${maven.war-plugin.version}</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.version}</version>
</plugin>
</plugins>
</pluginManagement>
Expand Down

0 comments on commit a5ae50a

Please sign in to comment.