UI
How to seamlessly integrate gradle and pnpm for a one-stop experience
Since ApiHug is specifically designed for enterprise-level Java development, the entire toolchain is based on Gradle, while the frontend solution is based on Vue, which inevitably involves frontend tools like Vite and pnpm.
The plugin com.github.node-gradle.node is introduced as a bridge between Node.js and Gradle tool stacks;
Tasks:
Name | Comment |
---|---|
clean | Clean build results |
build | clean > check > buildPackages > build > output |
buildPackages | pnpm install > build:packages |
test | lint > typecheck > buildPackages > test:unit |
lint | buildPackages > lint |
typecheck | buildPackages > type-check |
check | lint > typecheck > test |
dev | buildPackages > dev |
Standard Vite project compilation process: