@grove-dev/cli 0.6.1 → 0.8.0
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 +192 -23
- package/dist/audit-cli.d.ts +1 -1
- package/dist/audit-cli.d.ts.map +1 -1
- package/dist/audit-cli.js +11 -11
- package/dist/audit-cli.js.map +1 -1
- package/dist/audit.d.ts +4 -4
- package/dist/audit.d.ts.map +1 -1
- package/dist/audit.js +99 -49
- package/dist/audit.js.map +1 -1
- package/dist/collection-cli.d.ts.map +1 -1
- package/dist/collection-cli.js +1 -1
- package/dist/collection-cli.js.map +1 -1
- package/dist/diff.d.ts +43 -0
- package/dist/diff.d.ts.map +1 -0
- package/dist/diff.js +70 -0
- package/dist/diff.js.map +1 -0
- package/dist/hash.d.ts +36 -0
- package/dist/hash.d.ts.map +1 -0
- package/dist/hash.js +82 -0
- package/dist/hash.js.map +1 -0
- package/dist/icons-cli.d.ts +1 -1
- package/dist/icons-cli.d.ts.map +1 -1
- package/dist/icons-cli.js +32 -14
- package/dist/icons-cli.js.map +1 -1
- package/dist/import-cli.d.ts +1 -1
- package/dist/import-cli.d.ts.map +1 -1
- package/dist/import-cli.js +6 -6
- package/dist/import-cli.js.map +1 -1
- package/dist/index.js +95 -58
- package/dist/index.js.map +1 -1
- package/dist/init.d.ts +37 -4
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +251 -57
- package/dist/init.js.map +1 -1
- package/dist/package.json +3 -2
- package/dist/r/about.json +22 -0
- package/dist/r/browse.json +89 -0
- package/dist/r/collections.json +59 -0
- package/dist/r/contributors.json +22 -0
- package/dist/r/default.json +438 -0
- package/dist/r/home.json +67 -0
- package/dist/r/not-found.json +22 -0
- package/dist/r/project-card.json +48 -0
- package/dist/r/record.json +59 -0
- package/dist/r/registry.json +903 -0
- package/dist/r/shell.json +75 -0
- package/dist/r/submit.json +28 -0
- package/dist/r/taxonomy.json +65 -0
- package/dist/r/ui.json +54 -0
- package/dist/readme-cli.d.ts +1 -1
- package/dist/readme-cli.d.ts.map +1 -1
- package/dist/readme-cli.js +84 -49
- package/dist/readme-cli.js.map +1 -1
- package/dist/registry.d.ts +74 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +180 -0
- package/dist/registry.js.map +1 -0
- package/dist/run.d.ts +7 -0
- package/dist/run.d.ts.map +1 -0
- package/dist/run.js +20 -0
- package/dist/run.js.map +1 -0
- package/dist/unified-diff.d.ts +14 -0
- package/dist/unified-diff.d.ts.map +1 -0
- package/dist/unified-diff.js +103 -0
- package/dist/unified-diff.js.map +1 -0
- package/dist/update.d.ts +47 -0
- package/dist/update.d.ts.map +1 -0
- package/dist/update.js +231 -0
- package/dist/update.js.map +1 -0
- package/package.json +5 -4
- package/dist/site/.github/ISSUE_TEMPLATE/bug_report.md +0 -33
- package/dist/site/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/dist/site/.github/ISSUE_TEMPLATE/record_submission.md +0 -48
- package/dist/site/.github/pull_request_template.md +0 -27
- package/dist/site/.github/workflows/ci.yml +0 -21
- package/dist/site/.github/workflows/cleanup.yml +0 -23
- package/dist/site/.github/workflows/deploy.yml +0 -36
- package/dist/site/.github/workflows/readme.yml +0 -41
- package/dist/site/.github/workflows/sync-contributors.yml +0 -28
- package/dist/site/.github/workflows/sync-github.yml +0 -31
- package/dist/site/README.md +0 -89
- package/dist/site/astro.config.mjs +0 -26
- package/dist/site/content/records/crewai.md +0 -898
- package/dist/site/content/records/dify.md +0 -35
- package/dist/site/content/records/flowise.md +0 -38
- package/dist/site/content/records/llamaindex.md +0 -45
- package/dist/site/content/records/ollama.md +0 -39
- package/dist/site/content/records/open-webui.md +0 -35
- package/dist/site/data/collections/top-ai-agents.yml +0 -14
- package/dist/site/data/collections/top-flutter.yml +0 -12
- package/dist/site/data/health.yml +0 -13
- package/dist/site/data/records/.gitkeep +0 -0
- package/dist/site/data/records/crewai.yml +0 -23
- package/dist/site/data/records/dify.yml +0 -23
- package/dist/site/data/records/flowise.yml +0 -23
- package/dist/site/data/records/llamaindex.yml +0 -23
- package/dist/site/data/records/ollama.yml +0 -30
- package/dist/site/data/records/open-webui.yml +0 -23
- package/dist/site/data/taxonomy/categories.yml +0 -10
- package/dist/site/data/taxonomy/distribution-channels.yml +0 -43
- package/dist/site/data/taxonomy/licenses.yml +0 -16
- package/dist/site/data/taxonomy/platforms.yml +0 -20
- package/dist/site/data/taxonomy/stacks.yml +0 -15
- package/dist/site/data/taxonomy/topics.yml +0 -29
- package/dist/site/grove.config.ts +0 -110
- package/dist/site/package.json +0 -34
- package/dist/site/public/icons/.grove-icons.json +0 -47
- package/dist/site/public/icons/platforms/android.svg +0 -1
- package/dist/site/public/icons/platforms/app.svg +0 -4
- package/dist/site/public/icons/platforms/chrome.svg +0 -1
- package/dist/site/public/icons/platforms/desktop.svg +0 -4
- package/dist/site/public/icons/platforms/embedded.svg +0 -5
- package/dist/site/public/icons/platforms/ios.svg +0 -1
- package/dist/site/public/icons/platforms/linux.svg +0 -1
- package/dist/site/public/icons/platforms/macos.svg +0 -1
- package/dist/site/public/icons/platforms/ubuntu.svg +0 -1
- package/dist/site/public/icons/platforms/web.svg +0 -5
- package/dist/site/public/icons/platforms/windows.svg +0 -1
- package/dist/site/public/icons/stacks/android.svg +0 -1
- package/dist/site/public/icons/stacks/apple.svg +0 -1
- package/dist/site/public/icons/stacks/bun.svg +0 -1
- package/dist/site/public/icons/stacks/capacitor.svg +0 -1
- package/dist/site/public/icons/stacks/clojure.svg +0 -1
- package/dist/site/public/icons/stacks/dart.svg +0 -1
- package/dist/site/public/icons/stacks/deno.svg +0 -1
- package/dist/site/public/icons/stacks/django.svg +0 -1
- package/dist/site/public/icons/stacks/docker.svg +0 -1
- package/dist/site/public/icons/stacks/firebase.svg +0 -1
- package/dist/site/public/icons/stacks/flutter.svg +0 -1
- package/dist/site/public/icons/stacks/go.svg +0 -1
- package/dist/site/public/icons/stacks/graphql.svg +0 -1
- package/dist/site/public/icons/stacks/ionic.svg +0 -1
- package/dist/site/public/icons/stacks/java.svg +0 -1
- package/dist/site/public/icons/stacks/javascript.svg +0 -1
- package/dist/site/public/icons/stacks/kotlin.svg +0 -1
- package/dist/site/public/icons/stacks/llm.svg +0 -4
- package/dist/site/public/icons/stacks/mongodb.svg +0 -1
- package/dist/site/public/icons/stacks/nodejs.svg +0 -1
- package/dist/site/public/icons/stacks/python.svg +0 -1
- package/dist/site/public/icons/stacks/rag.svg +0 -6
- package/dist/site/public/icons/stacks/react-native.svg +0 -1
- package/dist/site/public/icons/stacks/react.svg +0 -1
- package/dist/site/public/icons/stacks/rust.svg +0 -1
- package/dist/site/public/icons/stacks/solidity.svg +0 -1
- package/dist/site/public/icons/stacks/sveltekit.svg +0 -1
- package/dist/site/public/icons/stacks/swift.svg +0 -1
- package/dist/site/public/icons/stacks/tauri.svg +0 -1
- package/dist/site/public/icons/stacks/tensorflow.svg +0 -1
- package/dist/site/public/icons/stacks/typescript.svg +0 -1
- package/dist/site/public/icons/stacks/vue.svg +0 -1
- package/dist/site/public/logo.svg +0 -16
- package/dist/site/src/components/DirectoryBrowse.astro +0 -246
- package/dist/site/src/components/PipelineStrip.astro +0 -121
- package/dist/site/src/components/TaxonomyList.astro +0 -108
- package/dist/site/src/pages/404.astro +0 -63
- package/dist/site/src/pages/[slug]/[recordSlug].astro +0 -71
- package/dist/site/src/pages/[slug]/index.astro +0 -19
- package/dist/site/src/pages/[slug]/page/[page].astro +0 -32
- package/dist/site/src/pages/[slug]/page/cards.astro +0 -50
- package/dist/site/src/pages/[slug]/page/records.json.ts +0 -24
- package/dist/site/src/pages/about.astro +0 -130
- package/dist/site/src/pages/categories/[name].astro +0 -35
- package/dist/site/src/pages/categories/index.astro +0 -33
- package/dist/site/src/pages/collections/[slug].astro +0 -45
- package/dist/site/src/pages/collections/index.astro +0 -32
- package/dist/site/src/pages/contributors.astro +0 -115
- package/dist/site/src/pages/empty.astro +0 -24
- package/dist/site/src/pages/index.astro +0 -161
- package/dist/site/src/pages/licenses/[name].astro +0 -35
- package/dist/site/src/pages/stacks/[name].astro +0 -35
- package/dist/site/src/pages/stacks/index.astro +0 -35
- package/dist/site/src/pages/submit.astro +0 -183
- package/dist/site/src/styles/global.css +0 -21
- package/dist/site/tsconfig.json +0 -13
- /package/{dist/site/LICENSE → LICENSE} +0 -0
package/dist/init.js
CHANGED
|
@@ -1,20 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
/**
|
|
3
|
+
* `grove init` — scaffold a Grove project from the registry.
|
|
4
|
+
*
|
|
5
|
+
* The UI is a shadcn registry (`@grove-dev/registry`); the full
|
|
6
|
+
* scaffold is its generated `default` item, and the official shadcn
|
|
7
|
+
* CLI installs it. `grove init` only has to set the table, in this
|
|
8
|
+
* order:
|
|
9
|
+
*
|
|
10
|
+
* 1. Refuse a non-empty directory.
|
|
11
|
+
* 2. Write package.json (name, `astro dev/build/check` scripts, no
|
|
12
|
+
* dependencies yet).
|
|
13
|
+
* 3. Write the project files shadcn needs to install into a bare
|
|
14
|
+
* directory — tsconfig.json (`@/*` alias, Bundler resolution,
|
|
15
|
+
* the `@grove/generated/*` alias the scaffold's code relies on)
|
|
16
|
+
* and components.json (registers the `@grove` registry URL so
|
|
17
|
+
* `npx shadcn add @grove/<item>` works later) — plus the files
|
|
18
|
+
* the scaffold does not ship because they are project-specific:
|
|
19
|
+
* grove.config.ts, astro.config.mjs, and an empty data/records/.
|
|
20
|
+
* 4. `pnpm dlx shadcn@<pinned> add <bundled default.json> --yes`.
|
|
21
|
+
* shadcn writes every scaffold file under src/ and runs the
|
|
22
|
+
* package manager to install the item's npm dependencies
|
|
23
|
+
* (astro, tailwindcss, …) with real version ranges.
|
|
24
|
+
* 5. Add `@grove-dev/{core,astro,cli}` to package.json,
|
|
25
|
+
* pinned to this CLI's version. After step 4 on purpose: shadcn
|
|
26
|
+
* installs whatever package.json declares, and Grove's own
|
|
27
|
+
* packages may not be resolvable at that moment (the scaffold
|
|
28
|
+
* smoke test points them at local tarballs afterwards).
|
|
29
|
+
* 6. Write `.grove/registry.lock.json` with the install-time hashes
|
|
30
|
+
* of the item's files, which `grove update` diffs against later.
|
|
31
|
+
*
|
|
32
|
+
* `grove init` does NOT scaffold `content/`, `public/`, `.github/`, or
|
|
33
|
+
* anything under `data/` besides the empty `records/` directory —
|
|
34
|
+
* those are content/workflow concerns, not UI-registry concerns. The
|
|
35
|
+
* CLI wrapper in index.ts runs `pnpm install` and `git init` after
|
|
36
|
+
* this returns, per its own `--no-install`/`--no-git` flags.
|
|
37
|
+
*/
|
|
38
|
+
import { spawnSync } from 'node:child_process';
|
|
39
|
+
import { mkdir, readdir, readFile, writeFile } from 'node:fs/promises';
|
|
40
|
+
import { dirname, resolve } from 'node:path';
|
|
41
|
+
import { fileURLToPath } from 'node:url';
|
|
42
|
+
import { writeLockfile } from './hash.js';
|
|
43
|
+
import { buildLockfile, loadItem, REGISTRY_NAMESPACE, REGISTRY_URL_TEMPLATE, resolveBundledItemPath, SHADCN_VERSION, } from './registry.js';
|
|
44
|
+
import { run } from './run.js';
|
|
45
|
+
const SKIP_NAMES = new Set(['node_modules', 'dist', '.astro', '.DS_Store', '.grove']);
|
|
46
|
+
// The registry is not in this list on purpose: shadcn installed the UI
|
|
47
|
+
// source into `src/`, so the consumer owns those files outright and never
|
|
48
|
+
// imports a registry package at runtime.
|
|
49
|
+
const GROVE_PACKAGES = ['@grove-dev/core', '@grove-dev/astro', '@grove-dev/cli'];
|
|
50
|
+
const PROJECT_SCRIPTS = {
|
|
51
|
+
dev: 'astro dev',
|
|
52
|
+
build: 'astro build',
|
|
53
|
+
check: 'astro check',
|
|
54
|
+
};
|
|
15
55
|
export function readCliVersion() {
|
|
16
56
|
const here = dirname(fileURLToPath(import.meta.url));
|
|
17
|
-
for (const candidate of [resolve(here,
|
|
57
|
+
for (const candidate of [resolve(here, 'package.json'), resolve(here, '../package.json')]) {
|
|
18
58
|
try {
|
|
19
59
|
const pkg = JSON.parse(requireText(candidate));
|
|
20
60
|
if (pkg.version)
|
|
@@ -24,31 +64,35 @@ export function readCliVersion() {
|
|
|
24
64
|
// Source and published layouts intentionally use different paths.
|
|
25
65
|
}
|
|
26
66
|
}
|
|
27
|
-
return
|
|
67
|
+
return '0.0.0-dev';
|
|
28
68
|
}
|
|
29
69
|
function requireText(path) {
|
|
30
70
|
// Synchronous version lookup happens once while constructing the CLI.
|
|
31
|
-
return globalThis.process.getBuiltinModule(
|
|
32
|
-
}
|
|
33
|
-
export function scaffoldSource() {
|
|
34
|
-
const here = dirname(fileURLToPath(import.meta.url));
|
|
35
|
-
const candidates = [resolve(here, "site"), resolve(here, "../../../apps/example")];
|
|
36
|
-
const found = candidates.find((candidate) => existsSync(resolve(candidate, "package.json")));
|
|
37
|
-
if (!found)
|
|
38
|
-
throw new Error("Grove site scaffold is missing. Reinstall @grove-dev/cli.");
|
|
39
|
-
return found;
|
|
71
|
+
return globalThis.process.getBuiltinModule('node:fs').readFileSync(path, 'utf8');
|
|
40
72
|
}
|
|
41
73
|
function titleCase(value) {
|
|
42
74
|
return value
|
|
43
|
-
.replace(/[-_]+/g,
|
|
75
|
+
.replace(/[-_]+/g, ' ')
|
|
44
76
|
.replace(/\b\w/g, (letter) => letter.toUpperCase())
|
|
45
77
|
.trim();
|
|
46
78
|
}
|
|
47
79
|
function packageName(value) {
|
|
48
|
-
return value
|
|
80
|
+
return (value
|
|
49
81
|
.toLowerCase()
|
|
50
|
-
.replace(/[^a-z0-9._-]+/g,
|
|
51
|
-
.replace(/^-+|-+$/g,
|
|
82
|
+
.replace(/[^a-z0-9._-]+/g, '-')
|
|
83
|
+
.replace(/^-+|-+$/g, '') || 'grove-directory');
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* `grove init` drives pnpm — for the shadcn `dlx` call, for the
|
|
87
|
+
* dependency install, and for the lockfile shadcn's package-manager
|
|
88
|
+
* detector reads. Check for it before writing anything.
|
|
89
|
+
*/
|
|
90
|
+
function requirePnpm() {
|
|
91
|
+
const probe = spawnSync('pnpm', ['--version'], { stdio: 'ignore' });
|
|
92
|
+
if (probe.error || probe.status !== 0) {
|
|
93
|
+
throw new Error('grove init needs pnpm on your PATH (it runs `pnpm dlx shadcn` and `pnpm install`).\n' +
|
|
94
|
+
'Install it with `npm install -g pnpm` or `corepack enable pnpm`, then run grove init again.');
|
|
95
|
+
}
|
|
52
96
|
}
|
|
53
97
|
async function ensureEmpty(targetDir) {
|
|
54
98
|
await mkdir(targetDir, { recursive: true });
|
|
@@ -57,39 +101,189 @@ async function ensureEmpty(targetDir) {
|
|
|
57
101
|
throw new Error(`${targetDir} is not empty. Choose a new directory.`);
|
|
58
102
|
}
|
|
59
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Default scaffold installer: the official shadcn CLI, pinned. The
|
|
106
|
+
* item path must be absolute — shadcn rejects relative local paths as
|
|
107
|
+
* unsafe. `--yes` skips the confirmation prompts; stdio is inherited
|
|
108
|
+
* so the user sees the package manager's install output.
|
|
109
|
+
*
|
|
110
|
+
* shadcn picks the package manager for the item's dependencies from
|
|
111
|
+
* the lockfile (or `packageManager` field) it finds in the project —
|
|
112
|
+
* neither exists in a fresh directory, and its `add` path has no
|
|
113
|
+
* user-agent fallback, so it would default to npm and leave a
|
|
114
|
+
* package-lock.json behind in a project the rest of this CLI drives
|
|
115
|
+
* with pnpm. An empty pnpm-lock.yaml is enough for the detector; pnpm
|
|
116
|
+
* itself accepts the empty file and replaces it with a real one.
|
|
117
|
+
*/
|
|
118
|
+
export async function installScaffoldWithShadcn({ target, itemPath, }) {
|
|
119
|
+
await writeFile(resolve(target, 'pnpm-lock.yaml'), '', { encoding: 'utf8', flag: 'wx' }).catch((err) => {
|
|
120
|
+
if (err.code !== 'EEXIST')
|
|
121
|
+
throw err;
|
|
122
|
+
});
|
|
123
|
+
await run('pnpm', ['dlx', `shadcn@${SHADCN_VERSION}`, 'add', itemPath, '--yes', '--cwd', target], target);
|
|
124
|
+
}
|
|
125
|
+
async function writeJson(path, value) {
|
|
126
|
+
await writeFile(path, `${JSON.stringify(value, null, 2)}\n`, 'utf8');
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Bootstrap a Grove project by installing the `@grove/default`
|
|
130
|
+
* registry scaffold. Returns the installed item so callers can report
|
|
131
|
+
* what landed.
|
|
132
|
+
*/
|
|
60
133
|
export async function initDirectory(targetDir, options = {}) {
|
|
61
|
-
const source = scaffoldSource();
|
|
62
134
|
const target = resolve(targetDir);
|
|
135
|
+
// 1. Never install over someone's work.
|
|
63
136
|
await ensureEmpty(target);
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
if (parts[0] === "data" && parts[1] === "generated")
|
|
72
|
-
return false;
|
|
73
|
-
if (parts[0] === "public" && GENERATED_PUBLIC_NAMES.has(parts[1] ?? "")) {
|
|
74
|
-
return false;
|
|
75
|
-
}
|
|
76
|
-
return true;
|
|
77
|
-
},
|
|
78
|
-
});
|
|
137
|
+
// 1b. And never leave half a project behind. `installScaffoldWithShadcn`
|
|
138
|
+
// shells out to pnpm; without it the run used to die partway through
|
|
139
|
+
// with `spawn pnpm ENOENT`, after package.json and friends were
|
|
140
|
+
// already on disk — so the obvious retry then failed `ensureEmpty`
|
|
141
|
+
// with "not empty" and the user had to clean up by hand.
|
|
142
|
+
if (options.installScaffold === undefined)
|
|
143
|
+
requirePnpm();
|
|
79
144
|
const version = options.version ?? readCliVersion();
|
|
80
|
-
const fallbackName = target.split(/[\\/]/).at(-1) ??
|
|
145
|
+
const fallbackName = target.split(/[\\/]/).at(-1) ?? 'grove-directory';
|
|
81
146
|
const rawName = options.projectName ?? fallbackName;
|
|
82
147
|
const projectName = packageName(rawName);
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
148
|
+
const installScaffold = options.installScaffold ?? installScaffoldWithShadcn;
|
|
149
|
+
// 2. package.json. Scripts are fixed here — registry items carry
|
|
150
|
+
// files and npm dependency names, not scripts. Dependencies are
|
|
151
|
+
// filled in by shadcn (step 4) and by us (step 5).
|
|
152
|
+
const packagePath = resolve(target, 'package.json');
|
|
153
|
+
await writeJson(packagePath, {
|
|
154
|
+
name: projectName,
|
|
155
|
+
type: 'module',
|
|
156
|
+
scripts: { ...PROJECT_SCRIPTS },
|
|
157
|
+
dependencies: {},
|
|
158
|
+
});
|
|
159
|
+
// 3a. tsconfig.json. Not shipped via the registry — everything the
|
|
160
|
+
// item writes lands under src/, but a tsconfig has to sit at the
|
|
161
|
+
// project root. The scaffold's own code relies on two settings
|
|
162
|
+
// Astro's default (when no tsconfig exists) doesn't set:
|
|
163
|
+
// "Bundler" resolution (registry components import package
|
|
164
|
+
// subpaths like `@grove-dev/astro/server` whose declaration file
|
|
165
|
+
// lives in the package's own src/) and the `@grove/generated/*`
|
|
166
|
+
// alias (so `astro check` resolves the JSON `prepareDirectory()`
|
|
167
|
+
// writes to `data/generated/`). The `@/*` alias is what shadcn
|
|
168
|
+
// reads to locate src/. `strict` is pinned off explicitly:
|
|
169
|
+
// Astro's `base` preset leaves it unset, which TypeScript 5
|
|
170
|
+
// treats as off and TypeScript 6 as on, and the scaffold's
|
|
171
|
+
// sources are checked against the former — a fresh project
|
|
172
|
+
// should type-check the same way whichever TypeScript the
|
|
173
|
+
// package manager resolves for `astro check`.
|
|
174
|
+
await writeFile(resolve(target, 'tsconfig.json'), `{
|
|
175
|
+
"extends": "astro/tsconfigs/base",
|
|
176
|
+
"compilerOptions": {
|
|
177
|
+
"strict": false,
|
|
178
|
+
"moduleResolution": "Bundler",
|
|
179
|
+
"allowImportingTsExtensions": true,
|
|
180
|
+
"types": ["node"],
|
|
181
|
+
"baseUrl": ".",
|
|
182
|
+
"paths": {
|
|
183
|
+
"@/*": ["./src/*"],
|
|
184
|
+
"@grove/generated/*": ["data/generated/*"]
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"include": [".astro/types.d.ts", "**/*"],
|
|
188
|
+
"exclude": ["dist"]
|
|
189
|
+
}
|
|
190
|
+
`, 'utf8');
|
|
191
|
+
// 3b. components.json — the shadcn project config. shadcn needs it
|
|
192
|
+
// to install anything; the `registries` entry is what makes
|
|
193
|
+
// `npx shadcn add @grove/<item>` resolve later.
|
|
194
|
+
await writeJson(resolve(target, 'components.json'), {
|
|
195
|
+
$schema: 'https://ui.shadcn.com/schema.json',
|
|
196
|
+
style: 'new-york',
|
|
197
|
+
rsc: false,
|
|
198
|
+
tsx: true,
|
|
199
|
+
tailwind: {
|
|
200
|
+
config: '',
|
|
201
|
+
css: 'src/styles/system.css',
|
|
202
|
+
baseColor: 'neutral',
|
|
203
|
+
cssVariables: true,
|
|
204
|
+
},
|
|
205
|
+
aliases: {
|
|
206
|
+
components: '@/components',
|
|
207
|
+
utils: '@/lib/utils',
|
|
208
|
+
ui: '@/components/ui',
|
|
209
|
+
lib: '@/lib',
|
|
210
|
+
hooks: '@/hooks',
|
|
211
|
+
},
|
|
212
|
+
registries: { [REGISTRY_NAMESPACE]: REGISTRY_URL_TEMPLATE },
|
|
213
|
+
});
|
|
214
|
+
// 3c. grove.config.ts. Project-specific, so the scaffold doesn't
|
|
215
|
+
// ship one — generate a fresh template with the project name.
|
|
216
|
+
await writeFile(resolve(target, 'grove.config.ts'), `import { defineConfig } from "@grove-dev/core";
|
|
217
|
+
|
|
218
|
+
export default defineConfig({
|
|
219
|
+
blueprint: "project-directory",
|
|
220
|
+
|
|
221
|
+
site: {
|
|
222
|
+
name: ${JSON.stringify(titleCase(rawName))},
|
|
223
|
+
tagline: "A Grove-powered directory.",
|
|
224
|
+
description: "",
|
|
225
|
+
url: "https://example.com",
|
|
226
|
+
},
|
|
227
|
+
|
|
228
|
+
nav: [
|
|
229
|
+
{ label: "Home", href: "/" },
|
|
230
|
+
{ label: "Browse", href: "/projects" },
|
|
231
|
+
{ label: "About", href: "/about" },
|
|
232
|
+
],
|
|
233
|
+
|
|
234
|
+
browse: {
|
|
235
|
+
facets: ["category", "stack", "platform", "license"],
|
|
236
|
+
},
|
|
237
|
+
|
|
238
|
+
theme: { radius: "soft", density: "comfortable", containerWidth: "72rem" },
|
|
239
|
+
});
|
|
240
|
+
`, 'utf8');
|
|
241
|
+
// 3d. astro.config.mjs. Without this the scaffold's Tailwind v4
|
|
242
|
+
// styles (`@import "tailwindcss"` in styles/system.css) never get
|
|
243
|
+
// processed — the Vite plugin has to be registered somewhere.
|
|
244
|
+
await writeFile(resolve(target, 'astro.config.mjs'), `// @ts-check
|
|
245
|
+
import { defineConfig } from "astro/config";
|
|
246
|
+
import tailwindcss from "@tailwindcss/vite";
|
|
247
|
+
import groveAstro from "@grove-dev/astro";
|
|
248
|
+
import { loadConfig } from "@grove-dev/core";
|
|
249
|
+
|
|
250
|
+
// \`site\` is the canonical URL the build uses for absolute links
|
|
251
|
+
// (sitemap, OpenGraph, canonical tags, JSON-LD). Read from
|
|
252
|
+
// grove.config.ts and overridable per build via SITE_URL.
|
|
253
|
+
const groveConfig = await loadConfig();
|
|
254
|
+
|
|
255
|
+
export default defineConfig({
|
|
256
|
+
site: process.env.SITE_URL || groveConfig.site.url,
|
|
257
|
+
trailingSlash: "ignore",
|
|
258
|
+
integrations: [groveAstro()],
|
|
259
|
+
vite: {
|
|
260
|
+
plugins: [tailwindcss()],
|
|
261
|
+
},
|
|
262
|
+
build: {
|
|
263
|
+
format: "directory",
|
|
264
|
+
},
|
|
265
|
+
});
|
|
266
|
+
`, 'utf8');
|
|
267
|
+
// 3e. Empty data/records/. `validateProject()` treats an ABSENT
|
|
268
|
+
// records directory as a hard error — deliberately — but a fresh
|
|
269
|
+
// scaffold with zero records is a supported starting state.
|
|
270
|
+
// Empty directories aren't tracked by git, hence the placeholder.
|
|
271
|
+
const recordsDir = resolve(target, 'data', 'records');
|
|
272
|
+
await mkdir(recordsDir, { recursive: true });
|
|
273
|
+
await writeFile(resolve(recordsDir, '.gitkeep'), '# Add one YAML file per record here — see /getting-started/first-record/.\n', 'utf8');
|
|
274
|
+
// 4. Install the scaffold item.
|
|
275
|
+
const itemPath = resolveBundledItemPath();
|
|
276
|
+
await installScaffold({ target, itemPath });
|
|
277
|
+
// 5. Grove's own packages, pinned to this CLI's version. Read-modify-
|
|
278
|
+
// write: shadcn rewrote package.json with the item's dependencies.
|
|
279
|
+
const pkg = JSON.parse(await readFile(packagePath, 'utf8'));
|
|
280
|
+
pkg.dependencies = { ...(pkg.dependencies ?? {}) };
|
|
281
|
+
for (const dep of GROVE_PACKAGES)
|
|
282
|
+
pkg.dependencies[dep] = `^${version}`;
|
|
283
|
+
await writeJson(packagePath, pkg);
|
|
284
|
+
// 6. Record what was installed for `grove update`.
|
|
285
|
+
const item = await loadItem(itemPath);
|
|
286
|
+
await writeLockfile(target, buildLockfile(item));
|
|
287
|
+
return { targetDir: target, projectName, installedScaffold: item };
|
|
94
288
|
}
|
|
95
289
|
//# sourceMappingURL=init.js.map
|
package/dist/init.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,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G,CAAC,YAAY,IAAI,EAAE,CAAC,EAAE,CAAC;IACnD,KAAK,MAAM,GAAG,IAAI,cAAc;QAAE,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,IAAI,OAAO,EAAE,CAAC;IACxE,MAAM,SAAS,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IAElC,mDAAmD;IACnD,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACtC,MAAM,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;IAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC;AACrE,CAAC"}
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grove-dev/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Grove CLI — scaffolds Grove-powered spaces and orchestrates @grove-dev/core commands.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"README.md"
|
|
43
43
|
],
|
|
44
44
|
"scripts": {
|
|
45
|
-
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json && node -e \"require('fs').copyFileSync('package.json','dist/package.json')\" && node
|
|
45
|
+
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json && node -e \"require('fs').copyFileSync('package.json','dist/package.json')\" && node -e \"require('fs').cpSync('../registry/dist/r','dist/r',{recursive:true})\"",
|
|
46
46
|
"check": "tsc -p tsconfig.json --noEmit",
|
|
47
47
|
"test": "cd ../.. && pnpm exec vitest run --project unit packages/cli",
|
|
48
48
|
"dev": "tsx src/index.ts --help"
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"yaml": "^2.6.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
+
"@grove-dev/registry": "workspace:*",
|
|
59
60
|
"tsx": "^4.23.0"
|
|
60
61
|
}
|
|
61
62
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "about",
|
|
4
|
+
"title": "About page",
|
|
5
|
+
"description": "The narrative about route — what the site is, how it's built from files, how to contribute — with a Markdown override via content/pages/about.md.",
|
|
6
|
+
"registryDependencies": [
|
|
7
|
+
"@grove/shell",
|
|
8
|
+
"@grove/ui"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "default/pages/about.astro",
|
|
13
|
+
"content": "---\nimport siteConfig from '@grove/generated/site-config.json';\nimport {\n getAboutPageSeo,\n getPageContentHtml,\n indexSlug,\n itemLabel,\n itemLabelPlural,\n} from '@grove-dev/astro/server';\n/**\n * About page — generic.\n *\n * A continuous narrative in three movements: what this site is →\n * how it's built (the file-first pipeline: source files → Grove →\n * multiple outputs → ongoing sync) → how to contribute. Prose\n * sections, not a stack of cards — the reading experience is the\n * point here.\n *\n * The copy is generic — references \"directory\", \"record\",\n * \"repository\" — so it works for any blueprint, and every dynamic\n * value (`siteConfig.tagline`, `siteConfig.repoUrl`, item labels)\n * flows from the site config.\n */\nimport BaseLayout from '../layouts/base-layout.astro';\nimport Container from '../layouts/container.astro';\nimport { buttonClass } from '../lib/classnames.ts';\n\nconst githubUrl = siteConfig.repoUrl;\nconst seo = getAboutPageSeo(siteConfig);\nconst slug = indexSlug();\nconst item = itemLabel();\nconst items = itemLabelPlural();\nconst pageContentHtml = getPageContentHtml('about');\n---\n\n<BaseLayout title={seo.title} description={seo.description} image={seo.image} jsonLd={seo.jsonLd} site={siteConfig}>\n <Container size=\"narrow\">\n <article class=\"py-12 sm:py-16\">\n <nav class=\"text-2xs text-muted-foreground\" aria-label=\"Breadcrumb\">\n <a href=\"/\" class=\"hover:text-foreground\">Home</a>\n <span class=\"mx-1.5 text-ink-300 dark:text-ink-700\">/</span>\n <span class=\"text-foreground\">About</span>\n </nav>\n\n {pageContentHtml ? (\n <section class=\"grove-prose mt-8\" set:html={pageContentHtml} />\n ) : (\n <>\n <header class=\"mt-5\">\n <span class=\"text-2xs font-medium uppercase tracking-wider text-muted-foreground\">\n About\n </span>\n <h1 class=\"mt-1 m-0 text-[1.75rem] sm:text-[2.25rem] font-semibold tracking-[-0.02em] leading-[1.1] text-foreground\">\n A directory that lives in files.\n </h1>\n <p class=\"mt-4 m-0 text-[1rem] sm:text-[1.0625rem] leading-relaxed text-foreground max-w-[62ch]\">\n {siteConfig.name} is a curated, health-aware directory of open-source\n {items} — and every listing you see here is a plain YAML file in a\n public repository. This website is one of the outputs generated from\n those files.\n </p>\n </header>\n\n <section class=\"mt-10\">\n <h2 class=\"m-0 text-[1.25rem] sm:text-[1.375rem] font-semibold tracking-tight text-foreground\">\n Why it exists\n </h2>\n <p class=\"mt-3 m-0 text-[0.9375rem] leading-relaxed text-foreground\">\n GitHub search and README lists optimize for the repository name and\n description. They rarely tell you whether a project is a real {item}\n or a demo, which stack it uses beyond the headline, how active it\n really is, or whether it has a clear license.\n </p>\n <p class=\"mt-3 m-0 text-[0.9375rem] leading-relaxed text-foreground\">\n Each entry here carries the metadata a developer actually needs\n before opening the repo: stack, platforms, license, activity and\n health signals, plus curated notes — best for, why listed, caveats.\n Everything links back to real, runnable source. No SEO spam, no\n affiliate farms, no broken links.\n </p>\n </section>\n\n <section class=\"mt-10\">\n <h2 class=\"m-0 text-[1.25rem] sm:text-[1.375rem] font-semibold tracking-tight text-foreground\">\n How it's built\n </h2>\n <p class=\"mt-3 m-0 text-[0.9375rem] leading-relaxed text-foreground\">\n The source of truth is a folder of files: one YAML record per\n {item}, taxonomy files for categories, stacks, platforms, and\n licenses, and Markdown for long-form notes. <a href=\"https://github.com/tortuvshin/grove\" class=\"font-medium underline decoration-border underline-offset-2 hover:decoration-ring\">Grove</a> validates\n those files, joins in synced GitHub metadata, and publishes them as\n multiple outputs — this website with its search and filters, a\n generated README, an <code class=\"font-mono text-[0.875em]\">llms.txt</code> index\n for machines, and sitemap/SEO data.\n </p>\n <p class=\"mt-3 m-0 text-[0.9375rem] leading-relaxed text-foreground\">\n Automation keeps the outputs current: weekly syncs refresh stars,\n activity, and contributor data, and every change to a source file\n rebuilds everything derived from it. There is no database and no\n server — the output is static HTML, and the content stays portable\n in files you can fork.\n </p>\n </section>\n\n <section class=\"mt-10\">\n <h2 class=\"m-0 text-[1.25rem] sm:text-[1.375rem] font-semibold tracking-tight text-foreground\">\n How to contribute\n </h2>\n <p class=\"mt-3 m-0 text-[0.9375rem] leading-relaxed text-foreground\">\n Because the content is files, contributing is a pull request: add a\n YAML record for a new {item}, fix a typo, or improve the metadata\n behind an existing listing. The <a href=\"/submit\" class=\"font-medium underline decoration-border underline-offset-2 hover:decoration-ring\">submit page</a> drafts\n the YAML for you from a repository URL, and every submission is\n reviewed against the curation bar before it lands.\n </p>\n </section>\n\n <section class=\"mt-10 flex flex-wrap items-center gap-3\">\n <a href={`/${slug}`} class={buttonClass(\"primary\", \"sm\")}>Browse the directory</a>\n {githubUrl && (\n <a\n href={githubUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n class={buttonClass(\"secondary\", \"sm\")}\n >\n View on GitHub\n </a>\n )}\n <a href=\"/submit\" class={buttonClass(\"ghost\", \"sm\")}>Submit a {item} →</a>\n </section>\n </>\n )}\n </article>\n </Container>\n</BaseLayout>\n",
|
|
14
|
+
"type": "registry:page",
|
|
15
|
+
"target": "~/src/pages/about.astro"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"version": "1.0.0"
|
|
20
|
+
},
|
|
21
|
+
"type": "registry:block"
|
|
22
|
+
}
|