Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: investigate increased build times #891

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@
TeamSwitcher,
} from "./index.js";
import DatePickerWithRange from "$lib/registry/new-york/example/date-picker-with-range.svelte";
import DashboardLight from "$lib/img/examples/dashboard-light.png?enhanced";
import DashboardDark from "$lib/img/examples/dashboard-dark.png?enhanced";
</script>

<div class="md:hidden">
<enhanced:img src={DashboardLight} alt="Dashboard Light" class="block dark:hidden" />
<enhanced:img src={DashboardDark} alt="Dashboard Dark" class="hidden dark:block" />
</div>
<div class="hidden flex-col md:flex">
<div class="border-b">
<div class="flex h-16 items-center px-4">
Expand Down
7 changes: 1 addition & 6 deletions apps/www/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import { cn } from "$lib/utils.js";
import Mail from "./examples/mail/(components)/mail.svelte";
import { accounts, mails } from "./examples/mail/data.js";
import MailLight from "$lib/img/examples/mail-light.png?enhanced";
import MailDark from "$lib/img/examples/mail-dark.png?enhanced";

export let data;
</script>
Expand Down Expand Up @@ -53,10 +51,7 @@
<section
class="overflow-hidden rounded-lg border bg-background shadow-md md:hidden md:shadow-xl"
>
<div class="md:hidden">
<enhanced:img src={MailLight} alt="Mail" class="block dark:hidden" />
<enhanced:img src={MailDark} alt="Mail" class="hidden dark:block" />
</div>
<div class="md:hidden"></div>
</section>
<section class="hidden md:block">
<div class="overflow-hidden rounded-lg border bg-background shadow-lg">
Expand Down
7 changes: 1 addition & 6 deletions apps/www/src/routes/examples/authentication/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
<script lang="ts">
import { Button } from "$lib/registry/default/ui/button/index.js";
import UserAuthForm from "./(components)/user-auth-form.svelte";
import AuthenticationLight from "$lib/img/examples/authentication-light.png?enhanced";
import AuthenticationDark from "$lib/img/examples/authentication-dark.png?enhanced";
</script>

<div class="md:hidden">
<enhanced:img src={AuthenticationLight} alt="Authentication" class="block dark:hidden" />
<enhanced:img src={AuthenticationDark} alt="Authentication" class="hidden dark:block" />
</div>
<div class="md:hidden"></div>
<div
class="container relative hidden h-[800px] flex-col items-center justify-center md:grid lg:max-w-none lg:grid-cols-2 lg:px-0"
>
Expand Down
7 changes: 1 addition & 6 deletions apps/www/src/routes/examples/cards/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@
DemoContainer,
CardsTeamMembers,
} from "./(components)/index.js";
import CardsLight from "$lib/img/examples/cards-light.png?enhanced";
import CardsDark from "$lib/img/examples/cards-dark.png?enhanced";
</script>

<div class="md:hidden">
<enhanced:img src={CardsLight} alt="Cards" class="block dark:hidden" />
<enhanced:img src={CardsDark} alt="Cards" class="hidden dark:block" />
</div>
<div class="md:hidden"></div>
<div
class="hidden items-start justify-center gap-6 rounded-lg p-8 md:grid lg:grid-cols-2 xl:grid-cols-3"
>
Expand Down
7 changes: 1 addition & 6 deletions apps/www/src/routes/examples/forms/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<script lang="ts">
import { Separator } from "$lib/registry/new-york/ui/separator/index.js";
import SidebarNav from "./(components)/sidebar-nav.svelte";
import FormsLight from "$lib/img/examples/forms-light.png?enhanced";
import FormsDark from "$lib/img/examples/forms-dark.png?enhanced";

const sidebarNavItems = [
{
Expand All @@ -28,10 +26,7 @@
];
</script>

<div class="md:hidden">
<enhanced:img src={FormsLight} alt="Forms" class="block dark:hidden" />
<enhanced:img src={FormsDark} alt="Forms" class="hidden dark:block" />
</div>
<div class="md:hidden"></div>
<div class="hidden space-y-6 p-10 pb-16 md:block">
<div class="space-y-0.5">
<h2 class="text-2xl font-bold tracking-tight">Settings</h2>
Expand Down
7 changes: 1 addition & 6 deletions apps/www/src/routes/examples/mail/(components)/mail.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
import * as Tabs from "$lib/registry/new-york/ui/tabs/index.js";
import Search from "lucide-svelte/icons/search";
import type { Account, Mail } from "../data.js";
import MailLight from "$lib/img/examples/mail-light.png?enhanced";
import MailDark from "$lib/img/examples/mail-dark.png?enhanced";

export let accounts: Account[];
export let mails: Mail[];
Expand All @@ -38,10 +36,7 @@
}
</script>

<div class="md:hidden">
<enhanced:img src={MailLight} alt="Mail" class="block dark:hidden" />
<enhanced:img src={MailDark} alt="Mail" class="hidden dark:block" />
</div>
<div class="md:hidden"></div>
<div class="hidden md:block">
<Resizable.PaneGroup
direction="horizontal"
Expand Down
7 changes: 1 addition & 6 deletions apps/www/src/routes/examples/music/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,9 @@
import { AlbumArtwork, Sidebar, Menu, PodcastEmptyPlaceholder } from "./(components)/index.js";
import { playlists } from "./(data)/playlists.js";
import { listenNowAlbums, madeForYouAlbums } from "./(data)/albums.js";
import MusicLight from "$lib/img/examples/music-light.png?enhanced";
import MusicDark from "$lib/img/examples/music-dark.png?enhanced";
</script>

<div class="md:hidden">
<enhanced:img src={MusicLight} alt="Music" class="block dark:hidden" />
<enhanced:img src={MusicDark} alt="Music" class="hidden dark:block" />
</div>
<div class="md:hidden"></div>
<div class="hidden md:block">
<Menu />
<div class="border-t">
Expand Down
7 changes: 1 addition & 6 deletions apps/www/src/routes/examples/playground/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,9 @@
} from "./(components)/index.js";
import { models, types } from "./(data)/models.js";
import { presets } from "./(data)/presets.js";
import PlaygroundLight from "$lib/img/examples/playground-light.png?enhanced";
import PlaygroundDark from "$lib/img/examples/playground-dark.png?enhanced";
</script>

<div class="md:hidden">
<enhanced:img src={PlaygroundLight} alt="Playground" class="block dark:hidden" />
<enhanced:img src={PlaygroundDark} alt="Playground" class="hidden dark:block" />
</div>
<div class="md:hidden"></div>
<div class="hidden h-full flex-col md:flex">
<div
class="container flex flex-col items-start justify-between space-y-2 py-4 sm:flex-row sm:items-center sm:space-y-0 md:h-16"
Expand Down
7 changes: 1 addition & 6 deletions apps/www/src/routes/examples/tasks/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@
import DataTable from "./(components)/data-table.svelte";
import UserNav from "./(components)/user-nav.svelte";
import data from "./(data)/tasks.json";
import TasksLight from "$lib/img/examples/tasks-light.png?enhanced";
import TasksDark from "$lib/img/examples/tasks-dark.png?enhanced";
</script>

<div class="md:hidden">
<enhanced:img src={TasksLight} alt="Tasks" class="block dark:hidden" />
<enhanced:img src={TasksDark} alt="Tasks" class="hidden dark:block" />
</div>
<div class="md:hidden"></div>
<div class="hidden h-full flex-1 flex-col space-y-8 p-8 md:flex">
<div class="flex items-center justify-between space-y-2">
<div>
Expand Down
3 changes: 1 addition & 2 deletions apps/www/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vitest/config";
import { enhancedImages } from "@sveltejs/enhanced-img";

export default defineConfig({
plugins: [enhancedImages(), sveltekit()],
plugins: [sveltekit()],
test: {
include: ["src/**/*.{test,spec}.{js,ts}"],
},
Expand Down
Loading