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;