release: promote develop to main (first GitHub publish) #4
No files matched your search
@@ -36,7 +36,7 @@ export function greeting(text = 'hello'): Plugin {
|
||||
<a class="button button--solid" href={ADD_URL}>Add your plugin</a>
|
||||
<a class="button button--ghost" href="#plugins">Browse plugins</a>
|
||||
</p>
|
||||
<p class="hero__micro">Node · Deno · Bun · workerd</p>
|
||||
<p class="hero__micro">Needs <code>@green-tea/core@26.9.0-beta.2</code> or newer. Each card shows which runtimes that plugin supports.</p>
|
||||
</div>
|
||||
|
||||
<figure class="hero__code" aria-label="A complete plugin">
|
||||
@@ -87,6 +87,11 @@ export function greeting(text = 'hello'): Plugin {
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
.hero__micro code {
|
||||
font-family: var(--font-mono);
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.hero__code {
|
||||
margin: 0;
|
||||
background: var(--panel);
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
// Every claim here is checked against core: the shape and the three-method API are
|
||||
// `Plugin`/`PluginApi` in src/plugin.ts, and `mountPlugin` hands over nothing else, which is why a
|
||||
// plugin cannot reorder or remove what an app already has.
|
||||
// plugin cannot reorder or remove the app's steps. That guarantee covers registration only: a
|
||||
// plugin's step still sees the live request context (see the comment in mountPlugin).
|
||||
const points = [
|
||||
{
|
||||
title: 'One object',
|
||||
@@ -9,11 +10,11 @@ const points = [
|
||||
},
|
||||
{
|
||||
title: 'Core as types only',
|
||||
body: 'Plugins import <code>@green-tea/core</code> with <code>import type</code>. Installing one never pulls in a second copy of core, so there is no version to line up.',
|
||||
body: 'Plugins import <code>@green-tea/core</code> with <code>import type</code> and keep it out of <code>dependencies</code>, and review checks for it. So installing one does not pull in a second copy of core.',
|
||||
},
|
||||
{
|
||||
title: 'The graph picks the order',
|
||||
body: 'Say what your plugin needs and what it provides, and green-tea decides where it runs. A plugin can add to an app, but it cannot reorder or remove anything that is already there.',
|
||||
body: 'Say what your plugin needs and what it provides, and green-tea decides where it runs. A plugin can only add nodes to the graph. It has no way to reorder or remove the app’s own steps.',
|
||||
},
|
||||
];
|
||||
---
|
||||
|
||||
@@ -5,7 +5,7 @@ const reasons = [
|
||||
{ title: 'Runtimes read, not typed', body: 'Each card shows where your plugin runs, taken from what the package declares.' },
|
||||
{
|
||||
title: "It doesn't go stale",
|
||||
body: 'Your entry has no version in it. Every build asks the registry, so a new release shows up at the next cut without another pull request.',
|
||||
body: 'Your entry has no version in it. Each rebuild of the listing asks the registry again, so your card picks up a new release without you touching the entry.',
|
||||
},
|
||||
{ title: 'Read by a person', body: 'Someone who works on green-tea reads each entry before it is listed.' },
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user