feat: integrate tailwind v4 and daisyui packages with local css build pipeline
This commit is contained in:
@@ -91,6 +91,14 @@ test("GET / renders landing page", async () => {
|
||||
assert.match(response.body, /From X Article to audiobook in one mention/);
|
||||
});
|
||||
|
||||
test("GET /assets/styles.css serves compiled stylesheet", async () => {
|
||||
const app = createApp();
|
||||
const response = await call(app, { method: "GET", path: "/assets/styles.css" });
|
||||
assert.equal(response.status, 200);
|
||||
assert.match(response.headers["content-type"], /text\/css/);
|
||||
assert.match(response.body, /\.btn/);
|
||||
});
|
||||
|
||||
test("unauthenticated /app redirects to /login with returnTo", async () => {
|
||||
const app = createApp();
|
||||
const response = await call(app, { method: "GET", path: "/app" });
|
||||
|
||||
@@ -9,7 +9,8 @@ test("Dockerfile contains production container essentials", () => {
|
||||
assert.match(dockerfile, /FROM oven\/bun:1\.3\.5-alpine/);
|
||||
assert.match(dockerfile, /EXPOSE 3000/);
|
||||
assert.match(dockerfile, /STATE_FILE_PATH=\/data\/state\.json/);
|
||||
assert.match(dockerfile, /bun install --frozen-lockfile --production/);
|
||||
assert.match(dockerfile, /bun install --frozen-lockfile/);
|
||||
assert.match(dockerfile, /bun run build:css/);
|
||||
assert.match(dockerfile, /HEALTHCHECK/);
|
||||
assert.match(dockerfile, /CMD \["bun", "src\/server\.js"\]/);
|
||||
});
|
||||
|
||||
@@ -12,7 +12,7 @@ const {
|
||||
|
||||
test("shell includes daisyui and pwa tags", () => {
|
||||
const html = shell({ title: "t", content: "x" });
|
||||
assert.match(html, /daisyui@5/);
|
||||
assert.match(html, /\/assets\/styles\.css/);
|
||||
assert.match(html, /manifest\.webmanifest/);
|
||||
assert.match(html, /serviceWorker/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user