Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-06-02chore: remove debug console.logs from changelog script (#4944)Luke Karrys
2022-05-10chore: update action secrets + bot info (#4878)nlf
* chore: update bot account and secrets for nodejs/node updates * chore: update bot account and secrets for npm/benchmarks triggers * chore: add npm CLI robot to mailmap and exclude from AUTHORS
2022-05-04chore: fix url in release-manager script (#4853)nlf
2022-05-03chore: gitignore __pycache__ directories in node_modules (#4842)nlf
2022-05-03chore: remove bot from authors (#4833)Ruy Adorno
Replaces: https://github.com/npm/cli/pull/4814 Co-authored-by: Gar <gar+gh@danger.computer> Co-authored-by: Gar <gar+gh@danger.computer>
2022-04-20chore(changelog): dont show commit body by default & add extra pr checkLuke Karrys
We don't usually include the commit body in the release notes, so this removes it from the output by default. It's now behind the `--format=long` flag, and the command can be rerun with that in case we need the full commit body sometimes. Also do an extra check for PR references in titles, since squashed PRs don't always include the `associatedPullRequests`.
2022-04-14chore: fix reading latest release from changelogLuke Karrys
2022-04-14chore: add release manager script (#4716)Luke Karrys
2022-04-14chore: make git dirty check more strictLuke Karrys
2022-04-14chore: refactor smoke-testsLuke Karrys
2022-04-14chore: add DEPENDENCIES.md (#4710)Gar
This adds a script to generate dependency information for the npm cli. The dependency info shows all of the packages in npm that the npm-cli team themselves manage.
2022-04-06chore(changelog): reformat to gh release style user links when reading (#4676)Luke Karrys
2022-04-06chore: rm unused filesLuke Karrys
2022-04-06chore(docs): move scripts and refactorLuke Karrys
All docs related scripts are now located in the docs workspace
2022-04-03chore: add option for changelog to write to file (#4662)Luke Karrys
2022-03-30deps: @npmcli/template-oss@3.2.2 (#4639)Luke Karrys
- add some basic tests for docs - make dockhand script work on windows - cleanup main CI to match template-oss - add a git status check for cli ci tests - use resetdeps for ci steps
2022-03-24fix: 100% coverage in tests (#4607)Gar
* fix: 100% coverage in tests * Removed dead code in `lib/utils/usage.js`. * Removed dead code in `lib/base-command.js`. * Removed "load-all" test, we currently have 100% coverage and new PRs without tests will be rejected if they don't add coverage for new files. * Removed `check-coverage` script as a separate command. * Removed separate coverage test in ci.yml. * Removed `coverage` flag from tap config, the default is already to enforce 100% coverage. Removed a tiny bit of dead code resulting from this * fix: clean up usage output Removed usage lib, rolled logic into base-command.js Cleaned up usage output to be less redundant
2022-03-15chore: improve the changelog script (#4561)nlf
* adds automatic group headings * handles multi-line commit messages better * drops support for multi-line markdown output * adds `--release-notes` flag that omits linkifying usernames to allow the 'Contributors' section in release notes to be populated correctly
2022-03-15fix: omit bots from authors (#4547)Gar
2022-02-24docs: auto-generate npm usage for each command (#4450)Wassim Chegham
Closes #4189 * docs: auto-generate synopsis sections * feat: improve usage auto-generation' * chore: auto-generate npm usage for each command * docs: print default usage when usage is missing * docs: add special case for npx * fix: remove optional chaining
2022-02-22fix: remove html comments from man entries (#4457)Gar
2022-01-07fix(scripts): more complete commit message formatting (#4216)nlf
2022-01-07chore: refactor changelog script to not require annotated commits (#4214)nlf
2021-11-08chore: eslint@8.0.0 @npmcli/eslint-config@2.0.0Gar
* Update to eslint@8 and and @npmcli/eslint-config@2.0.0 * Remove eslint-plugin-node. Also remove an unused script that was failing linting. We don't use the update-dist-tags script anymore as part of our release process. PR-URL: https://github.com/npm/cli/pull/4016 Credit: @wraithgar Close: #4016 Reviewed-by: @lukekarrys
2021-11-05chore: update to latest eslint and linting rulesGar
This brings us in line with the rest of the linting rules we are wanting to use on the npm cli repos. There were several hundred over-length lines and instead of editing them all by hand I piped the failing file through `prettier` and back through `eslint` just to save some time and energy. This means there may be some quirks in the linting those files have, but we can fix those if we see them and they bother us. Other than that there were about 50 lines that are legitimately over-length, all are now explicitly overridden. Many are tests that could be snapshots. PR-URL: https://github.com/npm/cli/pull/3995 Credit: @wraithgar Close: #3995 Reviewed-by: @lukekarrys
2021-09-13fix(install.sh): don't remove old npm firstGar
The install script will gracefully fail if things don't work. This is especially important for versions of npm that won't work in your current node version. PR-URL: https://github.com/npm/cli/pull/3748 Credit: @wraithgar Close: #3748 Reviewed-by: @isaacs
2021-08-17chore(ci): check that docs are up to date in ciisaacs
When we accidentally edit the auto-generated portions of the docs, this will catch the error and cause CI to fail. Later phase automated safety check that the early-stage human commenting in the last commit also addresses. Re: #3654 Re: #3630 PR-URL: https://github.com/npm/cli/pull/3655 Credit: @isaacs Close: #3655 Reviewed-by: @nlf
2021-08-17chore(docs): add more 'autogenerated' commentsisaacs
This should prevent the kind of thing we've seen where people edit the generated docs, as in #3654 and #3630, and provide them with a helpful pointer so they put the config documentation changes in the right place.
2021-07-13fix(bundle-and-ignore): case sensitivity cleanupGar
Two files got into node_modules in a way that changes if you are on a system that is case sensitive. One was a readme that is now properly being ignored, the other is a typescript file that is upper case in some instances PR-URL: https://github.com/npm/cli/pull/3540 Credit: @wraithgar Close: #3540 Reviewed-by: @ruyadorno
2021-06-11chore(libnpmdiff): added as workspaceRuy Adorno
- Setup ./packages/* as workspaces - Moved source from: https://github.com/npm/libnpmdiff to ./packages/libnpmdiff - Added CI target for workspaces Relates to: https://github.com/npm/statusboard/issues/362 PR-URL: https://github.com/npm/cli/pull/3386 Credit: @ruyadorno Close: #3386 Reviewed-by: @wraithgar
2021-06-10chore: check less stuff into node_modulesisaacs
We bundle our deps, but we don't need to bundle docs, changelogs, editorconfigs, test coverage reports, .github workflow definitions, lint configurations, and all the rest, which we never use. This cuts about 10% off of our publish artifact file size. ``` $ ls -laF npm-7.16.0-*.tgz -rw-r--r-- 1 isaacs staff 7174497 Jun 3 13:01 npm-7.16.0-release-next.tgz -rw-r--r-- 1 isaacs staff 6782377 Jun 3 13:00 npm-7.16.0-trim-node-modules.tgz $ ls -laF npm-7.16.0-*.tar -rw-r--r-- 1 isaacs staff 19020288 Jun 3 13:01 npm-7.16.0-release-next.tar -rw-r--r-- 1 isaacs staff 17474048 Jun 3 13:00 npm-7.16.0-trim-node-modules.tar ``` PR-URL: https://github.com/npm/cli/pull/3362 Credit: @isaacs Close: #3362 Reviewed-by: @nlf
2021-06-10fix(linting): add scripts, docs, smoke-testsGar
There is code in all of these places we control so it should be linted PR-URL: https://github.com/npm/cli/pull/3367 Credit: @wraithgar Close: #3367 Reviewed-by: @isaacs
2021-06-01chore: manage docs as a workspaceRuy Adorno
- Add `./docs` as a workspace - Reinstate `./docs/package.json` to manage docs deps - Ignore `docs/content` markdown source folder from published tarball - Tweaked `make docs` to use `npm run` to run docs build step - Tweaked "bundle and gitignore" script to ignore symlinks in nm folder - Removed outdated `package.json` comment Relates to: https://github.com/npm/statusboard/issues/362 PR-URL: https://github.com/npm/cli/pull/3342 Credit: @ruyadorno Close: #3342 Reviewed-by: @wraithgar
2021-05-14fix(docs): autogenerate config docs for commandsisaacs
Add a script and Makefile rule to build the "Configuration" section for all command documentation based on the command classes' `params` list. Also correct several minor problems in the documentation, and add `params` listings for commands that were lacking them, to match the existing documentation and/or behavior within the code. PR-URL: https://github.com/npm/cli/pull/3243 Credit: @isaacs Close: #3243 Reviewed-by: @wraithgar
2021-05-10fix(packages): locale-agnostic string sortingisaacs
This adds the 'en' locale to all instances of String.localeCompare within the CLI codebase. Tests added for the cases where we're sorting arbitrary user-generated data. The tests rely on the fact that 'ch' sorts after 'd' in the `'sk'` locale, but ahead of `'d'` in the `'en'` locale. To ensure that this is the default behavior if no locale is specified, `LC_ALL=sk` is set in the test environment. Other instances of `localeCompare` sort data that the cli controls, so no tests were added. Re: https://github.com/npm/cli/issues/2829 PR-URL: https://github.com/npm/cli/pull/3203 Credit: @isaacs Close: #3203 Reviewed-by: @ruyadorno
2021-03-18Auto-generate 'npm help 7 config' from actual definitionsisaacs
2021-02-05pass -q to curl calls to disable user .curlrc filesnlf
PR-URL: https://github.com/npm/cli/pull/2613 Credit: @nlf Close: #2613 Reviewed-by: @ljharb, @wraithgar
2020-11-06update the install.sh script to not rely on makenlf
PR-URL: https://github.com/npm/cli/pull/2121 Credit: @nlf Close: #2121 Reviewed-by: @isaacs
2020-11-04doc: updates to changelog generation scriptisaacs
Less manual effort paper cuts.
2020-11-04changelog: automatically backtickify scoped pkg namesisaacs
2020-10-27tools: properly remove pycache in release scriptMyles Borins
Looks like the latest version of node-gyp has the .pyc in a __pycache__ directory rather than with the other python files. There is currently a non-exiting error when running the release script due to this. PR-URL: https://github.com/npm/cli/pull/2049 Credit: @MylesBorins Close: #2049 Reviewed-by: @nlf
2020-10-23docs: change command links to `/commands`Edward Thomson
These links now reflect the reality of the filesystem and their paths.
2020-10-23docs: use frontmatter for man page generationEdward Thomson
Update the `docs-build.js` script to parse the name, man page section, and description out of the frontmatter and use that for the generated man page. This helps avoid repetition between the frontmatter section and the body of the page itself. Update the docs pages themselves to remove the H1 (title) and H2 (description). Finally, ensure that the frontmatter begins in column 0 on each page.
2020-10-16Remove some outdated and confusing scriptsisaacs
2020-10-03chore: remove 'dist-tags' step from cli release processisaacs/fix-publish-tagisaacs
2020-08-18move resetdeps script to a bash scriptisaacs
2020-08-04script to check that all bundled deps are actually usedisaacs
2020-08-04gitignore package-lock.json files in node_modulesisaacs
2020-07-29script to bundle and gitignore deps as appropriateisaacs
2020-05-01chore: remove pyc files from tarballRuy Adorno
Fix #1037