Skip to content

Commit

Permalink
chore(swaggerui): bump version (camunda#3520)
Browse files Browse the repository at this point in the history
- use node maven plugin

related to camunda#3200
  • Loading branch information
danielkelemen authored Jul 3, 2023
1 parent 4f3911f commit da3c34d
Show file tree
Hide file tree
Showing 13 changed files with 11,335 additions and 1,456 deletions.
119 changes: 36 additions & 83 deletions distro/run/modules/swaggerui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,90 +67,43 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<configuration>
<workingDirectory>./ui</workingDirectory>
<outputdir>${project.build.directory}/classes/swaggerui</outputdir>
</configuration>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>ci</arguments>
</configuration>
</execution>
<execution>
<id>npm run build</id>
<goals>
<goal>npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>run build</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>

<profile>
<id>swaggerui-build-windows</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>generate-swaggerui</id>
<phase>generate-resources</phase>
<goals>
<goal>run</goal>
</goals>
<inherited>false</inherited>
<configuration>
<target description="Build Swagger UI npm project">
<exec executable="cmd" failonerror="true" dir="${project.basedir}/ui">
<arg value="/c" />
<arg value="npm" />
<arg value="install" />
</exec>
<exec executable="cmd" failonerror="true" dir="${project.basedir}/ui">
<arg value="/c" />
<arg value="npm" />
<arg value="run" />
<arg value="build" />
</exec>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>swaggerui-build-unix</id>
<activation>
<os>
<family>!windows</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>generate-swaggerui</id>
<phase>generate-resources</phase>
<goals>
<goal>run</goal>
</goals>
<inherited>false</inherited>
<configuration>
<target description="Build Swagger UI npm project">
<exec executable="npm" failonerror="true" dir="${project.basedir}/ui">
<arg value="install" />
</exec>
<exec executable="npm" failonerror="true" dir="${project.basedir}/ui">
<arg value="run" />
<arg value="build" />
</exec>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

</profiles>

</project>
2 changes: 2 additions & 0 deletions distro/run/modules/swaggerui/ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
node/
Loading

0 comments on commit da3c34d

Please sign in to comment.