Concrete
ReferenceCLI

concrete check

The `concrete check` command — its flags, exit codes and constraints.

Grade the template against every requirement the platform accepts it on.

Synopsis

concrete check [--json] [--no-auto-update]

Flags

FlagTypeDefaultWhat it does
--jsonbooleanfalsePrint one machine-readable report on stdout instead of human output
--no-auto-updatebooleanfalseSkip the package refresh this command runs first when the workspace is behind the published release

Exit codes

CodeWhen
0the template and the workspace pass every rule that could be measured
1any rule reports a finding, or the run cannot proceed at all

Constraints

  • Under --json the report is the only thing written to stdout; every notice goes to stderr.
  • Grades with the toolchain this package ships — TypeScript, ESLint, esbuild — never with a version the workspace declares.
  • Every threshold is a platform acceptance criterion, not a preference. No flag or config file raises one.
  • Runs build first and grades the files it wrote; a step that could not build is a finding of the stage it belongs to.
  • Every run reports what each placed section's built bundles weigh: the renderer, each island chunk and each asset, in the human output and as weights under --json.
  • publish runs this on every publish and refuses on red: an artifact exists only because check passed.
  • template.ts is the only file it finds by name. Pages, sections, the stylesheet and the icon are reached from it by import, and the fixtures by the fixture list it names (fixtures: "./fixtures/index.json"): a JSON list of the property documents and the content fixtures, each content fixture a JSON document naming its property document, every path relative to the file that states it.

Before it runs

This command first checks that the workspace is on the published release of @homepages/concrete and refreshes it when it is behind inside the same major — Staying current has the rules. --no-auto-update skips that for one run.

See also