create-emdash 0.0.1 → 0.0.2
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/dist/index.d.mts +2 -0
- package/dist/index.mjs +178 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +34 -4
package/dist/index.d.mts
ADDED
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { execSync } from "node:child_process";
|
|
3
|
+
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
4
|
+
import { resolve } from "node:path";
|
|
5
|
+
import * as p from "@clack/prompts";
|
|
6
|
+
import { downloadTemplate } from "giget";
|
|
7
|
+
import pc from "picocolors";
|
|
8
|
+
|
|
9
|
+
//#region src/index.ts
|
|
10
|
+
/**
|
|
11
|
+
* create-emdash
|
|
12
|
+
*
|
|
13
|
+
* Interactive CLI for creating new EmDash projects
|
|
14
|
+
*
|
|
15
|
+
* Usage: npm create emdash@latest
|
|
16
|
+
*/
|
|
17
|
+
const PROJECT_NAME_PATTERN = /^[a-z0-9-]+$/;
|
|
18
|
+
const GITHUB_REPO = "emdash-cms/templates";
|
|
19
|
+
const NODE_TEMPLATES = {
|
|
20
|
+
blog: {
|
|
21
|
+
name: "Blog",
|
|
22
|
+
description: "A blog with posts, pages, and authors",
|
|
23
|
+
dir: "blog"
|
|
24
|
+
},
|
|
25
|
+
starter: {
|
|
26
|
+
name: "Starter",
|
|
27
|
+
description: "A general-purpose starter with posts and pages",
|
|
28
|
+
dir: "starter"
|
|
29
|
+
},
|
|
30
|
+
marketing: {
|
|
31
|
+
name: "Marketing",
|
|
32
|
+
description: "A marketing site with landing pages and CTAs",
|
|
33
|
+
dir: "marketing"
|
|
34
|
+
},
|
|
35
|
+
portfolio: {
|
|
36
|
+
name: "Portfolio",
|
|
37
|
+
description: "A portfolio site with projects and case studies",
|
|
38
|
+
dir: "portfolio"
|
|
39
|
+
},
|
|
40
|
+
blank: {
|
|
41
|
+
name: "Blank",
|
|
42
|
+
description: "A minimal starter with no content or styling",
|
|
43
|
+
dir: "blank"
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const CLOUDFLARE_TEMPLATES = {
|
|
47
|
+
blog: {
|
|
48
|
+
name: "Blog",
|
|
49
|
+
description: "A blog with posts, pages, and authors",
|
|
50
|
+
dir: "blog-cloudflare"
|
|
51
|
+
},
|
|
52
|
+
starter: {
|
|
53
|
+
name: "Starter",
|
|
54
|
+
description: "A general-purpose starter with posts and pages",
|
|
55
|
+
dir: "starter-cloudflare"
|
|
56
|
+
},
|
|
57
|
+
marketing: {
|
|
58
|
+
name: "Marketing",
|
|
59
|
+
description: "A marketing site with landing pages and CTAs",
|
|
60
|
+
dir: "marketing-cloudflare"
|
|
61
|
+
},
|
|
62
|
+
portfolio: {
|
|
63
|
+
name: "Portfolio",
|
|
64
|
+
description: "A portfolio site with projects and case studies",
|
|
65
|
+
dir: "portfolio-cloudflare"
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
/** Build select options from a config object, preserving literal key types */
|
|
69
|
+
function selectOptions(obj) {
|
|
70
|
+
return Object.keys(obj).map((key) => ({
|
|
71
|
+
value: key,
|
|
72
|
+
label: obj[key].name,
|
|
73
|
+
hint: obj[key].description
|
|
74
|
+
}));
|
|
75
|
+
}
|
|
76
|
+
async function main() {
|
|
77
|
+
console.clear();
|
|
78
|
+
p.intro(`${pc.bgCyan(pc.black(" create-emdash "))}`);
|
|
79
|
+
const projectName = await p.text({
|
|
80
|
+
message: "Project name?",
|
|
81
|
+
placeholder: "my-site",
|
|
82
|
+
defaultValue: "my-site",
|
|
83
|
+
validate: (value) => {
|
|
84
|
+
if (!value) return "Project name is required";
|
|
85
|
+
if (!PROJECT_NAME_PATTERN.test(value)) return "Project name can only contain lowercase letters, numbers, and hyphens";
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
if (p.isCancel(projectName)) {
|
|
89
|
+
p.cancel("Operation cancelled.");
|
|
90
|
+
process.exit(0);
|
|
91
|
+
}
|
|
92
|
+
const projectDir = resolve(process.cwd(), projectName);
|
|
93
|
+
if (existsSync(projectDir)) {
|
|
94
|
+
const overwrite = await p.confirm({
|
|
95
|
+
message: `Directory ${projectName} already exists. Overwrite?`,
|
|
96
|
+
initialValue: false
|
|
97
|
+
});
|
|
98
|
+
if (p.isCancel(overwrite) || !overwrite) {
|
|
99
|
+
p.cancel("Operation cancelled.");
|
|
100
|
+
process.exit(0);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
const platform = await p.select({
|
|
104
|
+
message: "Where will you deploy?",
|
|
105
|
+
options: [{
|
|
106
|
+
value: "node",
|
|
107
|
+
label: "Node.js",
|
|
108
|
+
hint: "SQLite + local file storage"
|
|
109
|
+
}, {
|
|
110
|
+
value: "cloudflare",
|
|
111
|
+
label: "Cloudflare Workers",
|
|
112
|
+
hint: "D1 + R2"
|
|
113
|
+
}],
|
|
114
|
+
initialValue: "node"
|
|
115
|
+
});
|
|
116
|
+
if (p.isCancel(platform)) {
|
|
117
|
+
p.cancel("Operation cancelled.");
|
|
118
|
+
process.exit(0);
|
|
119
|
+
}
|
|
120
|
+
const templateKey = platform === "node" ? await p.select({
|
|
121
|
+
message: "Which template?",
|
|
122
|
+
options: selectOptions(NODE_TEMPLATES),
|
|
123
|
+
initialValue: "blog"
|
|
124
|
+
}) : await p.select({
|
|
125
|
+
message: "Which template?",
|
|
126
|
+
options: selectOptions(CLOUDFLARE_TEMPLATES),
|
|
127
|
+
initialValue: "blog"
|
|
128
|
+
});
|
|
129
|
+
if (p.isCancel(templateKey)) {
|
|
130
|
+
p.cancel("Operation cancelled.");
|
|
131
|
+
process.exit(0);
|
|
132
|
+
}
|
|
133
|
+
const templateConfig = platform === "node" ? NODE_TEMPLATES[templateKey] : CLOUDFLARE_TEMPLATES[templateKey];
|
|
134
|
+
const s = p.spinner();
|
|
135
|
+
s.start("Creating project...");
|
|
136
|
+
try {
|
|
137
|
+
await downloadTemplate(`github:${GITHUB_REPO}/${templateConfig.dir}`, {
|
|
138
|
+
dir: projectDir,
|
|
139
|
+
force: true
|
|
140
|
+
});
|
|
141
|
+
const pkgPath = resolve(projectDir, "package.json");
|
|
142
|
+
if (existsSync(pkgPath)) {
|
|
143
|
+
const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
144
|
+
pkg.name = projectName;
|
|
145
|
+
if (existsSync(resolve(projectDir, "seed", "seed.json"))) pkg.emdash = {
|
|
146
|
+
label: templateConfig.name,
|
|
147
|
+
seed: "seed/seed.json"
|
|
148
|
+
};
|
|
149
|
+
writeFileSync(pkgPath, JSON.stringify(pkg, null, 2));
|
|
150
|
+
}
|
|
151
|
+
s.stop("Project created!");
|
|
152
|
+
s.start("Installing dependencies...");
|
|
153
|
+
try {
|
|
154
|
+
execSync("pnpm install", {
|
|
155
|
+
cwd: projectDir,
|
|
156
|
+
stdio: "ignore"
|
|
157
|
+
});
|
|
158
|
+
s.stop("Dependencies installed!");
|
|
159
|
+
} catch {
|
|
160
|
+
s.stop("Failed to install dependencies");
|
|
161
|
+
p.log.warn(`Run ${pc.cyan(`cd ${projectName} && pnpm install`)} manually`);
|
|
162
|
+
}
|
|
163
|
+
p.note(`cd ${projectName}\npnpm run bootstrap\npnpm run dev`, "Next steps");
|
|
164
|
+
p.outro(`${pc.green("Done!")} Your EmDash project is ready at ${pc.cyan(projectName)}`);
|
|
165
|
+
} catch (error) {
|
|
166
|
+
s.stop("Failed to create project");
|
|
167
|
+
p.log.error(error instanceof Error ? error.message : String(error));
|
|
168
|
+
process.exit(1);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
main().catch((error) => {
|
|
172
|
+
console.error(error);
|
|
173
|
+
process.exit(1);
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
//#endregion
|
|
177
|
+
export { };
|
|
178
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/**\n * create-emdash\n *\n * Interactive CLI for creating new EmDash projects\n *\n * Usage: npm create emdash@latest\n */\n\nimport { execSync } from \"node:child_process\";\nimport { existsSync, readFileSync, writeFileSync } from \"node:fs\";\nimport { resolve } from \"node:path\";\n\nimport * as p from \"@clack/prompts\";\nimport { downloadTemplate } from \"giget\";\nimport pc from \"picocolors\";\n\nconst PROJECT_NAME_PATTERN = /^[a-z0-9-]+$/;\n\nconst GITHUB_REPO = \"emdash-cms/templates\";\n\ntype Platform = \"node\" | \"cloudflare\";\n\ninterface TemplateConfig {\n\tname: string;\n\tdescription: string;\n\t/** Directory name in the templates repo */\n\tdir: string;\n}\n\nconst NODE_TEMPLATES = {\n\tblog: {\n\t\tname: \"Blog\",\n\t\tdescription: \"A blog with posts, pages, and authors\",\n\t\tdir: \"blog\",\n\t},\n\tstarter: {\n\t\tname: \"Starter\",\n\t\tdescription: \"A general-purpose starter with posts and pages\",\n\t\tdir: \"starter\",\n\t},\n\tmarketing: {\n\t\tname: \"Marketing\",\n\t\tdescription: \"A marketing site with landing pages and CTAs\",\n\t\tdir: \"marketing\",\n\t},\n\tportfolio: {\n\t\tname: \"Portfolio\",\n\t\tdescription: \"A portfolio site with projects and case studies\",\n\t\tdir: \"portfolio\",\n\t},\n\tblank: {\n\t\tname: \"Blank\",\n\t\tdescription: \"A minimal starter with no content or styling\",\n\t\tdir: \"blank\",\n\t},\n} as const satisfies Record<string, TemplateConfig>;\n\nconst CLOUDFLARE_TEMPLATES = {\n\tblog: {\n\t\tname: \"Blog\",\n\t\tdescription: \"A blog with posts, pages, and authors\",\n\t\tdir: \"blog-cloudflare\",\n\t},\n\tstarter: {\n\t\tname: \"Starter\",\n\t\tdescription: \"A general-purpose starter with posts and pages\",\n\t\tdir: \"starter-cloudflare\",\n\t},\n\tmarketing: {\n\t\tname: \"Marketing\",\n\t\tdescription: \"A marketing site with landing pages and CTAs\",\n\t\tdir: \"marketing-cloudflare\",\n\t},\n\tportfolio: {\n\t\tname: \"Portfolio\",\n\t\tdescription: \"A portfolio site with projects and case studies\",\n\t\tdir: \"portfolio-cloudflare\",\n\t},\n} as const satisfies Record<string, TemplateConfig>;\n\ntype NodeTemplate = keyof typeof NODE_TEMPLATES;\ntype CloudflareTemplate = keyof typeof CLOUDFLARE_TEMPLATES;\n\n/** Build select options from a config object, preserving literal key types */\nfunction selectOptions<K extends string>(\n\tobj: Readonly<Record<K, Readonly<{ name: string; description: string }>>>,\n): { value: K; label: string; hint: string }[] {\n\treturn (Object.keys(obj) as K[]).map((key) => ({\n\t\tvalue: key,\n\t\tlabel: obj[key].name,\n\t\thint: obj[key].description,\n\t}));\n}\n\nasync function main() {\n\tconsole.clear();\n\n\tp.intro(`${pc.bgCyan(pc.black(\" create-emdash \"))}`);\n\n\tconst projectName = await p.text({\n\t\tmessage: \"Project name?\",\n\t\tplaceholder: \"my-site\",\n\t\tdefaultValue: \"my-site\",\n\t\tvalidate: (value) => {\n\t\t\tif (!value) return \"Project name is required\";\n\t\t\tif (!PROJECT_NAME_PATTERN.test(value))\n\t\t\t\treturn \"Project name can only contain lowercase letters, numbers, and hyphens\";\n\t\t\treturn undefined;\n\t\t},\n\t});\n\n\tif (p.isCancel(projectName)) {\n\t\tp.cancel(\"Operation cancelled.\");\n\t\tprocess.exit(0);\n\t}\n\n\tconst projectDir = resolve(process.cwd(), projectName);\n\n\tif (existsSync(projectDir)) {\n\t\tconst overwrite = await p.confirm({\n\t\t\tmessage: `Directory ${projectName} already exists. Overwrite?`,\n\t\t\tinitialValue: false,\n\t\t});\n\n\t\tif (p.isCancel(overwrite) || !overwrite) {\n\t\t\tp.cancel(\"Operation cancelled.\");\n\t\t\tprocess.exit(0);\n\t\t}\n\t}\n\n\t// Step 1: pick platform\n\tconst platform = await p.select<Platform>({\n\t\tmessage: \"Where will you deploy?\",\n\t\toptions: [\n\t\t\t{\n\t\t\t\tvalue: \"node\",\n\t\t\t\tlabel: \"Node.js\",\n\t\t\t\thint: \"SQLite + local file storage\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tvalue: \"cloudflare\",\n\t\t\t\tlabel: \"Cloudflare Workers\",\n\t\t\t\thint: \"D1 + R2\",\n\t\t\t},\n\t\t],\n\t\tinitialValue: \"node\",\n\t});\n\n\tif (p.isCancel(platform)) {\n\t\tp.cancel(\"Operation cancelled.\");\n\t\tprocess.exit(0);\n\t}\n\n\t// Step 2: pick template\n\tconst templateKey =\n\t\tplatform === \"node\"\n\t\t\t? await p.select<NodeTemplate>({\n\t\t\t\t\tmessage: \"Which template?\",\n\t\t\t\t\toptions: selectOptions(NODE_TEMPLATES),\n\t\t\t\t\tinitialValue: \"blog\",\n\t\t\t\t})\n\t\t\t: await p.select<CloudflareTemplate>({\n\t\t\t\t\tmessage: \"Which template?\",\n\t\t\t\t\toptions: selectOptions(CLOUDFLARE_TEMPLATES),\n\t\t\t\t\tinitialValue: \"blog\",\n\t\t\t\t});\n\n\tif (p.isCancel(templateKey)) {\n\t\tp.cancel(\"Operation cancelled.\");\n\t\tprocess.exit(0);\n\t}\n\n\tconst templateConfig =\n\t\tplatform === \"node\"\n\t\t\t? NODE_TEMPLATES[templateKey as NodeTemplate]\n\t\t\t: CLOUDFLARE_TEMPLATES[templateKey as CloudflareTemplate];\n\n\tconst s = p.spinner();\n\ts.start(\"Creating project...\");\n\n\ttry {\n\t\tawait downloadTemplate(`github:${GITHUB_REPO}/${templateConfig.dir}`, {\n\t\t\tdir: projectDir,\n\t\t\tforce: true,\n\t\t});\n\n\t\t// Set project name in package.json\n\t\tconst pkgPath = resolve(projectDir, \"package.json\");\n\t\tif (existsSync(pkgPath)) {\n\t\t\tconst pkg = JSON.parse(readFileSync(pkgPath, \"utf-8\"));\n\t\t\tpkg.name = projectName;\n\n\t\t\t// Add emdash config if template has seed data\n\t\t\tconst seedPath = resolve(projectDir, \"seed\", \"seed.json\");\n\t\t\tif (existsSync(seedPath)) {\n\t\t\t\tpkg.emdash = {\n\t\t\t\t\tlabel: templateConfig.name,\n\t\t\t\t\tseed: \"seed/seed.json\",\n\t\t\t\t};\n\t\t\t}\n\n\t\t\twriteFileSync(pkgPath, JSON.stringify(pkg, null, 2));\n\t\t}\n\n\t\ts.stop(\"Project created!\");\n\n\t\ts.start(\"Installing dependencies...\");\n\t\ttry {\n\t\t\texecSync(\"pnpm install\", {\n\t\t\t\tcwd: projectDir,\n\t\t\t\tstdio: \"ignore\",\n\t\t\t});\n\t\t\ts.stop(\"Dependencies installed!\");\n\t\t} catch {\n\t\t\ts.stop(\"Failed to install dependencies\");\n\t\t\tp.log.warn(`Run ${pc.cyan(`cd ${projectName} && pnpm install`)} manually`);\n\t\t}\n\n\t\tp.note(`cd ${projectName}\\npnpm run bootstrap\\npnpm run dev`, \"Next steps\");\n\n\t\tp.outro(`${pc.green(\"Done!\")} Your EmDash project is ready at ${pc.cyan(projectName)}`);\n\t} catch (error) {\n\t\ts.stop(\"Failed to create project\");\n\t\tp.log.error(error instanceof Error ? error.message : String(error));\n\t\tprocess.exit(1);\n\t}\n}\n\nmain().catch((error) => {\n\tconsole.error(error);\n\tprocess.exit(1);\n});\n"],"mappings":";;;;;;;;;;;;;;;;AAgBA,MAAM,uBAAuB;AAE7B,MAAM,cAAc;AAWpB,MAAM,iBAAiB;CACtB,MAAM;EACL,MAAM;EACN,aAAa;EACb,KAAK;EACL;CACD,SAAS;EACR,MAAM;EACN,aAAa;EACb,KAAK;EACL;CACD,WAAW;EACV,MAAM;EACN,aAAa;EACb,KAAK;EACL;CACD,WAAW;EACV,MAAM;EACN,aAAa;EACb,KAAK;EACL;CACD,OAAO;EACN,MAAM;EACN,aAAa;EACb,KAAK;EACL;CACD;AAED,MAAM,uBAAuB;CAC5B,MAAM;EACL,MAAM;EACN,aAAa;EACb,KAAK;EACL;CACD,SAAS;EACR,MAAM;EACN,aAAa;EACb,KAAK;EACL;CACD,WAAW;EACV,MAAM;EACN,aAAa;EACb,KAAK;EACL;CACD,WAAW;EACV,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SAAQ,KAAK,EAAE;EACd"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-emdash",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Create
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Create a new EmDash CMS project",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"bin": "./dist/index.mjs",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@clack/prompts": "^0.10.0",
|
|
12
|
+
"giget": "^1.2.3",
|
|
13
|
+
"picocolors": "^1.1.1"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@types/node": "24.10.13",
|
|
17
|
+
"tsdown": "0.20.3",
|
|
18
|
+
"typescript": "^5.9.3"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"create",
|
|
22
|
+
"emdash",
|
|
23
|
+
"astro",
|
|
24
|
+
"cms"
|
|
25
|
+
],
|
|
26
|
+
"author": "Matt Kane",
|
|
6
27
|
"license": "MIT",
|
|
7
|
-
"
|
|
8
|
-
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/emdash-cms/emdash.git",
|
|
31
|
+
"directory": "packages/create-emdash"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "tsdown",
|
|
35
|
+
"dev": "tsdown --watch",
|
|
36
|
+
"typecheck": "tsgo --noEmit"
|
|
37
|
+
}
|
|
38
|
+
}
|