mirror of
https://github.com/jakejarvis/stanza.git
synced 2026-10-16 07:25:43 -04:00
- Rename `styling` → `ui` across the entire codebase (CATEGORIES array, docs, AGENTS.md, CLI tests, resolver, template tests, codemod runner); `ui` is `home: package` so shadcn installs into `packages/ui/` as a workspace dep rather than wiring directly into the app shell - Add `ui-shadcn-base` (Tailwind v4 / CSS-first, no Radix peer) and `ui-shadcn-radix` (Tailwind v4 + Radix primitives) with full per-framework template sets for Next.js and TanStack Start: `components.json`, `globals.css`, `postcss.config.mjs`, `theme-provider.tsx`, shared `Button` + `utils.ts`; light/dark logos inlined from svgl - Rename `styling-tailwind` → `ui-tailwind` to match the new category id; update its module definition to `category: "ui"` and `home: package` - Add four new codemod builtins with tests: `add-array-entry-in-call` (inserts an element into a named array argument of any `CallExpression`), `replace-import` (rewrites a specifier in an existing import declaration), `set-html-attributes` (sets attributes on an HTML/JSX element by tag name or selector), `set-tsconfig-paths` (merges `compilerOptions` entries into a `tsconfig.json` AST node); register all four in the builtins index and export from `@stanza/codemods` - Add `wrap-root-layout` builtin tests - Update registry.mdx, concepts.mdx, cli.mdx, getting-started.mdx, agents.mdx, index.mdx, AGENTS.md, README.md, TODO.md, and SKILL.md to reflect the category rename and new modules
37 lines
857 B
TypeScript
37 lines
857 B
TypeScript
export type { CodemodContext, Codemod, CodemodResult } from "./types";
|
|
|
|
// Re-export common ts-morph types + the SyntaxKind enum so CLI codemods
|
|
// don't need a direct ts-morph dep.
|
|
export type {
|
|
ExportAssignment,
|
|
ExportDeclaration,
|
|
ExportSpecifier,
|
|
ImportDeclaration,
|
|
JsxAttribute,
|
|
JsxOpeningElement,
|
|
Node,
|
|
Project,
|
|
SourceFile,
|
|
} from "ts-morph";
|
|
export { SyntaxKind } from "ts-morph";
|
|
|
|
export { openProject } from "./project";
|
|
|
|
export { addNamedImport, addDefaultImport, removeImport } from "./imports";
|
|
export type { NamedImportSpec } from "./imports";
|
|
|
|
export { addArrayElement, removeArrayElement } from "./arrays";
|
|
|
|
export {
|
|
readJson,
|
|
writeJson,
|
|
mergeJson,
|
|
setJsonPath,
|
|
unsetJsonPath,
|
|
addPackageDependency,
|
|
removePackageDependency,
|
|
addPackageScript,
|
|
} from "./json";
|
|
|
|
export { addEnvVar, removeEnvVar } from "./env";
|