Skip to content

Commit 63494ca

Browse files
authored
refactor(hubble): enhance maven front plugin (#568)
1 parent b62c745 commit 63494ca

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ build/
4343
/hubble-fe/node_modules
4444
/hubble-fe/.pnp
4545
.pnp.js
46+
/hugegraph-hubble/hubble-fe/node/node
4647

4748
# testingå
4849
/hubble-fe/coverage
@@ -97,4 +98,5 @@ tree.txt
9798
Thumbs.db
9899

99100
# client-go
100-
go.env
101+
go.env
102+

hugegraph-hubble/hubble-dist/pom.xml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
<assembly.descriptor.dir>${assembly.dir}/descriptor</assembly.descriptor.dir>
3535
<assembly.static.dir>${assembly.dir}/static</assembly.static.dir>
3636
<hubble-fe.dir>${project.basedir}/../hubble-fe</hubble-fe.dir>
37+
<build.node.version>v16.20.2</build.node.version>
38+
<build.yarn.version>v1.22.21</build.yarn.version>
3739
</properties>
3840

3941
<dependencies>
@@ -73,21 +75,22 @@
7375
<version>1.14.2</version>
7476

7577
<configuration>
76-
<installDirectory>target</installDirectory>
77-
<workingDirectory>../hubble-fe</workingDirectory>
78+
<installDirectory>${hubble-fe.dir}</installDirectory>
79+
<workingDirectory>${hubble-fe.dir}</workingDirectory>
7880
</configuration>
7981

8082
<executions>
8183
<execution>
8284
<id>install node and yarn</id>
8385
<goals>
8486
<goal>install-node-and-yarn</goal>
85-
<goal>install-node-and-npm</goal>
8687
</goals>
8788
<configuration>
88-
<nodeVersion>v16.16.0</nodeVersion>
89-
<npmVersion>8.19.1</npmVersion>
90-
<yarnVersion>v1.22.15</yarnVersion>
89+
<nodeVersion>${build.node.version}</nodeVersion>
90+
<yarnVersion>${build.yarn.version}</yarnVersion>
91+
<nodeDownloadRoot>https://mirrors.aliyun.com/nodejs-release/</nodeDownloadRoot>
92+
<yarnDownloadRoot>https://repo.huaweicloud.com/yarn/</yarnDownloadRoot>
93+
<npmRegistryURL>https://registry.npmmirror.com</npmRegistryURL>
9194
</configuration>
9295
</execution>
9396

hugegraph-hubble/hubble-fe/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
"scripts": {
5151
"start": "react-app-rewired start",
52-
"build": "CI=false && react-app-rewired build && npm run license",
52+
"build": "CI=false && react-app-rewired build && yarn run license",
5353
"test": "react-app-rewired test",
5454
"license": "node add-license.js"
5555
},

0 commit comments

Comments
 (0)