create-grist-widget 0.2.17 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -63,6 +63,28 @@ function CreateRepoButton() {
|
|
|
63
63
|
)
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
// The fastest path: GitHub's own "generate from template" flow, with
|
|
67
|
+
// history included so gh-pages/Pages content comes along -- no
|
|
68
|
+
// create-grist-widget CLI, no local install. See the template README's
|
|
69
|
+
// "Used GitHub's 'Use this template' button instead of `npm create
|
|
70
|
+
// grist-widget`?" note for what this trades away (package.json rename,
|
|
71
|
+
// version reset) in exchange for zero local setup.
|
|
72
|
+
function CopyStarterRepoButton() {
|
|
73
|
+
return (
|
|
74
|
+
<div className="mt-2 ml-5">
|
|
75
|
+
<Button asChild>
|
|
76
|
+
<a
|
|
77
|
+
href="https://github.com/arthurblanchon/grist-widget-template/generate"
|
|
78
|
+
target="_blank"
|
|
79
|
+
rel="noreferrer"
|
|
80
|
+
>
|
|
81
|
+
Copy starter repo
|
|
82
|
+
</a>
|
|
83
|
+
</Button>
|
|
84
|
+
</div>
|
|
85
|
+
)
|
|
86
|
+
}
|
|
87
|
+
|
|
66
88
|
export function TemplateLanding() {
|
|
67
89
|
const { versions, error } = useVersions()
|
|
68
90
|
|
|
@@ -84,7 +106,63 @@ export function TemplateLanding() {
|
|
|
84
106
|
|
|
85
107
|
<div className="mb-10 rounded-lg border p-4">
|
|
86
108
|
<h2 className="mb-3 font-heading text-base font-semibold">
|
|
87
|
-
|
|
109
|
+
Quickstart
|
|
110
|
+
</h2>
|
|
111
|
+
<ol className="list-inside list-decimal space-y-3 text-sm text-muted-foreground">
|
|
112
|
+
<li>
|
|
113
|
+
Copy this starter repo. On the next page, check{" "}
|
|
114
|
+
<strong className="text-foreground">Include all branches</strong>{" "}
|
|
115
|
+
so GitHub Pages comes already configured — no manual Settings
|
|
116
|
+
step.
|
|
117
|
+
<CopyStarterRepoButton />
|
|
118
|
+
</li>
|
|
119
|
+
<li>
|
|
120
|
+
Your new widget starts deploying on its first push. Ask your AI
|
|
121
|
+
coding agent for two URLs: the{" "}
|
|
122
|
+
<strong className="text-foreground">dev</strong> build (auto-reloads
|
|
123
|
+
as you iterate) and the{" "}
|
|
124
|
+
<strong className="text-foreground">latest</strong> build (ready to
|
|
125
|
+
paste into a production Grist document).
|
|
126
|
+
</li>
|
|
127
|
+
</ol>
|
|
128
|
+
<div className="mt-4 rounded-md border border-amber-500/40 bg-amber-500/10 p-3 text-xs text-muted-foreground">
|
|
129
|
+
<strong className="text-foreground">
|
|
130
|
+
If your AI can't see the new widget repo,
|
|
131
|
+
</strong>{" "}
|
|
132
|
+
check its GitHub App has been granted access to it:{" "}
|
|
133
|
+
<a
|
|
134
|
+
href="https://github.com/apps/claude"
|
|
135
|
+
target="_blank"
|
|
136
|
+
rel="noreferrer"
|
|
137
|
+
className="underline underline-offset-4 hover:text-foreground"
|
|
138
|
+
>
|
|
139
|
+
Claude
|
|
140
|
+
</a>
|
|
141
|
+
,{" "}
|
|
142
|
+
<a
|
|
143
|
+
href="https://github.com/apps/chatgpt-codex-connector"
|
|
144
|
+
target="_blank"
|
|
145
|
+
rel="noreferrer"
|
|
146
|
+
className="underline underline-offset-4 hover:text-foreground"
|
|
147
|
+
>
|
|
148
|
+
Codex
|
|
149
|
+
</a>
|
|
150
|
+
, or{" "}
|
|
151
|
+
<a
|
|
152
|
+
href="https://github.com/apps/cursor"
|
|
153
|
+
target="_blank"
|
|
154
|
+
rel="noreferrer"
|
|
155
|
+
className="underline underline-offset-4 hover:text-foreground"
|
|
156
|
+
>
|
|
157
|
+
Cursor
|
|
158
|
+
</a>
|
|
159
|
+
.
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
|
|
163
|
+
<div className="mb-10 rounded-lg border p-4">
|
|
164
|
+
<h2 className="mb-3 font-heading text-base font-semibold">
|
|
165
|
+
Prefer the CLI?
|
|
88
166
|
</h2>
|
|
89
167
|
<Tabs defaultValue="claude-code">
|
|
90
168
|
<TabsList className="mb-4">
|