-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreadie.json
More file actions
66 lines (66 loc) · 2.92 KB
/
readie.json
File metadata and controls
66 lines (66 loc) · 2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"$schema": "https://unpkg.com/readie/schemas/readie.schema.json",
"version": "1",
"title": "Readie",
"description": "Developer-first CLI for generating polished, consistent README files from a simple config.",
"includeTableOfContents": true,
"features": [
"Generate a single project README or many READMEs across a workspace",
"Schema-backed configuration with editor autocomplete and validation",
"Composable sections for installation, quick start, commands, flags, and more",
"Supports custom markdown sections, badges, and project-specific content",
"Easy onboarding with starter config generation",
"Dry-run and strict workspace options for safe large-scale updates"
],
"prerequisites": [
"Node.js 18 or later",
"npm, pnpm, or yarn",
"A project with a `readie.json` config file"
],
"manualInstallation": [
"",
"```bash\nnpm install -g readie\n```",
"",
"You can also run it without global install via `npx readie`."
],
"quickStart": "Create a starter config and generate your README in minutes:\n\n```bash\n# 1) Initialize a config\nnpx readie init\n\n# 2) Generate README.md from readie.json\nnpx readie\n```\n\nFor monorepos/workspaces:\n\n```bash\nnpx readie generate:workspace --root ./packages --config-name readie.json\n```\n\nThis workflow helps teams keep README files consistent while still allowing per-project customization.",
"usage": [
"Create a config file with `npx readie init`.",
"Run `npx readie` (or `npx readie generate`) to generate one README.",
"Use `npx readie generate:workspace --root ./packages` to generate for multiple packages.",
"Use `--dry-run` to preview changes and `--strict` to fail CI on generation errors.",
"Extend generated docs with rich markdown via `quickStart`, `customSections`, and `footer`.",
"Use placeholders in top-level strings of `readie.global.json`: `{{title}}`, `{{packageName}}`, and `{{packageNameEncoded}}`.",
"```json\n{\n \"banner\": \"<h1 align=\\\"center\\\">{{title}}</h1>\",\n \"footer\": \"https://example.com?ref={{packageNameEncoded}}\"\n}\n```",
"```bash\n# Single project\nnpx readie --config ./readie.json\n\n# Workspace with package filtering\nnpx readie generate:workspace --root ./packages --package ui --package api --dry-run\n```"
],
"commands": [
{
"name": "readie",
"description": "Generate a README from the local readie.json (default command)."
},
{
"name": "readie generate",
"description": "Explicit single-project generation command."
},
{
"name": "readie generate:workspace",
"description": "Generate READMEs for multiple projects in a workspace."
},
{
"name": "readie init",
"description": "Create a starter readie.json in the current directory."
}
],
"globalFlags": [
{
"flag": "--help, -h",
"description": "Show command help."
},
{
"flag": "--config, -c",
"description": "Set a custom config path for supported commands."
}
],
"docsLink": "https://github.com/readie-cli/readie"
}