-
Notifications
You must be signed in to change notification settings - Fork 14
Update README #464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update README #464
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,6 +57,10 @@ npm run lint # run lint on source code and tests | |
| npm run test # run tests | ||
| npm run coverage # run tests and serves coverage reports from localhost:8081 | ||
| npm run docs # output documentation to `./docs` directory | ||
|
|
||
| npm version <patch|minor|major> --ignore-scripts=false # bump version (see note below) | ||
|
|
||
| ``` | ||
|
|
||
| > **Note:** `.npmrc` sets `ignore-scripts=true` for supply-chain safety, so lifecycle scripts (including husky's hook installation) do not run automatically on `npm install`. Run `npm run prepare` once after cloning to enable the `pre-push` lint hook. | ||
| > **Note:** `.npmrc` sets `ignore-scripts=true` for supply-chain safety, so lifecycle scripts do not run automatically. This affects two workflows: | ||
| > - **husky git hooks:** run `npm run prepare` once after cloning to enable the `pre-push` lint hook. | ||
| > - **`npm version`:** the `version` lifecycle script (which regenerates `src/version.js`, docs, and the `./dist` bundle and stages them into the release commit) is skipped. Always pass `--ignore-scripts=false` when bumping the version so these artifacts are regenerated. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: This is accurate and matches what |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: The
--ignore-scripts=falseflag overrides the.npmrcsetting globally for that invocation, which is exactly right. However, the inline comment# bump version (see note below)is the only forward-reference to the note in the code block — the note itself now appears immediately after, so the comment still works. One minor readability improvement: consider shortening the comment to just# see note belowsince "bump version" is already conveyed by the command itself, reducing redundancy.