This commit is contained in:
parent
c4c95f2c1d
commit
53621d5d08
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -41,6 +41,16 @@ def deploy() {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build Client (App)') {
|
||||
nodejs(nodeJSInstallationName: 'Node23') {
|
||||
sh """
|
||||
export PATH="\$HOME/.bun/bin:\$PATH"
|
||||
# App build uses base: "/" (see packages/client/vite.config.js) and outputs to packages/client/dist-app
|
||||
VITE_BUILD_NUMBER=${env.BUILD_NUMBER} NODE_ENV=production pnpm --filter @home-panel/client build:app
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
stage('Compile') {
|
||||
nodejs(nodeJSInstallationName: 'Node23') {
|
||||
sh """
|
||||
@ -135,7 +145,7 @@ def deploy() {
|
||||
}
|
||||
|
||||
stage('Archive Artifacts') {
|
||||
archiveArtifacts artifacts: 'dist/homepanel, dist/*.deb, dist/*.rpm', fingerprint: true, allowEmptyArchive: false
|
||||
archiveArtifacts artifacts: 'dist/homepanel, dist/*.deb, dist/*.rpm, packages/client/dist-app/**', fingerprint: true, allowEmptyArchive: false
|
||||
}
|
||||
|
||||
} finally {
|
||||
|
||||
@ -15,6 +15,7 @@ export default defineConfig(({ mode }) => {
|
||||
// Native app/webview builds (especially older iOS) can break with `base: "./"`, so
|
||||
// use absolute paths when building with `--mode app`.
|
||||
const base = mode === "app" ? "/" : "./";
|
||||
const outDir = mode === "app" ? "dist-app" : "dist";
|
||||
|
||||
return {
|
||||
base,
|
||||
@ -60,6 +61,7 @@ export default defineConfig(({ mode }) => {
|
||||
],
|
||||
|
||||
build: {
|
||||
outDir,
|
||||
minify: "terser",
|
||||
terserOptions: {
|
||||
safari10: true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user