Skip to content

chore(*): remove global grunt-cli postinstall - #2301

Merged
ChronosSF merged 2 commits into
masterfrom
sstoychev/remove-global-grunt-postinstall
Nov 17, 2026
Merged

ChronosSF merged 2 commits into
masterfrom
sstoychev/remove-global-grunt-postinstall

Conversation

@ChronosSF

Copy link
Copy Markdown
Member

The postinstall script ran npm install -g grunt-cli on every npm install — including when this repository is installed as a dependency of another project, where a global install is an unwanted side effect.

The local grunt dev dependency already provides the grunt binary (node_modules/.bin/grunt), so nothing needs to be installed globally:

  • package.json: the postinstall script is removed
  • CI and publish workflows call npm run build instead of a bare grunt build
  • README and CONTRIBUTING use npm run build / npx grunt verify

.travis.yml still has a bare grunt build; it is left untouched since Travis is no longer used for this repo.

Verified locally on a clean clone: npm ci, npm run build (1039 files in dist/) and npx grunt hint all pass without a global grunt-cli.

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code
  • This PR includes API docs for newly added methods/properties
  • This PR includes general feature table updates in the root README.MD
  • This PR contains breaking changes
  • This PR includes behavioral changes and the feature specification has been updated with them

🤖 Generated with Claude Code

The postinstall script ran `npm install -g grunt-cli` on every install,
including when the repository is consumed as a dependency. The local
`grunt` package already ships the `grunt` binary, so the build runs
through npm scripts instead and nothing is installed globally.

- CI and publish workflows call `npm run build`
- README and CONTRIBUTING use `npm run build` / `npx grunt verify`

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain, with the global Grunt installation removed and project-local build and verification commands consistently documented and used.

No open issues 🎉

What changed in this PR

This pull request removes the global grunt-cli installation side effect and updates CI and documentation to use locally installed Grunt tooling.

Changes:

  • Removed the root postinstall script that installed grunt-cli globally.
  • Updated GitHub Actions workflows and README instructions to use npm run build.
  • Updated contributor verification instructions to use npx grunt verify.
  • Regeneration of package-lock.json is requested because its root metadata still indicates an install script.
File Description
README.md Updates the documented build command to use the project-local npm build script.
package.json Removes the global Grunt CLI postinstall hook while retaining the local build script.
.github/​workflows/​npm-publish.yml Runs the project build through npm run build before publishing.
.github/​workflows/​node.js.yml Runs the CI build through npm run build.
.github/​CONTRIBUTING.md Updates contributor verification instructions to use the local Grunt binary through npx.

Review effort: Lite

The [ID14] show/hide details test waited a fixed 500ms after clicking,
which equals the slideToggle duration, so on slower CI runners the
timer could fire before the animation's final frame and the file
container was not yet hidden. Wait on the element's fx queue promise
instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage is 84.599% — sstoychev/remove-global-grunt-postinstall into master. No base build found for master.

@ChronosSF
ChronosSF merged commit 026d3ff into master Nov 17, 2026
5 checks passed
@ChronosSF
ChronosSF deleted the sstoychev/remove-global-grunt-postinstall branch November 17, 2026 14:11
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.

3 participants