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 <diego.resendez@zero-oneit.com>
This commit is contained in:
2 files changed
+15
No files matched your search
@@ -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
|
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.
|
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 the entry
|
||||||
|
|
||||||
Add one file, `src/content/plugins/<name>.yaml`:
|
Add one file, `src/content/plugins/<name>.yaml`:
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ const shown = EXAMPLE_ENTRY.replace(/[ \t]+#.*$/m, '').trim();
|
|||||||
<li class="step">
|
<li class="step">
|
||||||
<h3>Publish</h3>
|
<h3>Publish</h3>
|
||||||
<p>Put it on JSR, or on npm as an ESM-only package.</p>
|
<p>Put it on JSR, or on npm as an ESM-only package.</p>
|
||||||
|
<p class="step__hint"><code>matcha create plugin --package</code> scaffolds one.</p>
|
||||||
</li>
|
</li>
|
||||||
<li class="step step--wide">
|
<li class="step step--wide">
|
||||||
<h3>Add one file</h3>
|
<h3>Add one file</h3>
|
||||||
@@ -71,6 +72,16 @@ const shown = EXAMPLE_ENTRY.replace(/[ \t]+#.*$/m, '').trim();
|
|||||||
color: var(--dim);
|
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) {
|
.step :global(pre) {
|
||||||
margin: 14px 0 0;
|
margin: 14px 0 0;
|
||||||
padding: 12px 14px;
|
padding: 12px 14px;
|
||||||
|
|||||||
Reference in new issue
Block a user