Merge pull request #12 from emdash-cms/fix/remove-bootstrap-step
fix(create-emdash): remove manual bootstrap step from CLI output
This commit is contained in:
7
.changeset/dull-hats-repair.md
Normal file
7
.changeset/dull-hats-repair.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
"create-emdash": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Remove manual bootstrap step from CLI output
|
||||||
|
|
||||||
|
The create-emdash CLI no longer suggests running `bootstrap` as a manual step, since EmDash now auto-bootstraps on first run.
|
||||||
@@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface PlaygroundToolbarConfig {
|
export interface PlaygroundToolbarConfig {
|
||||||
/** When the playground was created (ISO string) */
|
/** When the playground was created (ISO string) */
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
/** TTL in seconds */
|
/** TTL in seconds */
|
||||||
ttl: number;
|
ttl: number;
|
||||||
/** Whether edit mode is currently active */
|
/** Whether edit mode is currently active */
|
||||||
editMode: boolean;
|
editMode: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const RE_AMP = /&/g;
|
const RE_AMP = /&/g;
|
||||||
@@ -25,9 +25,9 @@ const RE_LT = /</g;
|
|||||||
const RE_GT = />/g;
|
const RE_GT = />/g;
|
||||||
|
|
||||||
export function renderPlaygroundToolbar(config: PlaygroundToolbarConfig): string {
|
export function renderPlaygroundToolbar(config: PlaygroundToolbarConfig): string {
|
||||||
const { createdAt, ttl, editMode } = config;
|
const { createdAt, ttl, editMode } = config;
|
||||||
|
|
||||||
return `
|
return `
|
||||||
<!-- EmDash Playground Toolbar -->
|
<!-- EmDash Playground Toolbar -->
|
||||||
<div id="emdash-playground-toolbar" data-created-at="${escapeAttr(createdAt)}" data-ttl="${ttl}" data-edit-mode="${editMode}">
|
<div id="emdash-playground-toolbar" data-created-at="${escapeAttr(createdAt)}" data-ttl="${ttl}" data-edit-mode="${editMode}">
|
||||||
<div class="ec-pg-inner">
|
<div class="ec-pg-inner">
|
||||||
@@ -333,9 +333,9 @@ export function renderPlaygroundToolbar(config: PlaygroundToolbarConfig): string
|
|||||||
}
|
}
|
||||||
|
|
||||||
function escapeAttr(str: string): string {
|
function escapeAttr(str: string): string {
|
||||||
return str
|
return str
|
||||||
.replace(RE_AMP, "&")
|
.replace(RE_AMP, "&")
|
||||||
.replace(RE_QUOT, """)
|
.replace(RE_QUOT, """)
|
||||||
.replace(RE_LT, "<")
|
.replace(RE_LT, "<")
|
||||||
.replace(RE_GT, ">");
|
.replace(RE_GT, ">");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -264,7 +264,7 @@ async function main() {
|
|||||||
|
|
||||||
const steps = [`cd ${projectName}`];
|
const steps = [`cd ${projectName}`];
|
||||||
if (!shouldInstall) steps.push(installCmd);
|
if (!shouldInstall) steps.push(installCmd);
|
||||||
steps.push(runCmd("bootstrap"), runCmd("dev"));
|
steps.push(runCmd("dev"));
|
||||||
|
|
||||||
p.note(steps.join("\n"), "Next steps");
|
p.note(steps.join("\n"), "Next steps");
|
||||||
|
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
{
|
{
|
||||||
"binding": "DB",
|
"binding": "DB",
|
||||||
"database_name": "emdash-marketplace",
|
"database_name": "emdash-marketplace",
|
||||||
"database_id": "e07c5b3b-c3e0-4cec-be3b-1ae0bb87da35"
|
"database_id": "e07c5b3b-c3e0-4cec-be3b-1ae0bb87da35",
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
"r2_buckets": [
|
"r2_buckets": [
|
||||||
{
|
{
|
||||||
@@ -35,4 +35,4 @@
|
|||||||
"class_name": "AuditWorkflow",
|
"class_name": "AuditWorkflow",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user