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
2021-11-04chore: refactor commandsGar
This is the first phase of refactoring the internal structure of the npm commands to set us up for future changes. This iteration changes the function signature of `exec` for all the commands to be a async (no more callbacks), and also groups all the commands into their own subdirectory. It also removes the Proxy `npm.commands` object, in favor of an `npm.cmd` and `npm.exec` function that breaks up the two things that proxy was doing. Namely, getting to the attributes of a given command (`npm.cmd` now does this), and actually running the command `npm.exec` does this. PR-URL: https://github.com/npm/cli/pull/3959 Credit: @wraithgar Close: #3959 Reviewed-by: @lukekarrys
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-04-14feat(bugs): fall back to email if providedYash Singh
If a bugs url is not provided, but a `mailto` is, then that is used. PR-URL: https://github.com/npm/cli/pull/3052 Credit: @Yash-Singh1 Close: #3052 Reviewed-by: @wraithgar
2021-03-18feat(help): refactor npm help/help-searchGar
Lots of dead code removed thanks to streamlining of logic. `npm help` `npm <command>` and `npm help-search` are all now separated concerns, handling their own use cases. `help` calls `help-search` as a last resort, but `npm <command>` no longer tries to wind its way through to `help-search` just to get the basic npm usage displayed. The `did you mean` output has been expanded. It now always suggests top level commands, scripts, and bins, and suggests them in the way they should be called. PR-URL: https://github.com/npm/cli/pull/2859 Credit: @wraithgar Close: #2859 Reviewed-by: @ruyadorno
2021-03-09fix(usage): clean up usage declarationsGar
Small refactor of commands to allow usage to be more programmatically generated, leading us in the direction of more tighly coupling each command to the params it accepts. PR-URL: https://github.com/npm/cli/pull/2821 Credit: @wraithgar Close: #2821 Reviewed-by: @isaacs
2021-03-05fix(npm) pass npm context everywhereGar
Instead of files randomly requiring the npm singleton, we pass it where it needs to go so that tests don't need to do so much require mocking everywhere PR-URL: https://github.com/npm/cli/pull/2772 Credit: @wraithgar Close: #2772 Reviewed-by: @ruyadorno
2021-02-25chore(refactor): promisify completion scriptsGar
We also removed the "none" script because we handle a missing script just fine. There is no need to put an empty one in PR-URL: https://github.com/npm/cli/pull/2759 Credit: @wraithgar Close: #2759 Reviewed-by: @nlf
2020-10-23update lint rules to match @npmcli/arboristisaacs
2020-07-29lint the lib folderisaacs
2020-07-08add completion module for 'no completion possible'isaacs
2020-07-08rm fetch-package-metadata, refactor bugs/repo/docsisaacs
- remove the now-outdated 'fetch-package-metadata' module. - refactor the `bugs`, `repo`, and `docs` commands for consistency. - add unit tests for refactored commands and new util module. - update `browser` config handling to honor `browser = false` in config files, along with command line flag. (previously only cli config was honored.) - slight improvement to `open-url` output when browser not used.
2018-05-12open: handle missing open bin error (#20582)Benjamin E. Coe
PR-URL: https://github.com/npm/npm/pull/20582 Credit: @bcoe Reviewed-By: @zkat
2017-03-25extract: support minified packumentsRebecca Turner
Credit: @iarna Reviewed-By: @zkat
2016-04-28lib: Refactor summary usage to use utils/usageDaijiro Wachi
This also helps by DRYing up our lists of command aliases. Credit: @watilde Reviewed-By: @iarna PR-URL: https://github.com/npm/npm/pull/12485
2015-06-26src: make the npm source comply with `standard`Forrest L Norvell
This is a huge set of mostly mechanical changes. Going forward, all changes to the npm source base are expected to comply with `standard`, and it's been integrated into the test suite to enforce that. There are a few notes below about specific classes of changes that need to be handled specially for npm's code base. standard: "Expected error to be handled." `standard` only expects errors spelled "err" to be handled. `npm-registry-mock` never actually invokes its callback with an error, so in some cases I just changed it to be spelled "er" and called it good. standard: "Expected a "break" statement before 'case'." This behavior is actually on purpose, and I don't feel like rewriting the affected code right now (or, you know, ever). So I added code comments disabling the checks in the three applicable changes. standard: "x is a function." Rebinding functions created via declarations (as opposed to expressions) is a no-no? PR-URL: https://github.com/npm/npm/pull/8668
2015-06-26update usage for all commandssmikes
put @ inside <@scope> simplify completion usage add [@<version>] to edit remove extraneous from install
2015-06-26We should link to www.npmjs.org not npmjs.orgRebecca Turner
2015-06-26Cleanup package metadata access commands to use fetch-package-metadataRebecca Turner
2015-06-26Update github specific code to be git host agnosticRebecca Turner
2015-02-27completion: remove registry calls to -/shortForrest L Norvell
2014-10-31style tweaksForrest L Norvell
2014-10-31use new npm-registry-client APIForrest L Norvell
Makes a *lot* clearer when the CLI is doing something with auth implications, by explicitly pass auth to registry client. Moves lookup of credentials into mapRegistryToURI, which makes the code more consistent.
2014-07-17use npm-package-arg instead of splitForrest L Norvell
2014-07-02use --scope to map scope to registryForrest L Norvell
2014-07-01relative URLS for working non-root registry URLSForrest L Norvell
2014-06-13use the new URL-based npm-registry-client interfaceForrest L Norvell
2014-02-02Typo, "err" variable name should be "er".Andrew Horton
2013-12-23Allow npm bugs for the current directoryEvan Lucas
If you are in your local module, you might want to visit the repository without knowing the repo name or typing the name in. This adds `npm bugs .` and `npm bugs` so that the npm-bugs-command behaves like `npm install`, `npm docs`, `npm home`, and `npm repo.` Also fixed the parsing of `./` (instead of `.`). Closes #4204.
2013-04-29remove exec.js, use child_process.execFileRobert Kowalski
Fixes #3312
2012-09-13Use opener to open web pagesisaacs
cc @domenic
2012-06-07Use npm-registry-client depisaacs
2012-06-07Replace the log util with npmlog moduleisaacs
This feels so good. lib/utils/log.js is the worst kind of glue code that keeps the npm project from being properly abstracted into independent pieces. In the process, also cleaned up a lot of unproductive logging, and made the npm-debug.log generated on errors be a bit more easy to read.
2012-06-05Open bug/doc urls properly on windowsisaacs
2012-03-31Don't die on an empty repo url. Fixes #2313.Martin Cooper
2011-12-12indent errorisaacs
2011-10-15Avoid accidentally opening npm.js with WSHisaacs
2011-10-13Standardize the 'bugs' field in package.json.Martin Cooper
2011-10-03Only open github issues page if it's a github repoisaacs
2011-10-03New 'bugs' command.Martin Cooper