@meui-creative/tooling
v1.2.0
Published
Shared toolchain for Meui Creative projects: the `meui` CLI (tpc, CI gates, checks), plus prettier, oxlint, TypeScript and lefthook configs.
Readme
@meui-creative/tooling
The shared toolchain for Meui Creative projects: one dev dependency instead of a copied tpc.ts,
hook script and lint config in every repo. Updating every project is bun update @meui-creative/tooling.
What's inside
| Part | What |
| -------------------------- | ------------------------------------------------------------------------------------------ |
| meui CLI | tpc, ci, format, lint, typecheck, check, commit-msg, knip, hooks, sync |
| configs/prettier.mjs | Prettier + import sorting |
| configs/oxlint.json | type-aware oxlint rules (React Compiler, promises, exhaustive switch, LazyMotion) |
| configs/tsconfig.json | TypeScript 7 base for Next.js |
| configs/lefthook.yml | git hooks: format + lint staged files, typecheck, checks, Conventional Commits |
| .github/workflows/ci.yml | reusable CI: meui ci |
Prettier, oxlint, tsgolint, lefthook and knip are dependencies of this package; the CLI runs them from
here, so a project doesn't install them. TypeScript is a peer: next build resolves it from the
project, so the project keeps typescript@7 itself.
Use in a project
bun add -D @meui-creative/tooling typescript@7// package.json
"scripts": {
"tpc": "meui tpc",
"lint": "meui lint",
"knip": "meui knip",
"prepare": "meui hooks && meui sync || echo 'meui: hooks or sync skipped'"
}// tsconfig.json — paths, include, exclude and tsBuildInfoFile stay in the project
{
"extends": "@meui-creative/tooling/tsconfig.json",
"compilerOptions": { "paths": { "@/*": ["./src/*"] } },
}// .oxlintrc.json
{
"extends": ["./node_modules/@meui-creative/tooling/configs/oxlint.json"],
"ignorePatterns": [".next/**"],
}// .prettierrc.mjs
export { default } from '@meui-creative/tooling/prettier'# lefthook.yml
extends:
- node_modules/@meui-creative/tooling/configs/lefthook.yml# .github/workflows/ci.yml
jobs:
check:
uses: meui-creative/tooling/.github/workflows/ci.yml@v1meui-boilerplate ships all of this already.
Commands
meui tpc— format, typecheck, checks, lint with fixes. Human UI, always exits 0.meui tpc --ci— the same, plain output, exits 1 on failure. For agents and scripts.meui ci— check mode (nothing rewritten) pluspayload-types.tsfreshness when the project hasgenerate:types. What the CI workflow runs.meui check— no barrel files insrc/components|hooks|actions|lib; paths in git match the disk's letter case (macOS forgives a case-only rename that breaks the Linux build).
Shared files (meui sync)
shared/ holds what every project has in common and the CLI writes into the project:
| Source in shared/ | Written to | How |
| ---------------------- | -------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| AGENTS.md | AGENTS.md | replaces the block between the meui:shared markers |
| claude-settings.json | .claude/settings.json | merges plugins, marketplaces, denied tools; removes retired ask rules; keeps the project's own entries |
| docs/… | docs/structure.md, docs/README.md, docs/patterns/* | overwritten, with a "managed" banner |
Projects run it from prepare (meui hooks && meui sync), so bun install and bun update
@meui-creative/tooling keep them current. A project whose AGENTS.md has no markers yet is skipped
with a hint (the meui:migrate skill sets it up once). Output is formatted with the shared prettier
config, so sync and meui tpc never fight over a file.
Releasing
- Change, run
bun run check, bumpversioninpackage.json. npm publish --access public, commit, push.- Move the
v1tag to the new commit (git tag -f v1 && git push -f origin v1) so projects' CI picks up the workflow. A breaking change getsv2.
