MotirBuilding in public
MOTIR · moooon
onMotir
You’re viewing a public project. Anyone can view it — no account needed. Sign in to submit, upvote, or comment on requests.View-only — you can’t edit work items
MOTIR-4

1.0.1 `create-next-app` + Tailwind + TypeScript strict + folder layout (in `motir-core`)

Done
Description

Estimate: 5m

Initialize motir-core — the open-source (GPL-3.0) repository that holds the PM substrate — with Next.js 15+ (App Router), TypeScript strict mode, and Tailwind CSS. This is the literal entry point for every other Subtask that ships in core; until this runs, the repo doesn't exist as a runnable project. The output is a freshly-bootstrapped codebase that runs pnpm dev and shows a placeholder home page.

Why create-next-app and not a custom scaffold: create-next-app gives us a maintained, well-known starting point with sensible defaults (App Router, Server Components, RSC streaming). Custom scaffolding would solve the same problem with more bugs. Configure strict mode and the folder layout after the scaffold runs.

Why GPL-3.0 (not MIT/Apache/AGPL): see feasibility.html ADR-008. Short version: GPL-3.0 gives enterprise buyers full source-code transparency for audit while preventing competitors from closed-sourcing forks. AGPL was rejected because enterprises blacklist it.

What you'll do: Create the GitHub repo at moooon-B-V/motir-core as public (this is the open-source side). Run pnpm create next-app@latest . with flags for App Router + Tailwind + TypeScript. Add "strict": true (with all sub-flags) to tsconfig.json. Create the folder layout: /app (routes), /lib (server logic), /components (React), /prisma (added in 1.0.2), /tests (Playwright + Vitest), /docs (project docs). Add a placeholder app/page.tsx showing "Motir" with the dark theme. Add the GPL-3.0 LICENSE file at the repo root (verbatim from gnu.org/licenses/gpl-3.0.txt), plus a COPYRIGHT header at the top of each source file: // Copyright (C) 2026 Motir contributors. Licensed under GPL-3.0-only.

Acceptance criteria

  • GitHub repo moooon-B-V/motir-core exists, public (visibility = public).
  • GPL-3.0 LICENSE file exists at repo root, verbatim copy of the canonical GPL-3.0 text from gnu.org. package.json has "license": "GPL-3.0-only".
  • README.md exists at repo root with: title, one-line pitch, a clear "Open source under GPL-3.0" line in the first paragraph, and a pointer to the companion closed-source motir-ai repo (saying "the planning intelligence ships separately; see vision.html principle #19").
  • Source files have a one-line copyright header (a lint rule can be added later to enforce; not required in this Subtask).
  • Repo exists with package.json, tsconfig.json, next.config.mjs, tailwind.config.ts, postcss.config.js.
  • Next.js version is ≥15 and App Router is enabled.
  • TypeScript strict: true with noUncheckedIndexedAccess and noImplicitAny.
  • Folder layout exists: /app, /lib, /components, /tests, /docs.
  • pnpm dev starts the app on localhost:3000 showing a placeholder "Motir" page.
  • pnpm build succeeds with zero errors and zero warnings.
  • pnpm typecheck exists as a script and exits 0.
  • First commit is small and clean: scaffold output + strict-mode tweaks + folder placeholders + LICENSE + README.

Context refs

  • Next.js 15 App Router docs (URL, fetched at prompt-gen time)
  • Tailwind v3 docs for the config + globals.css setup
  • TypeScript strict-mode docs for the recommended flag set
  • The existing color palette from vision.html CSS variables (becomes the placeholder dark theme)
Status
Done
Type
Sub-task