Repository navigation
chore: Add husky, prettier, dependabot, and root .gitignore - #9
Merged
Merged
Conversation
Final additive piece of the apex-parser-aligned modernisation (#6). None of this changes runtime behaviour. - Husky + lint-staged pre-commit: ESLint+Prettier on staged .ts in npm/, prettier-plugin-java on staged .java in jvm/. Reformatted the two existing hand-written Java files to establish a baseline. - Per-package .prettierrc files (npm: trailingComma=es5, arrowParens= avoid; jvm: prettier-plugin-java). - Dependabot config covering /, /npm, /jvm, and github-actions, with minor/patch grouping. Pinned ignores for @types/node (tracks Node LTS, not current major) and JUnit (5.x, since the build targets <release>8</release>). - Root .gitignore for editor / node_modules state. - npm/.gitignore: also ignore *.tgz from npm pack. - Root package.json: prepare:husky, init now runs npm ci first, node engines bumped to match the npm side.
Without this, npm install at root picks up the user's global ~/.npmrc (Certinia internal artifactory) and bakes those URLs into the root package-lock.json. CI then fails trying to fetch tarballs from a registry it can't reach. The per-package npm/.npmrc already had this override; this just adds the equivalent at the new root install introduced by the husky tooling.
Contributor
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
nawforce
approved these changes
Apr 26, 2026
27 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Final additive piece of the apex-parser-aligned modernisation tracked in #6. No runtime behaviour changes.
.tsinnpm/;prettier-plugin-javaon staged.javainjvm/. Reformatted the two existing hand-written Java files to establish a baseline (no logic changes)..prettierrc:npmusestrailingComma=es5, arrowParens=avoid;jvmloadsprettier-plugin-java..github/dependabot.yml: weekly updates with minor/patch grouping for/,/npm,/jvm, and github-actions. Pinned ignores for:@types/nodemajor bumps (tracks Node LTS declared inengines.node, not current Node major).org.junit.jupitermajor bumps (JUnit 6 needs Java 17; build targets<release>8</release>)..gitignore: covers.metals/,.vscode/,.idea/,node_modules/.npm/.gitignore: also ignore*.tgzfromnpm pack.package.json:prepare: "husky",initnow runsnpm cifirst so root devDeps install (and the husky hook activates) on fresh clones; node engines bumped to^20.19.0 || ^22.13.0 || >=24to match the npm package.Test plan
rm -rf npm/{node_modules,dist,src/antlr} jvm/target && npm run init && npm run build— green