Authoring
Six pages that take you from npm init to a publishable plugin.
- Getting started: write the smallest Hello plugin: bootstrap, descriptor, printer round-trip, no AST mutation.
- End-to-end transform: the same shape with a real AST mutation (
debuggerremoval) and the table-driven flag parser. - Editor setup:
go.work,gopls,go test, pnpm notes. Set up before you import a shim. - Recipes: focused patterns you can copy (auto-discovery, lint diagnostics, leaf-text mutation invariant, re-spawning
ttsx/tsgo). - Testing: Go unit tests + end-to-end
ttscfixtures (one case per file, AGENTS.md Β§2.2 shape). - Publishing: npm package shape,
peerDependencies, Pre-Publish Check CI recipe.
First-pass readers may skip Testing and Publishing; come back after your first plugin runs end-to-end. Before you start, skim Concepts. After you ship, see Reference.
Last updated on