From b623a6687a04cd15eccdcf0e8b59b38410384cc6 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Thu, 24 Sep 2026 19:31:00 -0500 Subject: [PATCH] docs: point plugin authors at matcha create plugin matcha 26.9.0-beta.1 scaffolds a package that already meets the listing's ESM rule and carries the Runtimes table the review asks for, so CONTRIBUTING and the first step on the home say so. Signed-off-by: Diego Resendez --- CONTRIBUTING.md | 4 ++++ src/components/sections/HowItWorks.astro | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e3a6322..c674054 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,6 +16,10 @@ npm works too, as long as the package is ESM only: `"type": "module"`, no `requi no `.cjs` file in `main` or `exports`. Dual ESM/CJS packages are turned away. green-tea is ESM from end to end, and a `require` path is the first thing to break when the Node version floor moves. +The quickest start is [matcha](https://github.com/Expressive-Tea/matcha), green-tea's CLI: +`matcha create plugin --package` writes a package that already meets the ESM rule, with the +Runtimes table the review asks for in its README. + ## Add the entry Add one file, `src/content/plugins/.yaml`: diff --git a/src/components/sections/HowItWorks.astro b/src/components/sections/HowItWorks.astro index 19f7602..84b32be 100644 --- a/src/components/sections/HowItWorks.astro +++ b/src/components/sections/HowItWorks.astro @@ -14,6 +14,7 @@ const shown = EXAMPLE_ENTRY.replace(/[ \t]+#.*$/m, '').trim();
  • Publish

    Put it on JSR, or on npm as an ESM-only package.

    +

    matcha create plugin --package scaffolds one.

  • Add one file

    @@ -71,6 +72,16 @@ const shown = EXAMPLE_ENTRY.replace(/[ \t]+#.*$/m, '').trim(); color: var(--dim); } + .step__hint { + margin-top: 10px !important; + font-size: 0.85rem; + } + + .step__hint code { + font-family: var(--font-mono); + color: var(--matcha); + } + .step :global(pre) { margin: 14px 0 0; padding: 12px 14px; -- 2.54.1