Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tylercore/treg) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@tylercore/treg
Overview
What is Treg?
Treg is a CLI tool for setting up code quality, tooling, and project standards.
It injects an engineering immune system into your project.
When developers and AI collaborate under fast iteration, codebases tend to drift—introducing inconsistency and fragile workflows.
Treg restores balance and keeps your project clean, maintainable, and scalable.
It focuses on infrastructure setup (ESLint, Prettier, TypeScript), not application logic.
Features
Treg can configure:
- TypeScript
- ESLint
- Prettier / Oxfmt
- Jest / Vitest
- Husky git hooks
- AI rules guidance
These guardrails help maintain long‑term code health during fast iteration.
Quick Start
Initialize a project interactively:
npx @tylercore/treg initPreview changes:
npx @tylercore/treg init --dry-runCommands
Command Description
init Initialize project with interactive setup
add Add selected features
list Show supported frameworks and tools
Common Usage
Add lint and format:
npx @tylercore/treg add --features lint,formatAdd format with oxfmt:
npx @tylercore/treg add --features format --formatter oxfmtAdd test with vitest:
npx @tylercore/treg add --features test --test-runner vitestDefaults
Framework detection order:
nuxt -> next -> react -> vue -> svelte -> nodeDefault test runner:
vue/nuxt:vitest- others:
jest
Default formatter:
prettierAI Rules
Treg can update AI guidance files for development tools.
Tool File
Claude CLAUDE.md
Codex AGENTS.md
Gemini GEMINI.md
Behavior:
- only selected tools are updated
- missing files are created automatically
- updates occur in the repository root
Philosophy
Treg is intentionally minimal.
It does not generate application architecture.
It focuses only on establishing the engineering infrastructure that
keeps repositories healthy during rapid development.