Skip to content

refactor: complete monorepo with extension in packages/#372

Merged
recca0120 merged 1 commit into
mainfrom
refactor/extract-phpunit-workspace-package
Feb 21, 2026
Merged

refactor: complete monorepo with extension in packages/#372
recca0120 merged 1 commit into
mainfrom
refactor/extract-phpunit-workspace-package

Conversation

@recca0120

Copy link
Copy Markdown
Owner

Summary

  • Extract PHPUnit domain layer into packages/phpunit/ workspace package
  • Move VS Code extension into packages/extension/ workspace package
  • Root package.json now serves only as workspace orchestrator
  • Each package owns its own tsconfig.json, vitest.config.ts, and biome.json
  • Remove unnecessary root configs (tsconfig.json, vitest.config.ts, biome.json, qodana.yaml, vsc-extension-quickstart.md)
  • Update CI workflows (tests.yml, e2e.yml, publish.yml) for new paths
  • Update .vscode/launch.json and tasks.json for new structure

Test plan

  • pnpm install succeeds
  • pnpm -r run typecheck passes for both packages
  • pnpm -r run lint passes for both packages
  • pnpm -r run test — phpunit (561 tests), extension (344 tests) all pass
  • node packages/extension/esbuild.mjs builds successfully
  • vsce package --no-dependencies produces valid VSIX
  • CI workflows pass on GitHub Actions

@recca0120 recca0120 force-pushed the refactor/extract-phpunit-workspace-package branch 6 times, most recently from af00b46 to edefb75 Compare February 21, 2026 09:18
@codecov

codecov Bot commented Feb 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.13%. Comparing base (d7c6158) to head (a4b16f1).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #372      +/-   ##
==========================================
- Coverage   93.45%   91.13%   -2.32%     
==========================================
  Files          85       85              
  Lines        4184     4184              
  Branches      918      918              
==========================================
- Hits         3910     3813      -97     
- Misses        246      329      +83     
- Partials       28       42      +14     
Flag Coverage Δ
unittests 91.13% <100.00%> (-2.32%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

- Extract PHPUnit core (parser, runner, test output, tree-sitter) into
  `packages/phpunit` as `@vscode-phpunit/phpunit`
- Move extension into `packages/extension`, consuming phpunit as dependency
- esbuild bundles extension into single file; tsup builds phpunit (ESM+CJS)
- tree-sitter WASM files copied from node_modules during build
- Migrate all unit tests to Vitest across both packages
- Update CI workflows (tests, e2e, publish) for monorepo structure
- Add per-package biome configs and lefthook integration
- Bump extension version to 3.9.14
@recca0120 recca0120 force-pushed the refactor/extract-phpunit-workspace-package branch from 2449292 to a4b16f1 Compare February 21, 2026 11:36
@recca0120 recca0120 merged commit a4b16f1 into main Feb 21, 2026
13 of 14 checks passed
@recca0120 recca0120 deleted the refactor/extract-phpunit-workspace-package branch February 21, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant