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