Skip to content

Commit

Permalink
fix(hubble): build with node and yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxiaocs7 committed Nov 30, 2023
1 parent e8fd3e0 commit 5b804b4
Showing 1 changed file with 43 additions and 2 deletions.
45 changes: 43 additions & 2 deletions hugegraph-hubble/hubble-dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,49 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.14.2</version>

<configuration>
<installDirectory>target</installDirectory>
<workingDirectory>../hubble-fe</workingDirectory>
</configuration>

<executions>
<execution>
<id>install node and yarn</id>
<goals>
<goal>install-node-and-yarn</goal>
</goals>
<configuration>
<nodeVersion>v16.16.0</nodeVersion>
<yarnVersion>v1.22.15</yarnVersion>
</configuration>
</execution>

<execution>
<id>yarn install</id>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>

<execution>
<id>yarn build</id>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>build</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
Expand All @@ -81,8 +124,6 @@
<echo file="${top.level.dir}/dist.sh">
cd ${hubble-fe.dir} || exit 1
export CI=false
yarn install --network-timeout 600000 &amp;&amp; yarn build || exit 1
echo -e "Hubble-FE build successfully.\n"

cd ${top.level.dir} &amp;&amp; pwd
rm -rf ${final.name}/ui
Expand Down

0 comments on commit 5b804b4

Please sign in to comment.