Task 002: add shared domain contracts

This commit is contained in:
2026-05-21 17:45:00 +03:00
parent d42f0c4392
commit a0ae06adfa
31 changed files with 4043 additions and 27 deletions
+12 -5
View File
@@ -1,12 +1,19 @@
FROM node:22-alpine
FROM node:22-slim
WORKDIR /app
COPY apps/frontend/package.json ./package.json
RUN npm install
RUN corepack enable
COPY apps/frontend ./
COPY .npmrc package.json pnpm-lock.yaml pnpm-workspace.yaml ./
COPY apps/frontend/package.json ./apps/frontend/package.json
COPY packages/shared/package.json ./packages/shared/package.json
RUN pnpm install --frozen-lockfile
COPY apps/frontend ./apps/frontend
COPY packages/shared ./packages/shared
WORKDIR /app/apps/frontend
EXPOSE 3000
CMD ["npm", "run", "dev", "--", "--hostname", "0.0.0.0"]
CMD ["pnpm", "exec", "next", "dev", "--hostname", "0.0.0.0"]
+7 -1
View File
@@ -4,9 +4,11 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
"start": "next start",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@pipeline/shared": "workspace:*",
"next": "16.2.6",
"react": "19.0.0",
"react-dom": "19.0.0"
@@ -17,6 +19,10 @@
"@types/react-dom": "19.0.2",
"typescript": "5.7.2"
},
"optionalDependencies": {
"@next/swc-linux-arm64-gnu": "16.2.6",
"@next/swc-linux-x64-gnu": "16.2.6"
},
"overrides": {
"postcss": "8.5.14"
}
+9
View File
@@ -1,8 +1,17 @@
import type { ArticleListResponse } from "@pipeline/shared";
const initialArticles: ArticleListResponse = {
articles: [],
};
export default function HomePage() {
return (
<main>
<h1>AI Content Pipeline</h1>
<p>Dockerized monorepo foundation is running.</p>
<p>
{initialArticles.articles.length} articles in the contract-backed dashboard.
</p>
</main>
);
}