2024-09-07

This commit is contained in:
gcch 2024-09-07 11:09:46 +02:00
commit 3ae978e4e8
547 changed files with 3766 additions and 813 deletions

View file

@ -9,13 +9,14 @@ const SRC_TYPESCRIPT_PATHS = new fdir()
.withBasePath()
.glob("**/*.ts")
.filter((path, isDirectory) => !isDirectory && !path.endsWith("lol.ts"))
.filter((path, isDirectory) => !isDirectory && !path.endsWith("d.ts"))
.crawl(`web/app/themes/${SLUG_THEME}/src/scripts`)
.withPromise();
/* Voir le fichier vite.env.d.ts */
const SCHEMA_ENVIRONNEMENT = v.object({
VITE_URL: v.pipe(v.string(), v.nonEmpty(), v.url(), v.readonly()),
VITE_GLITCHTIP_NSD: v.pipe(v.string(), v.url(), v.readonly()),
VITE_URL: v.pipe(v.string(), v.nonEmpty(), v.url(), v.readonly()),
});
export default defineConfig({
@ -27,6 +28,7 @@ export default defineConfig({
manifest: true,
minify: true,
outDir: resolve("./web/app/themes/haiku-atelier-2024/assets/js"),
reportCompressedSize: true,
rollupOptions: {
input: await SRC_TYPESCRIPT_PATHS,
output: {
@ -39,7 +41,6 @@ export default defineConfig({
treeshake: "smallest",
},
sourcemap: true,
reportCompressedSize: true,
target: "es2023",
watch: { clearScreen: false },
write: true,