JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 52
  • Score
    100M100P100Q93400F
  • License MIT

Treg is a CLI tool that injects an engineering immune system into existing projects.

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

    npm
version npm
downloads License TypeScript

    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 init

    Preview changes:

    npx @tylercore/treg init --dry-run

    Commands

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

    Add format with oxfmt:

    npx @tylercore/treg add --features format --formatter oxfmt

    Add test with vitest:

    npx @tylercore/treg add --features test --test-runner vitest

    Defaults

    Framework detection order:

    nuxt -> next -> react -> vue -> svelte -> node

    Default test runner:

    • vue / nuxt: vitest
    • others: jest

    Default formatter:

    prettier

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