@grove-dev/cli 0.2.20 → 0.3.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/README.md +8 -93
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +99 -1937
- package/dist/index.js.map +1 -1
- package/dist/init.d.ts +11 -0
- package/dist/init.d.ts.map +1 -0
- package/dist/init.js +82 -0
- package/dist/init.js.map +1 -0
- package/dist/package.json +7 -18
- package/dist/site/.github/ISSUE_TEMPLATE/bug_report.md +33 -0
- package/dist/site/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/dist/site/.github/ISSUE_TEMPLATE/record_submission.md +48 -0
- package/dist/site/.github/pull_request_template.md +27 -0
- package/dist/site/.github/workflows/ci.yml +21 -0
- package/dist/site/.github/workflows/cleanup.yml +23 -0
- package/dist/site/.github/workflows/deploy.yml +36 -0
- package/dist/site/.github/workflows/sync-contributors.yml +28 -0
- package/dist/site/.github/workflows/sync-github.yml +31 -0
- package/dist/site/astro.config.mjs +24 -0
- package/dist/site/content/pages/about.md +63 -0
- package/dist/site/content/pages/methodology.md +103 -0
- package/dist/site/data/health.yml +13 -0
- package/dist/site/data/records/.gitkeep +0 -0
- package/dist/site/data/records/crewai.yml +21 -0
- package/dist/site/data/records/dify.yml +21 -0
- package/dist/site/data/records/flowise.yml +21 -0
- package/dist/site/data/records/llamaindex.yml +21 -0
- package/dist/site/data/records/ollama.yml +28 -0
- package/dist/site/data/records/open-webui.yml +21 -0
- package/dist/site/data/taxonomy/categories.yml +10 -0
- package/dist/site/data/taxonomy/distribution-channels.yml +43 -0
- package/dist/site/data/taxonomy/platforms.yml +27 -0
- package/dist/site/data/taxonomy/stacks.yml +18 -0
- package/dist/site/grove.config.ts +76 -0
- package/dist/site/package.json +33 -0
- package/dist/site/public/icons/platforms/android.svg +1 -0
- package/dist/site/public/icons/platforms/apple-dark.svg +1 -0
- package/dist/site/public/icons/platforms/apple-light.svg +1 -0
- package/dist/site/public/icons/platforms/chrome.svg +1 -0
- package/dist/site/public/icons/platforms/chromeos.svg +5 -0
- package/dist/site/public/icons/platforms/desktop.svg +4 -0
- package/dist/site/public/icons/platforms/embedded.svg +5 -0
- package/dist/site/public/icons/platforms/ios.svg +1 -0
- package/dist/site/public/icons/platforms/linux.svg +1 -0
- package/dist/site/public/icons/platforms/macos.svg +1 -0
- package/dist/site/public/icons/platforms/ubuntu.svg +1 -0
- package/dist/site/public/icons/platforms/web.svg +5 -0
- package/dist/site/public/icons/platforms/windows.svg +6 -0
- package/dist/site/public/icons/stacks/android.svg +1 -0
- package/dist/site/public/icons/stacks/apple-dark.svg +1 -0
- package/dist/site/public/icons/stacks/apple-light.svg +1 -0
- package/dist/site/public/icons/stacks/bun.svg +1 -0
- package/dist/site/public/icons/stacks/capacitor.svg +14 -0
- package/dist/site/public/icons/stacks/clojure.svg +1 -0
- package/dist/site/public/icons/stacks/clojurescript.svg +1 -0
- package/dist/site/public/icons/stacks/dart.svg +1 -0
- package/dist/site/public/icons/stacks/deno.svg +1 -0
- package/dist/site/public/icons/stacks/django.svg +1 -0
- package/dist/site/public/icons/stacks/docker.svg +1 -0
- package/dist/site/public/icons/stacks/firebase.svg +1 -0
- package/dist/site/public/icons/stacks/flutter.svg +1 -0
- package/dist/site/public/icons/stacks/go.svg +1 -0
- package/dist/site/public/icons/stacks/graphql.svg +1 -0
- package/dist/site/public/icons/stacks/ionic.svg +4 -0
- package/dist/site/public/icons/stacks/java.svg +1 -0
- package/dist/site/public/icons/stacks/javascript.svg +1 -0
- package/dist/site/public/icons/stacks/kotlin.svg +1 -0
- package/dist/site/public/icons/stacks/llm.svg +1 -0
- package/dist/site/public/icons/stacks/mongodb.svg +1 -0
- package/dist/site/public/icons/stacks/node.js.svg +1 -0
- package/dist/site/public/icons/stacks/nodejs.svg +1 -0
- package/dist/site/public/icons/stacks/python.svg +1 -0
- package/dist/site/public/icons/stacks/rag.svg +7 -0
- package/dist/site/public/icons/stacks/react-native.svg +1 -0
- package/dist/site/public/icons/stacks/react.svg +1 -0
- package/dist/site/public/icons/stacks/rust.svg +1 -0
- package/dist/site/public/icons/stacks/solidity.svg +1 -0
- package/dist/site/public/icons/stacks/sveltekit.svg +1 -0
- package/dist/site/public/icons/stacks/swift.svg +1 -0
- package/dist/site/public/icons/stacks/tensorflow.svg +1 -0
- package/dist/site/public/icons/stacks/typescript.svg +1 -0
- package/dist/site/public/icons/stacks/vue.svg +1 -0
- package/dist/site/public/og-image.svg +48 -0
- package/dist/site/public/robots.txt +53 -0
- package/dist/site/src/pages/404.astro +64 -0
- package/dist/site/src/pages/[slug]/[recordSlug].astro +527 -0
- package/dist/site/src/pages/[slug]/index.astro +242 -0
- package/dist/site/src/pages/about.astro +189 -0
- package/dist/site/src/pages/apps/[recordSlug].astro +34 -0
- package/dist/site/src/pages/contributors.astro +113 -0
- package/dist/site/src/pages/index.astro +131 -0
- package/dist/site/src/pages/submit.astro +170 -0
- package/dist/site/src/styles/global.css +33 -0
- package/dist/site/tsconfig.json +13 -0
- package/package.json +8 -19
- package/dist/helpers.d.ts +0 -27
- package/dist/helpers.d.ts.map +0 -1
- package/dist/helpers.js +0 -41
- package/dist/helpers.js.map +0 -1
- package/dist/template-loader.d.ts +0 -99
- package/dist/template-loader.d.ts.map +0 -1
- package/dist/template-loader.js +0 -338
- package/dist/template-loader.js.map +0 -1
- package/dist/template-loader.test.d.ts +0 -2
- package/dist/template-loader.test.d.ts.map +0 -1
- package/dist/template-loader.test.js +0 -270
- package/dist/template-loader.test.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,104 +1,19 @@
|
|
|
1
1
|
# `@grove-dev/cli`
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Scaffolds Grove-powered spaces, orchestrates `@grove-dev/core` commands, and runs the framework's `build` / `dev` against the project's own framework adapter.
|
|
3
|
+
The deliberately small CLI for Grove directories.
|
|
6
4
|
|
|
7
5
|
```bash
|
|
8
|
-
pnpm
|
|
6
|
+
pnpm dlx @grove-dev/cli init my-directory
|
|
9
7
|
```
|
|
10
8
|
|
|
11
|
-
## Design
|
|
12
|
-
|
|
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
|
-
|
|
15
|
-
This means:
|
|
16
|
-
|
|
17
|
-
- `pnpm add -g @grove-dev/cli` only pulls in `@grove-dev/core` and `commander`.
|
|
18
|
-
- `grove new --framework astro` requires `@grove-dev/astro` to be installed.
|
|
19
|
-
- `grove build` and `grove dev` detect the framework from the project's `package.json` and spawn the matching command.
|
|
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
|
-
|
|
25
9
|
## Commands
|
|
26
10
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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`). |
|
|
41
|
-
|
|
42
|
-
## Scaffolding flow
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
grove new my-space --framework astro --deploy vercel
|
|
46
|
-
# 1. resolves @grove-dev/astro/templates/default
|
|
47
|
-
# 2. copies it into ./my-space
|
|
48
|
-
# 3. renames the project in template package.json
|
|
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
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
## Two modes for `@grove-dev/*` dependencies
|
|
60
|
-
|
|
61
|
-
The CLI scaffolds projects with `@grove-dev/*` dependencies pinned in the new project's `package.json`. There are two ways to set that version string, controlled by a flag:
|
|
62
|
-
|
|
63
|
-
| Mode | Flag | When to use | What it writes |
|
|
64
|
-
|---|---|---|---|
|
|
65
|
-
| **Published** *(default)* | *(omit `--local`)* | Real end users installing from the npm registry. | `^X.Y.Z` (the published version of `@grove-dev/astro` on the registry). |
|
|
66
|
-
| **Local** | `--local` | Grove maintainers testing a *new* version of `@grove-dev/*` *before* it is published. | `link:/abs/path/to/monorepo/packages/<pkg>` — `pnpm install` uses the local sibling. |
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
# End-user scaffold (default)
|
|
70
|
-
grove new my-app --framework astro --yes
|
|
71
|
-
cd my-app && pnpm install # installs @grove-dev/* from npm
|
|
72
|
-
|
|
73
|
-
# Maintainer / CI smoke-test scaffold (use the local monorepo's code)
|
|
74
|
-
grove new /tmp/smoke --framework astro --local --yes
|
|
75
|
-
cd /tmp/smoke && pnpm install # links @grove-dev/* to the monorepo siblings
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
**Caveat (Astro 6.4 + workspace symlinks).** `--local` installs cleanly and the dev server works, but `astro build` fails on a symlinked `@grove-dev/astro` because Astro's `.astro` virtual module cache assumes a canonical (non-symlinked) path. For workspace development of the framework itself, **use `grove run` instead** — it builds a project from the local template under `<monorepo>/.grove/run/<timestamp>/` and installs via pnpm workspace protocol, which Astro handles correctly.
|
|
79
|
-
|
|
80
|
-
```bash
|
|
81
|
-
# Inside the grove monorepo, with the source you want to test in
|
|
82
|
-
# packages/astro, packages/core, packages/cli:
|
|
83
|
-
pnpm exec grove run dev # scaffolds + installs + starts astro dev
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
`grove run` is the canonical workspace-development workflow; `--local` is for CI smoke tests where you want a project outside the monorepo.
|
|
87
|
-
|
|
88
|
-
## Peer dependencies
|
|
89
|
-
|
|
90
|
-
| Peer | Purpose |
|
|
91
|
-
|---|---|
|
|
92
|
-
| `@grove-dev/astro` *(required)* | Required for `--framework astro` and `grove build`/`dev` in Astro projects. |
|
|
93
|
-
|
|
94
|
-
## Development
|
|
95
|
-
|
|
96
|
-
```bash
|
|
97
|
-
pnpm --filter @grove-dev/cli build
|
|
98
|
-
pnpm --filter @grove-dev/cli check
|
|
99
|
-
pnpm --filter @grove-dev/cli dev # tsx src/index.ts --help
|
|
100
|
-
```
|
|
11
|
+
- `grove init [directory]` copies the canonical working Grove site and installs it.
|
|
12
|
+
- `grove check [--strict]` validates YAML, prepares artifacts, and runs `astro check`.
|
|
13
|
+
- `grove sync github` refreshes record repository metadata.
|
|
14
|
+
- `grove sync contributors` refreshes directory-community metadata.
|
|
15
|
+
- `grove cleanup [--strict]` writes the human-review report.
|
|
101
16
|
|
|
102
|
-
|
|
17
|
+
There are no framework, blueprint, template, deployment, build, or dev commands. Use Astro's normal `pnpm dev` and `pnpm build`; the integration prepares data automatically. The CLI bundles a release snapshot of the repository's real `apps/example/`, so the demo and generated project cannot drift into separate implementations.
|
|
103
18
|
|
|
104
19
|
MIT
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|