mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
chore: rename vibe-rules to ruler
This commit is contained in:
5
.changeset/chatty-trams-joke.md
Normal file
5
.changeset/chatty-trams-joke.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"create-better-t-stack": patch
|
||||
---
|
||||
|
||||
rename vibe-rules to ruler
|
||||
@@ -135,7 +135,7 @@ export const ADDON_COMPATIBILITY: Record<Addons, readonly Frontend[]> = {
|
||||
turborepo: [],
|
||||
starlight: [],
|
||||
ultracite: [],
|
||||
"vibe-rules": [],
|
||||
"ruler": [],
|
||||
oxlint: [],
|
||||
fumadocs: [],
|
||||
none: [],
|
||||
|
||||
@@ -539,7 +539,7 @@ export async function setupAddonsTemplate(
|
||||
for (const addon of context.addons) {
|
||||
if (addon === "none") continue;
|
||||
|
||||
if (addon === "vibe-rules") continue;
|
||||
if (addon === "ruler") continue;
|
||||
|
||||
let addonSrcDir = path.join(PKG_ROOT, `templates/addons/${addon}`);
|
||||
let addonDestDir = projectDir;
|
||||
|
||||
@@ -10,7 +10,7 @@ import { setupFumadocs } from "./fumadocs-setup";
|
||||
import { setupStarlight } from "./starlight-setup";
|
||||
import { setupTauri } from "./tauri-setup";
|
||||
import { setupUltracite } from "./ultracite-setup";
|
||||
import { setupVibeRules } from "./vibe-rules-setup";
|
||||
import { setupVibeRules } from "./ruler-setup";
|
||||
import { addPwaToViteConfig } from "./vite-pwa-setup";
|
||||
|
||||
export async function setupAddons(config: ProjectConfig, isAddCommand = false) {
|
||||
@@ -87,7 +87,7 @@ ${pc.cyan("Docs:")} ${pc.underline("https://turborepo.com/docs")}
|
||||
await setupStarlight(config);
|
||||
}
|
||||
|
||||
if (addons.includes("vibe-rules")) {
|
||||
if (addons.includes("ruler")) {
|
||||
await setupVibeRules(config);
|
||||
}
|
||||
if (addons.includes("fumadocs")) {
|
||||
|
||||
@@ -20,7 +20,7 @@ export async function setupVibeRules(config: ProjectConfig) {
|
||||
PKG_ROOT,
|
||||
"templates",
|
||||
"addons",
|
||||
"vibe-rules",
|
||||
"ruler",
|
||||
".ruler",
|
||||
);
|
||||
|
||||
@@ -42,8 +42,8 @@ function getAddonDisplay(addon: Addons): { label: string; hint: string } {
|
||||
label = "Ultracite";
|
||||
hint = "Zero-config Biome preset with AI integration";
|
||||
break;
|
||||
case "vibe-rules":
|
||||
label = "vibe-rules";
|
||||
case "ruler":
|
||||
label = "Ruler";
|
||||
hint = "Install and apply BTS rules to editors";
|
||||
break;
|
||||
case "husky":
|
||||
@@ -69,7 +69,7 @@ function getAddonDisplay(addon: Addons): { label: string; hint: string } {
|
||||
const ADDON_GROUPS = {
|
||||
Documentation: ["starlight", "fumadocs"],
|
||||
Linting: ["biome", "oxlint", "ultracite"],
|
||||
Other: ["vibe-rules", "turborepo", "pwa", "tauri", "husky"],
|
||||
Other: ["ruler", "turborepo", "pwa", "tauri", "husky"],
|
||||
};
|
||||
|
||||
export async function getAddonsChoice(
|
||||
|
||||
@@ -43,7 +43,7 @@ export const AddonsSchema = z
|
||||
"starlight",
|
||||
"biome",
|
||||
"husky",
|
||||
"vibe-rules",
|
||||
"ruler",
|
||||
"turborepo",
|
||||
"fumadocs",
|
||||
"ultracite",
|
||||
|
||||
@@ -106,7 +106,7 @@ add
|
||||
Available addons you can add:
|
||||
- **Documentation**: Starlight, Fumadocs
|
||||
- **Linting**: Biome, Oxlint, Ultracite
|
||||
- **Other**: vibe-rules, Turborepo, PWA, Tauri, Husky
|
||||
- **Other**: Ruler, Turborepo, PWA, Tauri, Husky
|
||||
|
||||
You can also add web deployment configurations like Cloudflare Workers support.
|
||||
|
||||
|
||||
@@ -228,7 +228,7 @@ Additional features to include:
|
||||
- `turborepo`: Turborepo monorepo setup
|
||||
- `ultracite`: Ultracite configuration
|
||||
- `oxlint`: Oxlint fast linting
|
||||
- `vibe-rules`: Vibe Rules configuration
|
||||
- `ruler`: Centralize your AI rules with Ruler
|
||||
|
||||
```bash
|
||||
create-better-t-stack --addons pwa biome husky
|
||||
|
||||
@@ -255,7 +255,7 @@ See the full list in the [CLI Reference](/docs/cli). Key flags:
|
||||
- `--orm`: drizzle, prisma, mongoose, none
|
||||
- `--api`: trpc, orpc, none
|
||||
- `--addons`: turborepo, pwa, tauri, biome, husky, starlight, none
|
||||
- `--addons`: turborepo, pwa, tauri, biome, husky, starlight, fumadocs, ultracite, oxlint, vibe-rules, none
|
||||
- `--addons`: turborepo, pwa, tauri, biome, husky, starlight, fumadocs, ultracite, oxlint, ruler, none
|
||||
- `--examples`: todo, ai, none
|
||||
|
||||
## Next Steps
|
||||
|
||||
@@ -1004,7 +1004,7 @@ const generateCommand = (stackState: StackState): string => {
|
||||
"ultracite",
|
||||
"fumadocs",
|
||||
"oxlint",
|
||||
"vibe-rules",
|
||||
"ruler",
|
||||
].includes(addon),
|
||||
);
|
||||
if (validAddons.length > 0) {
|
||||
|
||||
@@ -470,9 +470,9 @@ export const TECH_OPTIONS: Record<
|
||||
default: false,
|
||||
},
|
||||
{
|
||||
id: "vibe-rules",
|
||||
name: "Vibe Rules",
|
||||
description: "Install and apply BTS rules to editors",
|
||||
id: "ruler",
|
||||
name: "Ruler",
|
||||
description: "Centralize your AI rules",
|
||||
icon: "",
|
||||
color: "from-violet-500 to-violet-700",
|
||||
default: false,
|
||||
|
||||
Reference in New Issue
Block a user