refactor: build client bundles to new location and exclude from commits.

This commit is contained in:
Corban-Lee Jones 2025-04-22 16:01:27 +01:00
parent 8602210a5c
commit c1cf78bf96
3 changed files with 9 additions and 671 deletions

6
.gitignore vendored
View File

@ -10,4 +10,8 @@ package-lock.json
# exclude this very large css file, it can be
# built when needed with `npm run build:tailwind`
src/client/public/css/tailwind.css
src/client/public/css/tailwind.css
# Contains bundled js files built from typescript
# they can be very large, build with `npm run build:client`
src/client/public/bundles

View File

@ -1,3 +1,6 @@
// This file is for building client-side typescript found
// in './src/client/typescript' to './src/client/public/bundles'
import { build } from "esbuild";
import glob from "fast-glob";
@ -6,7 +9,7 @@ const entryPoints = await glob("./src/client/typescript/**/*");
build({
entryPoints,
// outBase: "",
outdir: "./src/client/public/js",
outdir: "./src/client/public/bundles",
bundle: true,
target: ["es6"],
format: "iife",

File diff suppressed because one or more lines are too long