chore: rename vibe-rules to ruler

This commit is contained in:
Aman Varshney
2025-08-13 18:31:59 +05:30
parent 5c2c4193ee
commit 0da814ac8d
12 changed files with 21 additions and 16 deletions

View File

@@ -0,0 +1,5 @@
---
"create-better-t-stack": patch
---
rename vibe-rules to ruler

View File

@@ -135,7 +135,7 @@ export const ADDON_COMPATIBILITY: Record<Addons, readonly Frontend[]> = {
turborepo: [],
starlight: [],
ultracite: [],
"vibe-rules": [],
"ruler": [],
oxlint: [],
fumadocs: [],
none: [],

View File

@@ -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;

View File

@@ -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")) {

View File

@@ -20,7 +20,7 @@ export async function setupVibeRules(config: ProjectConfig) {
PKG_ROOT,
"templates",
"addons",
"vibe-rules",
"ruler",
".ruler",
);

View File

@@ -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(

View File

@@ -43,7 +43,7 @@ export const AddonsSchema = z
"starlight",
"biome",
"husky",
"vibe-rules",
"ruler",
"turborepo",
"fumadocs",
"ultracite",

View File

@@ -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.

View File

@@ -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

View File

@@ -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

View File

@@ -1004,7 +1004,7 @@ const generateCommand = (stackState: StackState): string => {
"ultracite",
"fumadocs",
"oxlint",
"vibe-rules",
"ruler",
].includes(addon),
);
if (validAddons.length > 0) {

View File

@@ -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,