@grove-dev/cli 0.3.1 → 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.
Files changed (108) hide show
  1. package/README.md +8 -93
  2. package/dist/index.d.ts +1 -2
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +95 -1931
  5. package/dist/index.js.map +1 -1
  6. package/dist/init.d.ts +11 -0
  7. package/dist/init.d.ts.map +1 -0
  8. package/dist/init.js +82 -0
  9. package/dist/init.js.map +1 -0
  10. package/dist/package.json +6 -17
  11. package/dist/site/.github/ISSUE_TEMPLATE/bug_report.md +33 -0
  12. package/dist/site/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  13. package/dist/site/.github/ISSUE_TEMPLATE/record_submission.md +48 -0
  14. package/dist/site/.github/pull_request_template.md +27 -0
  15. package/dist/site/.github/workflows/ci.yml +21 -0
  16. package/dist/site/.github/workflows/cleanup.yml +23 -0
  17. package/dist/site/.github/workflows/deploy.yml +36 -0
  18. package/dist/site/.github/workflows/sync-contributors.yml +28 -0
  19. package/dist/site/.github/workflows/sync-github.yml +31 -0
  20. package/dist/site/astro.config.mjs +24 -0
  21. package/dist/site/content/pages/about.md +63 -0
  22. package/dist/site/content/pages/methodology.md +103 -0
  23. package/dist/site/data/health.yml +13 -0
  24. package/dist/site/data/records/.gitkeep +0 -0
  25. package/dist/site/data/records/crewai.yml +21 -0
  26. package/dist/site/data/records/dify.yml +21 -0
  27. package/dist/site/data/records/flowise.yml +21 -0
  28. package/dist/site/data/records/llamaindex.yml +21 -0
  29. package/dist/site/data/records/ollama.yml +28 -0
  30. package/dist/site/data/records/open-webui.yml +21 -0
  31. package/dist/site/data/taxonomy/categories.yml +10 -0
  32. package/dist/site/data/taxonomy/distribution-channels.yml +43 -0
  33. package/dist/site/data/taxonomy/platforms.yml +27 -0
  34. package/dist/site/data/taxonomy/stacks.yml +18 -0
  35. package/dist/site/grove.config.ts +76 -0
  36. package/dist/site/package.json +33 -0
  37. package/dist/site/public/icons/platforms/android.svg +1 -0
  38. package/dist/site/public/icons/platforms/apple-dark.svg +1 -0
  39. package/dist/site/public/icons/platforms/apple-light.svg +1 -0
  40. package/dist/site/public/icons/platforms/chrome.svg +1 -0
  41. package/dist/site/public/icons/platforms/chromeos.svg +5 -0
  42. package/dist/site/public/icons/platforms/desktop.svg +4 -0
  43. package/dist/site/public/icons/platforms/embedded.svg +5 -0
  44. package/dist/site/public/icons/platforms/ios.svg +1 -0
  45. package/dist/site/public/icons/platforms/linux.svg +1 -0
  46. package/dist/site/public/icons/platforms/macos.svg +1 -0
  47. package/dist/site/public/icons/platforms/ubuntu.svg +1 -0
  48. package/dist/site/public/icons/platforms/web.svg +5 -0
  49. package/dist/site/public/icons/platforms/windows.svg +6 -0
  50. package/dist/site/public/icons/stacks/android.svg +1 -0
  51. package/dist/site/public/icons/stacks/apple-dark.svg +1 -0
  52. package/dist/site/public/icons/stacks/apple-light.svg +1 -0
  53. package/dist/site/public/icons/stacks/bun.svg +1 -0
  54. package/dist/site/public/icons/stacks/capacitor.svg +14 -0
  55. package/dist/site/public/icons/stacks/clojure.svg +1 -0
  56. package/dist/site/public/icons/stacks/clojurescript.svg +1 -0
  57. package/dist/site/public/icons/stacks/dart.svg +1 -0
  58. package/dist/site/public/icons/stacks/deno.svg +1 -0
  59. package/dist/site/public/icons/stacks/django.svg +1 -0
  60. package/dist/site/public/icons/stacks/docker.svg +1 -0
  61. package/dist/site/public/icons/stacks/firebase.svg +1 -0
  62. package/dist/site/public/icons/stacks/flutter.svg +1 -0
  63. package/dist/site/public/icons/stacks/go.svg +1 -0
  64. package/dist/site/public/icons/stacks/graphql.svg +1 -0
  65. package/dist/site/public/icons/stacks/ionic.svg +4 -0
  66. package/dist/site/public/icons/stacks/java.svg +1 -0
  67. package/dist/site/public/icons/stacks/javascript.svg +1 -0
  68. package/dist/site/public/icons/stacks/kotlin.svg +1 -0
  69. package/dist/site/public/icons/stacks/llm.svg +1 -0
  70. package/dist/site/public/icons/stacks/mongodb.svg +1 -0
  71. package/dist/site/public/icons/stacks/node.js.svg +1 -0
  72. package/dist/site/public/icons/stacks/nodejs.svg +1 -0
  73. package/dist/site/public/icons/stacks/python.svg +1 -0
  74. package/dist/site/public/icons/stacks/rag.svg +7 -0
  75. package/dist/site/public/icons/stacks/react-native.svg +1 -0
  76. package/dist/site/public/icons/stacks/react.svg +1 -0
  77. package/dist/site/public/icons/stacks/rust.svg +1 -0
  78. package/dist/site/public/icons/stacks/solidity.svg +1 -0
  79. package/dist/site/public/icons/stacks/sveltekit.svg +1 -0
  80. package/dist/site/public/icons/stacks/swift.svg +1 -0
  81. package/dist/site/public/icons/stacks/tensorflow.svg +1 -0
  82. package/dist/site/public/icons/stacks/typescript.svg +1 -0
  83. package/dist/site/public/icons/stacks/vue.svg +1 -0
  84. package/dist/site/public/og-image.svg +48 -0
  85. package/dist/site/public/robots.txt +53 -0
  86. package/dist/site/src/pages/404.astro +64 -0
  87. package/dist/site/src/pages/[slug]/[recordSlug].astro +527 -0
  88. package/dist/site/src/pages/[slug]/index.astro +242 -0
  89. package/dist/site/src/pages/about.astro +189 -0
  90. package/dist/site/src/pages/apps/[recordSlug].astro +34 -0
  91. package/dist/site/src/pages/contributors.astro +113 -0
  92. package/dist/site/src/pages/index.astro +131 -0
  93. package/dist/site/src/pages/submit.astro +170 -0
  94. package/dist/site/src/styles/global.css +33 -0
  95. package/dist/site/tsconfig.json +13 -0
  96. package/package.json +7 -18
  97. package/dist/helpers.d.ts +0 -27
  98. package/dist/helpers.d.ts.map +0 -1
  99. package/dist/helpers.js +0 -41
  100. package/dist/helpers.js.map +0 -1
  101. package/dist/template-loader.d.ts +0 -99
  102. package/dist/template-loader.d.ts.map +0 -1
  103. package/dist/template-loader.js +0 -338
  104. package/dist/template-loader.js.map +0 -1
  105. package/dist/template-loader.test.d.ts +0 -2
  106. package/dist/template-loader.test.d.ts.map +0 -1
  107. package/dist/template-loader.test.js +0 -317
  108. 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
- > The Grove command line.
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 add -g @grove-dev/cli
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
- | Command | Purpose |
28
- |---|---|
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`. |
31
- | `grove validate` | Schema + reference checks. |
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
- ## License
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
@@ -1,4 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { DEPLOY_PROVIDERS, parseDeployProvider } from "./helpers.js";
3
- export { parseDeployProvider, DEPLOY_PROVIDERS };
2
+ export {};
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAqDA,OAAO,EAAE,gBAAgB,EAAuB,mBAAmB,EAAE,MAAM,cAAc,CAAC;AA0uC1F,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}