Todo
This commit is contained in:
16
apps/web/Dockerfile
Normal file
16
apps/web/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM oven/bun:1.3.5 AS base
|
||||
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
|
||||
COPY bun.lock package.json turbo.json tsconfig.json biome.json ./
|
||||
COPY apps ./apps
|
||||
COPY packages ./packages
|
||||
COPY .env.example ./
|
||||
|
||||
RUN bun install --frozen-lockfile
|
||||
RUN bun run db:generate
|
||||
RUN bun --filter @cms/web build
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["bun", "--filter", "@cms/web", "start"]
|
||||
12
apps/web/src/store/ui.test.ts
Normal file
12
apps/web/src/store/ui.test.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { describe, expect, it } from "vitest"
|
||||
|
||||
import { useUiStore } from "./ui"
|
||||
|
||||
describe("web ui store", () => {
|
||||
it("toggles mobile menu", () => {
|
||||
useUiStore.setState({ mobileMenuOpen: false })
|
||||
useUiStore.getState().setMobileMenuOpen(true)
|
||||
|
||||
expect(useUiStore.getState().mobileMenuOpen).toBe(true)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user