Skip to content

praaatap/Gdit

Repository files navigation

gdit-repo

Monorepo managed with Turborepo + pnpm.

Workspace

  • apps/web - Next.js app
  • apps/docs - Next.js docs app
  • apps/gdit.site - Vite docs app
  • apps/Gdit - gdit CLI package (published to npm)
  • packages/ui - shared UI package
  • packages/eslint-config - shared ESLint config
  • packages/typescript-config - shared TS config

Local development

Install dependencies:

pnpm install

Run all dev tasks:

pnpm dev

Run monorepo verification (lint + typecheck + build + test):

pnpm verify

CI/CD

CI (.github/workflows/ci.yml)

Runs on every PR and on pushes to main:

  • pnpm install --frozen-lockfile
  • pnpm lint
  • pnpm check-types
  • pnpm build
  • pnpm test

Publish (.github/workflows/publish.yml)

Runs on push to main (and manual dispatch):

  1. Installs dependencies
  2. Runs pnpm verify
  3. Publishes only non-private workspace packages whose local version differs from npm

Publish logic is implemented in:

  • scripts/ci/publish-changed-packages.mjs

Required GitHub secrets

  • NPM_TOKEN - npm automation token with publish permission.

Optional Turbo remote cache in GitHub Actions

If you use Vercel Remote Cache, add:

  • TURBO_TOKEN
  • TURBO_TEAM

Then expose them in workflows as environment variables.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors