ui: Linting & Formatting scripts (#26819)

This commit is contained in:
Aleksander Grygier
2026-08-10 08:38:37 +02:00
committed by GitHub
parent 1e396e72a8
commit 92d1bb0c99
538 changed files with 8806 additions and 6036 deletions
+13 -14
View File
@@ -1,38 +1,37 @@
import { mdsvex } from 'mdsvex';
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import { mdsvex } from 'mdsvex';
// CMake sets LLAMA_UI_OUT_DIR to the staging dir under the build tree; manual
// `npm run build` runs without the env var default to ./dist.
const outDir = process.env.LLAMA_UI_OUT_DIR ?? './dist';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://svelte.dev/docs/kit/integrations
// for more information about preprocessors
preprocess: [vitePreprocess(), mdsvex()],
extensions: ['.svelte', '.svx'],
kit: {
paths: {
relative: true
},
router: { type: 'hash' },
adapter: adapter({
pages: outDir,
assets: outDir,
fallback: 'index.html',
pages: outDir,
precompress: false,
strict: true
}),
alias: {
$styles: 'src/styles'
},
output: {
bundleStrategy: 'single'
},
alias: {
$styles: 'src/styles'
}
paths: {
relative: true
},
router: { type: 'hash' }
},
extensions: ['.svelte', '.svx']
// Consult https://svelte.dev/docs/kit/integrations
// for more information about preprocessors
preprocess: [vitePreprocess(), mdsvex()]
};
export default config;