Skip to content

build: generate TypeScript ANTLR parser workspace#2572

Open
barry166 wants to merge 1 commit into
GoogleChrome:mainfrom
barry166:codex/ts-antlr-workspace
Open

build: generate TypeScript ANTLR parser workspace#2572
barry166 wants to merge 1 commit into
GoogleChrome:mainfrom
barry166:codex/ts-antlr-workspace

Conversation

@barry166

Copy link
Copy Markdown

Summary

  • add a generated TypeScript ANTLR workspace for FeatureSearch
  • update antlr-gen to emit TypeScript parser output alongside the existing Go parser
  • keep generated parser artifacts ignored while preserving the workspace package metadata

Related issue

Fixes #716

Verification

  • ANTLR_JAR=/tmp/webstatus-antlr/antlr-4.13.2-complete.jar make antlr-gen
  • npm run test -w @webstatus.dev/feature-search-antlr
  • npx prettier --check package.json package-lock.json lib/gen/antlrv4/ts-antlrv4/package.json
  • git diff --check

Notes

This PR was AI-assisted and manually reviewed before submission. The full frontend test suite was not run because this change only wires generated workspace metadata and the ANTLR generation target.

The client-side search validation work needs a generated TypeScript ANTLR workspace. This adds the workspace metadata, wires antlr-gen to emit TypeScript output alongside the existing Go parser, and keeps generated parser artifacts out of git while retaining a package-level smoke test for generated files.

Constraint: Existing generation target keeps parser output generated rather than checked in

Rejected: Commit generated TypeScript parser files | existing lib/gen ignore policy keeps generated parser output out of source control

Confidence: high

Scope-risk: narrow

Directive: Keep FeatureSearch generated source out of git unless the repository changes its generated-code policy

Tested: ANTLR_JAR=/tmp/webstatus-antlr/antlr-4.13.2-complete.jar make antlr-gen

Tested: npm run test -w @webstatus.dev/feature-search-antlr

Tested: npx prettier --check package.json package-lock.json lib/gen/antlrv4/ts-antlrv4/package.json

Tested: git diff --check

Not-tested: Full frontend test suite
@google-cla

google-cla Bot commented Jun 27, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

[ENHANCEMENT] Create a new generated npm workspace for typescript ANTLR generated code

1 participant