@grove-dev/cli 0.2.10 → 0.2.14

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > The Grove command line.
4
4
 
5
- Scaffolds Grove-powered spaces, orchestrates `@grove-dev/core` commands, and runs framework-specific `build` / `dev` against the project's own framework adapter.
5
+ Scaffolds Grove-powered spaces, orchestrates `@grove-dev/core` commands, and runs the framework's `build` / `dev` against the project's own framework adapter.
6
6
 
7
7
  ```bash
8
8
  pnpm add -g @grove-dev/cli
@@ -10,29 +10,34 @@ pnpm add -g @grove-dev/cli
10
10
 
11
11
  ## Design
12
12
 
13
- The CLI is intentionally **framework-agnostic**. It depends on `@grove-dev/core` and on `commander`, and treats framework adapters (`@grove-dev/astro`, `@grove-dev/nextjs`, `@grove-dev/svelte`) as **optional peer dependencies**. Templates are copied from the framework adapter's `templates/` directory at scaffold time; the CLI does not import or execute framework code at runtime.
13
+ The CLI is intentionally **framework-agnostic**. It depends on `@grove-dev/core` and on `commander`, and treats the framework adapter (`@grove-dev/astro`) as a peer dependency. Templates are copied from the framework adapter's `templates/` directory at scaffold time; the CLI does not import or execute framework code at runtime.
14
14
 
15
15
  This means:
16
16
 
17
17
  - `pnpm add -g @grove-dev/cli` only pulls in `@grove-dev/core` and `commander`.
18
- - `grove new --framework <f>` requires `<f>`'s adapter to be installed.
18
+ - `grove new --framework astro` requires `@grove-dev/astro` to be installed.
19
19
  - `grove build` and `grove dev` detect the framework from the project's `package.json` and spawn the matching command.
20
20
 
21
+ ## V1 framework scope
22
+
23
+ `@grove-dev/cli` V1 scaffolds **Astro** projects only. `--framework` accepts `astro` and refuses `nextjs` / `svelte` with a clear error. The Next.js and SvelteKit adapters (`@grove-dev/nextjs`, `@grove-dev/svelte`) still exist as skeleton packages, but their templates are not yet functional (no pages / components / layouts). SvelteKit lands in V1.1; Next.js in V1.2.
24
+
21
25
  ## Commands
22
26
 
23
27
  | Command | Purpose |
24
28
  |---|---|
25
- | `grove new [name] --framework <f> [--template <t>] [--deploy <p>]` | Scaffold a new space from a framework template. `--framework` is `astro`, `nextjs`, or `svelte`. `--deploy` is `vercel`, `netlify`, `cloudflare`, `github-pages`, or `none`. |
26
- | `grove import <source>` | Parse a Markdown awesome list (GitHub URL, raw URL, or local path) into `data/resources/*.yml`. |
27
- | `grove analyze [--limit N]` | Fetch GitHub metadata for each resource that has a repository, write `data/health.yml`. |
29
+ | `grove new [name] --framework astro [--template <t>] [--deploy <p>]` | Scaffold a new space from the Astro template. `--deploy` is `vercel`, `netlify`, `cloudflare`, `github-pages`, or `none` (writes a matching deploy workflow + config file). |
30
+ | `grove import <source>` | Parse a Markdown awesome list (GitHub URL, raw URL, or local path) into `data/records/*.yml`. |
28
31
  | `grove validate` | Schema + reference checks. |
29
- | `grove build-data` | Compile `data/resources/*.yml` and `curated.config.ts` into `data/generated/apps.{full,index}.json` and a typed `src/data/config.ts`. |
30
- | `sitemap` | Generate `public/sitemap.xml` from generated data. |
31
- | `grove build-llms-full` | Emit `public/llms.txt` and `public/llms-full.txt`. |
32
- | `grove review` | List cleanup candidates from `data/health.yml` to `data/generated/review-report.json`. |
33
- | `grove enrich [--limit N]` | Token-free HTML-scrape GitHub enrichment (license, language, topics, homepage). |
34
- | `grove build` | Run the project's framework build command. |
35
- | `grove dev` | Start the framework dev server. |
32
+ | `grove generate` | Compile `data/records/*.yml` and `grove.config.ts` into `data/generated/records.{full,index,site-config}.json`. |
33
+ | `grove sitemap` | Generate `public/sitemap.xml` from generated data. |
34
+ | `grove llms` | Emit `public/llms.txt` and `public/llms-full.txt`. |
35
+ | `grove sync github` | Optional: enrich records with GitHub metadata (stars, forks, last commit, license). |
36
+ | `grove cleanup stale` | List cleanup candidates to `data/generated/cleanup-report.json`. |
37
+ | `grove workflows sync` | Re-emit GitHub workflow files (with `--force` to overwrite). |
38
+ | `grove build` | Run the project's framework build command (`pnpm exec astro build`). |
39
+ | `grove dev` | Start the framework dev server (`pnpm exec astro dev`). |
40
+ | `grove run [action]` | Dev-internal: scaffold from LOCAL template and run it (`dev` / `build` / `init`). |
36
41
 
37
42
  ## Scaffolding flow
38
43
 
@@ -41,20 +46,21 @@ grove new my-space --framework astro --deploy vercel
41
46
  # 1. resolves @grove-dev/astro/templates/default
42
47
  # 2. copies it into ./my-space
43
48
  # 3. renames the project in template package.json
44
- # 4. writes curated.config.ts, data/, content/, public/, .github/
45
- # 5. writes deploy.yml for the chosen provider
46
- # 6. writes validate-data.yml, import.yml, issue templates, LICENSE
49
+ # 4. writes grove.config.ts, README.md, .gitignore, data/, content/, public/, .github/
50
+ # 5. writes the deploy workflow + config file for the chosen provider
51
+ # (vercel → vercel.json + .github/workflows/deploy-vercel.yml;
52
+ # netlify → netlify.toml + .github/workflows/deploy-netlify.yml;
53
+ # cloudflare → wrangler.jsonc + .github/workflows/deploy-cloudflare.yml;
54
+ # github-pages → .github/workflows/build.yml with actions/deploy-pages;
55
+ # none → no deploy workflow)
56
+ # 6. writes validate-data.yml, issue templates, LICENSE
47
57
  ```
48
58
 
49
59
  ## Peer dependencies
50
60
 
51
61
  | Peer | Purpose |
52
62
  |---|---|
53
- | `@grove-dev/astro` *(optional)* | Required for `--framework astro` and `grove build`/`dev` in Astro projects. |
54
- | `@grove-dev/nextjs` *(optional)* | Required for `--framework nextjs` and `grove build`/`dev` in Next.js projects. |
55
- | `@grove-dev/svelte` *(optional)* | Required for `--framework svelte` and `grove build`/`dev` in SvelteKit projects. |
56
-
57
- All three are optional. The CLI only complains when you ask for a framework whose adapter is not installed.
63
+ | `@grove-dev/astro` *(required)* | Required for `--framework astro` and `grove build`/`dev` in Astro projects. |
58
64
 
59
65
  ## Development
60
66