hd-garden 0.3.5 → 0.3.6

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/bin/garden.mjs CHANGED
@@ -170,14 +170,6 @@ function ensureSiteKit(destinationRoot = siteRoot) {
170
170
  ) {
171
171
  added.push("Makefile");
172
172
  }
173
- if (
174
- copyIfMissing(
175
- path.join(gardenPackageRoot, "scripts", "new-post.mjs"),
176
- path.join(destinationRoot, "scripts", "new-post.mjs"),
177
- )
178
- ) {
179
- added.push("scripts/new-post.mjs");
180
- }
181
173
  if (added.length) {
182
174
  process.stdout.write(`已补齐站点文件:${added.join("、")}\n`);
183
175
  }
@@ -251,11 +243,6 @@ function initSite() {
251
243
  }
252
244
  copyTemplate(template, destination);
253
245
  writeEngineDependency(destination);
254
- fs.mkdirSync(path.join(destination, "scripts"), { recursive: true });
255
- fs.copyFileSync(
256
- path.join(gardenPackageRoot, "scripts", "new-post.mjs"),
257
- path.join(destination, "scripts", "new-post.mjs"),
258
- );
259
246
  process.stdout.write(`已创建站点:${destination}\n`);
260
247
  installSkill(destination);
261
248
  process.stdout.write("下一步:\n");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hd-garden",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "private": false,
5
5
  "description": "用 Markdown 写作、用 GitHub Pages 发布的个人博客引擎。",
6
6
  "license": "MIT",
@@ -12,10 +12,10 @@ export GARDEN_NEW_TOPIC := $(value TOPIC)
12
12
  export GARDEN_EMBED_URL := $(value URL)
13
13
 
14
14
  help:
15
- @printf "%s\n" "Garden 常用命令:" " make new 创建文章草稿(无需安装 npm 依赖)" ' make new TITLE="文章标题" SLUG=my-post DIR=writing TOPIC="写作"' ' make embed URL="https://example.com" 拉取外部网页摘要' " make skill 安装可交互图表 skill" " make dev 安装依赖并本地预览" " make build 构建公开站点" " make update 检查、提交并触发自动发布"
15
+ @printf "%s\n" "Garden 常用命令:" " make new 用引擎创建文章草稿" ' make new TITLE="文章标题" SLUG=my-post DIR=writing TOPIC="写作"' ' make embed URL="https://example.com" 拉取外部网页摘要' " make skill 安装可交互图表 skill" " make dev 安装依赖并本地预览" " make build 构建公开站点" " make update 检查、提交并触发自动发布"
16
16
 
17
- new:
18
- @node scripts/new-post.mjs
17
+ new: prepare
18
+ npx garden new
19
19
 
20
20
  embed:
21
21
  @npx garden embed