Dev setup
Dev setup is one pnpm install that builds every package and turns on the git hooks, so your first commit already runs CI's fast checks.
git clone https://github.com/compiled-run/markless.git
cd markless
corepack enable
pnpm installcorepack enable picks up the pnpm version the repo pins. pnpm install installs every package and runs the root prepare script, which turns on the hooks.
You need Node, pnpm and git
- Node 24. The repo doesn't pin a Node version, but every CI job that installs Node installs 24.
- pnpm 10.33.2. The root
package.jsonpins it inpackageManager. - git, and the
ghcommand line if you ever push tomain. Thepre-pushhook uses it.
Your first hour, step by step
A git hook is a script git runs before a commit or a push. pnpm install turns the repo's hooks on, so your first commit already runs lint and CI's fast jobs. Step through it:
$ git clone https://github.com/compiled-run/markless.git
Cloning into 'markless'...
$ cd markless
$ corepack enable
$ pnpm install
…
. prepare$ git config core.hooksPath .githooks
Done in … using pnpm v10.33.2
$ pnpm exec vp test packages/compiler/test/semantic-graph.test.ts
Test Files 1 passed (1)
Tests 26 passed (26)
$ git switch -c fix/semantic-graph-test
$ git commit -am "Cover the empty graph"
packages/compiler/test/semantic-graph.test.ts:2:10: warning eslint(no-unused-vars): Identifier 'readFileSync' is imported but never used.
pre-commit: vp lint failed (unused imports/vars or lint errors).
Fix with: pnpm exec vp lint --fix --fix-suggestions --fix-dangerously
$ git commit -am "Cover the empty graph"
pass: Found no warnings or lint errors in … files
passed agent-files
passed typecheck
passed typecheck-ts7
passed unit
[fix/semantic-graph-test …] Cover the empty graph
$ git push -u origin fix/semantic-graph-test
remote: Create a pull request for 'fix/semantic-graph-test' on GitHub by visiting:
remote: https://github.com/compiled-run/markless/pull/new/fix/semantic-graph-test
import { expect, test } from 'vitest';
import {
buildSemanticGraph,
…
test('an empty file has no state', () => {
…
});
Clone the repo and step into it.
Some tests start real browsers. Install the ones CI uses:
pnpm --dir packages/vitest-browser exec \
playwright install chromium webkitScripts run what CI runs
Type-check
The .tsrx-aware checker on the root tsconfig.json.
pnpm run typecheckCI's fast jobs
The exact commands from ci.yml, on your machine.
pnpm ci:local --fastOne test file
Add --project node, browser or ui to run one test project.
pnpm exec vp test <file>Compiler tests
The compiler's test files.
pnpm test:compilerUI tests
The @markless/ui browser tests.
pnpm test:headlessLint, check, format
vp lint, vp check and vp fmt; vp is the Vite+ command line.
pnpm lintBuild
Packs the packages with vp pack.
pnpm buildAgent rules
Regenerates the agent files from .ruler/.
pnpm rulesThis site
The website's dev server.
pnpm docs:dev
pnpm test is not CI. Use pnpm ci:local to run what CI runs.
pnpm run typecheck reads .tsrx files
Plain tsc can't read .tsrx files. pnpm run typecheck wraps it, so every tsc flag still works:
broken.tsrx(4,1): error TS91001: Markless TSRX parse error: Unexpected token '}'
app.tsrx(4,7): error TS2322: Type 'number' is not assignable to type 'string'.
Found 1 Markless TSRX compile error.
- Each error names the file, the line and the column.
- A file that doesn't parse fails the run too.
pnpm typecheck:ts7runs the same check on the TypeScript 7.1 beta, and CI runs both.
Your first PR puts these commands to work on a real change.