Migrate to npm-workspaces monorepo (#294)
* spec update * update md files * add plan: monorepo * feat: add empty apps and packages directories * Add shared tsconfig.base.json * feat add workspaces * feat: move hudozka-writer into apps/ * feat: move migrate-to-pocketbase into apps/ * feat: split package.json for apps/hudozka workspace * feat: extend tsconfig.base.json in apps/hudozka * add dockerfile path * feat: verify Phase 3 monorepo migration of Next app * feat: scaffold @hudozka/utils package * feat: add utils barrel export * feat: extract utilities into hudozka-utils package * feat: extract hooks into hudozka-hooks package * Extract Box/Button/Panel/Title/Overlay into @hudozka/ui * Scope Next ESLint rules to apps/hudozka in root flat config * Update README and CLAUDE.md for monorepo layout * disable image optimisation
This commit is contained in:
1 parent
0665fa7ae7
commit
f874b58dd9
258 files changed
+3793
-214
No files matched your search
@@ -1,9 +1,31 @@
|
||||
# [ART.SHLISSELBURG.ORG](https://art.shlisselburg.org)
|
||||
|
||||
Website for the Art School of Shlisselburg. Built with Next.js and powered by Strapi CMS.
|
||||
Website for the Art School of Shlisselburg. Built with Next.js and powered by PocketBase (migrated from Strapi).
|
||||
|
||||
Font: [«Shadow»](http://mishapanfilov.ru/font_shadow.html)
|
||||
|
||||
## Repo layout
|
||||
|
||||
This is an npm-workspaces monorepo:
|
||||
|
||||
- `apps/hudozka` — main Next.js app (art.shlisselburg.org)
|
||||
- `apps/hudozka-writer` — Vite-based content editor
|
||||
- `apps/migrate-to-pocketbase` — one-off migration script (Strapi → PocketBase)
|
||||
- `packages/ui` — `@hudozka/ui` — shared React primitives (Box, Button, Panel, Title, Overlay)
|
||||
- `packages/hooks` — `@hudozka/hooks` — generic React hooks
|
||||
- `packages/utils` — `@hudozka/utils` — pure utilities (array, string, url, math, image, file, date)
|
||||
- `packages/text` — `@hudozka/text` — markdown + typograf rendering
|
||||
- `pb/` — PocketBase instance (untouched by the monorepo migration)
|
||||
|
||||
Common commands (from repo root):
|
||||
|
||||
- `npm run dev` — run the web app dev server
|
||||
- `npm run build` — production build of the web app
|
||||
- `npm run lint` — lint the whole monorepo
|
||||
- `npm test` — run tests across every workspace
|
||||
- `npm run dev -w apps/hudozka-writer` — run the writer
|
||||
- `npm run migrate -w apps/migrate-to-pocketbase` — run the migration script
|
||||
|
||||
## Development
|
||||
|
||||
### Prerequisites
|
||||
@@ -25,7 +47,7 @@ npm run dev
|
||||
The development server runs at [http://localhost:3000](http://localhost:3000) with Turbo mode enabled.
|
||||
|
||||
## Content Management
|
||||
Content is fetched from Strapi CMS and rendered using flexible content tokens:
|
||||
Content is fetched from PocketBase and rendered using flexible content tokens:
|
||||
- `text` — Markdown with Russian typography (Typograf)
|
||||
- `image` — Responsive images with blur hash
|
||||
- `file` — Document downloads
|
||||
|
||||
Reference in new issue
Block a user