clean turbo config and cache github actions (#1805)

* refactor: turbo scripts

refactor dev and build scripts

remove cleanup

* fix e2e script

* cache playwright

* cache pnpm

* fix docker env in vite

* fixup! refactor: turbo scripts

* chore: add comment
This commit is contained in:
Alex Christoffer Rasmussen
2025-10-07 12:10:24 +02:00
parent 750927dc8d
commit fc7ed6bd20
30 changed files with 266 additions and 227 deletions
+16
View File
@@ -0,0 +1,16 @@
import * as esbuild from 'esbuild';
const isDocker = process.env.NODE_ENV === 'docker';
await esbuild.build({
logLevel: 'error',
platform: 'node',
target: ['node20'],
format: 'cjs',
bundle: true,
minify: true,
legalComments: 'external',
dropLabels: ['DEV'],
entryPoints: isDocker ? ['src/index.ts'] : ['src/app.ts'],
outfile: isDocker ? 'dist/docker.cjs' : 'dist/index.cjs',
});