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