generated from OLILHR/sveltekit-static-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Configure path aliases for more consistent imports (#100)
* Configure path aliases for `$server` and `$src` imports * Add include patterns to ensure all source files are considered * Replace kit aliases with paths in tsconfig
- Loading branch information
Showing
13 changed files
with
59 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
// shared components | ||
export { default as Footer } from "./shared/footer.svelte"; | ||
export { default as Header } from "./shared/header.svelte"; | ||
export { default as IconLogin } from "./shared/icon-login.svelte"; | ||
export { default as IconLogo } from "./shared/icon-logo.svelte"; | ||
export { default as IconLogout } from "./shared/icon-logout.svelte"; | ||
export { default as LoginButton } from "./shared/login-button.svelte"; | ||
export { default as ToolsBanner } from "./shared/tools-banner.svelte"; | ||
export { default as Footer } from "$lib/components/shared/footer.svelte"; | ||
export { default as Header } from "$lib/components/shared/header.svelte"; | ||
export { default as IconLogin } from "$lib/components/shared/icon-login.svelte"; | ||
export { default as IconLogo } from "$lib/components/shared/icon-logo.svelte"; | ||
export { default as IconLogout } from "$lib/components/shared/icon-logout.svelte"; | ||
export { default as LoginButton } from "$lib/components/shared/login-button.svelte"; | ||
export { default as ToolsBanner } from "$lib/components/shared/tools-banner.svelte"; | ||
|
||
// features | ||
export { default as EbdFormHeader } from "./features/ebd-form-header.svelte"; | ||
export { default as EbdSelect } from "./features/ebd-select.svelte"; | ||
export { default as ExportButton } from "./features/export-button.svelte"; | ||
export { default as FormatVersionSelect } from "./features/format-version-select.svelte"; | ||
export { default as EbdFormHeader } from "$lib/components/features/ebd-form-header.svelte"; | ||
export { default as EbdSelect } from "$lib/components/features/ebd-select.svelte"; | ||
export { default as ExportButton } from "$lib/components/features/export-button.svelte"; | ||
export { default as FormatVersionSelect } from "$lib/components/features/format-version-select.svelte"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<script> | ||
import "../../app.scss"; | ||
import "$src/app.scss"; | ||
</script> | ||
|
||
<div class="flex flex-col flex-grow hfill"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
import { sveltekit } from "@sveltejs/kit/vite"; | ||
import { defineConfig } from "vite"; | ||
import path from "path"; | ||
|
||
export default defineConfig({ | ||
plugins: [sveltekit()], | ||
resolve: { | ||
alias: { | ||
$server: path.resolve("./src/server"), | ||
$src: path.resolve("./src"), | ||
}, | ||
}, | ||
}); |