Concrete
Rulesworkspace

concrete/workspace/template-missing

The workspace root has no `template.ts`.

The workspace root has no template.ts.

Graded by the workspace stage of concrete check, in the tree venue. A violation reports this id and the file it failed at — see every rule and concrete check.

Reason

template.ts is the one file a workspace reserves. Every command begins by importing it and reading its default export, which is where the template's identity, its artifact format and its site map live. With no such file there is no composition to derive, so nothing downstream has an input: this rule fires alone, and every later stage is reported as skipped rather than as passed.

Fix

Create template.ts at the workspace root, beside package.json — not under sections/ or pages/ — and default-export a defineTemplate value from it.

Before and after

my-template/
  package.json
  sections/hero/section.tsx  ← sections, and nothing composing them
  pages/home.tsx
// template.ts, at the workspace root.
import { defineTemplate, type PageComponent, website } from "@homepages/concrete";
import icon from "./icon.svg";

declare const Home: PageComponent;

export default defineTemplate({
  key: "meridian",
  name: "Meridian",
  format: website,
  icon,
  scope: "global",
  pages: { home: { label: "Home", path: "/", page: Home } },
});

On this page