mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-15 12:23:51 +00:00
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:
@@ -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',
|
||||
});
|
||||
Reference in New Issue
Block a user