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-04-14chore: make sure to build markdown docs for all commands as part of the docs ↵nlf
target
2022-04-14chore: fix Makefile for building markdown docsnlf
2022-04-14chore: remove deprecated configs from MakefileLuke Karrys
2022-04-14chore: add test-all to makefileLuke Karrys
2022-04-06chore(docs): move scripts and refactorLuke Karrys
All docs related scripts are now located in the docs workspace
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-17chore: fix unary operator error in makefilenlf
2022-03-17chore: point to commands properly when making docsGar
2021-08-24chore: update config snapshot when manually making docsisaacs
The better to avoid having to do patches like 771a1cbf7. PR-URL: https://github.com/npm/cli/pull/3664 Credit: @isaacs Close: #3664 Reviewed-by: @wraithgar
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-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-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-03-26test: skip smoke tests coverage checkRuy Adorno
2021-03-26add smoke testsRuy Adorno
Lightweight smoke test suite that runs common commands so that we can also have a holistic check during CI. PR-URL: https://github.com/npm/cli/pull/2959 Credit: @ruyadorno Close: #2959 Reviewed-by: @nlf
2021-03-18Auto-generate 'npm help 7 config' from actual definitionsisaacs
2020-12-18Remove docs-clean from the publish make targetisaacs/faster-make-publish-no-docs-cleanisaacs
PR-URL: https://github.com/npm/cli/pull/2357 Credit: @isaacs Close: #2357 Reviewed-by: @nlf
2020-10-30chore: cleanup makefilenlf
- fix prune target - fix ci build - run rebuild after install PR-URL: https://github.com/npm/cli/pull/2068 Credit: @nlf Close: #2068 Reviewed-by: @ruyadorno
2020-10-23Rebuild minimal doc set on package.json changesisaacs
There's only a few with the @VERSION@ tag in them, so it's excessive to rebuild our entire set of docs every time package.json is touched, since this means redundantly rebuilding docs as part of every release.
2020-10-23Merge docs deps with main projectisaacs
This also reduces the publish file size rather considerably.
2020-10-23docs: use "dockhand" for static generationEdward Thomson
Drop Gatsby, use a simplified custom static site generator that uses GFM and a template for extremely lightweight docs.
2020-10-23docs: change command links to `/commands`Edward Thomson
These links now reflect the reality of the filesystem and their paths.
2020-08-04Get 'make htmldocs' workingisaacs
There's still a task pending to get it actually up to date with non-conflicting peer deps and everything updated to remove deprecated and outdated packages. But at least it builds at all now.
2020-07-31Add 'npm exec', port npx to use it directlyisaacs
This removes libnpx, and adds a new command, 'npm exec', which implements the functionality. As of this change going live, we are dropping support for the standalone top-level package 'npx'. Not all of the functionality of the old version of npx is maintained. The shell fallback functionality is dropped. It's insecure, and not something we want to support or encourage. If anyone wants it, they can hack up their .bashrc file themselves. --no-install is not supported. If the package is not found locally, it is installed in a predictable location in the cache, rather than failing. This is something we might want to review, as automatically installing in the case of misspellings may be a security footgun. --ignore-existing is dropped. Existing packages are always given priority. --quiet or -q can be accomplished by using the --silent npm option, so it's also dropped. --npm option is dropped. npx will always use the npm that it ships with. --node-arg is dropped. There are other ways to set node options via environment variables in the Node.js versions we support. --always-spawn is dropped. npx will always spawn a child process to execute commands. The --shell option can be accomplished by using the --script-shell npm option. --version and --help are just passed through to npm. As an added bonus, I noticed that the files in `bin/` were not getting run. So now we have full coverage for npm-cli.js and npx-cli.js. PR-URL: https://github.com/npm/cli/pull/1588 Credit: @isaacs Close: #1588 Reviewed-by: @ruyadorno
2019-12-03makefile: fix docs target typoRichard Lau
A few references to the `doc` target were not updated to `docs` in https://github.com/npm/cli/pull/274 and resulted in `make release` not building the docs. PR-URL: https://github.com/npm/cli/pull/546 Credit: @richardlau Close: #546 Reviewed-by: @mikemimik
2019-11-05doc: Move @VERSION@ for html docs into gatsbyisaacs
2019-11-05docs: migrate existing docs to gatsbyclaudiahdz
- chore(docs): remove html from docs build - feat(docs): migrate new Gatsby site to cli/docs - chore(docs): fix docs url path - chore(docs): add new build doc step - chore(docs): add static linking - chore(docs): add npm favicon - chore(docs): update files for tests - chore(docs): make relative paths absolute - chore(docs): fix routing on docs dependant tests - chore(docs): add prepublishOnly docs building step - chore(docs): add docs/public to .gitignore - chore(docs): rename dot json markdown files with hyphen names - chore(docs): clean package.json - chore(docs): highlight scripts in list - chore(docs): add strong styles - chore(docs): fix .json links on markdown - Added copy to the features page - Added an install page (copied from existing online docs) - Added a FeatureLink component to components/links.js - feat(docs): replace docs sh script with node - chore(docs): fix docs building process - chore(docs): docs folder cleanup PR-URL: https://github.com/npm/cli/pull/274 Credit: @claudiahdz Close: #274 Reviewed-by: @ruyadorno
2018-05-04makefile: call cache clean with --forceJérémy Lal
PR-URL: https://github.com/npm/npm/pull/20398 Credit: @kapouer Reviewed-By: @iarna
2018-03-09makefile: dont call destructive 'uninstall' on clean (#16540)Enrico Weigelt
The 'clean' rule calls 'uninstall', which attemts ***destructive*** operation in the host system and fails if run as unprivileged user. PR-URL: https://github.com/npm/npm/pull/16540 Credit: @metux Reviewed-By: @iarna Reviewed-By: @zkat
2017-08-17makefile: fix doc build tools dependenciesEnrico Weigelt, metux IT consult
The build tools for the documentation need to be built/installed before the documents, even with parallel builds. Make has a simple mechanism which was made exactly for that: target dependencies. PR-URL: https://github.com/npm/npm/pull/16550 Credit: @metux Reviewed-By: @iarna
2017-07-11npx: bundle npx with npm itselfKat Marchán
npx is an npm package runner with a bunch of nice features. While it is also available on the npm registry as `npx`, it's the sort of thing that's better off being bundles with npm itself. Fixes: #6053 PR-URL: https://github.com/npm/npm/pull/17685 Credit: @zkat Reviewed-By: @iarna
2017-07-11selfinstall: Fix self install in Makefile and install.shRebecca Turner
We were doing `npm install -g` on `make install` and in the `install.sh` bootstrapper, which now makes a symlink. This updates it to go back to creating a global copy. Fixes: #17554 Fixes: #17377 Fixes: #16916 Credit: @iarna Reviewed-By: @zkat PR-URL: https://github.com/npm/npm/pull/17626
2017-05-26make: stop saving marked-man and prune stuff during buildKat Marchán
2017-04-28cli: replace cli.js with bin/npm-cli.js and remove cli.js (#12096)Daijiro Wachi
* scripts: replace cli.js with npm-cli.js * cli: remove unused file cli.js * docs: replace cli.js with bin/npm-cli.js PR-URL: https://github.com/npm/npm/pull/12096 Credit: @watilde Reviewed-By: @zkat
2017-04-15npm: Add timing diagnostics on --loglevel=timingRebecca Turner
2016-03-31makefile: add doc-clean to `make publish`Daijiro Wachi
PR-URL: https://github.com/npm/npm/pull/12146 Credit: @watilde Reviewed-By: @zkat
2016-02-23build: Make sure ls on a clean repo works w/o errorRebecca Turner
2015-12-18src: always install in npm in legacy modeForrest L Norvell
Also, clean out the docs and prune the tree before making a release tarball, to keep as much cruft as possible out of the release tarball. PR-URL: https://github.com/npm/npm/pull/10798 Credit: @othiym23
2015-09-09doc: remove misleading API documentationForrest L Norvell
The API is awkward, brittle, and frequently counterintuitive. Having it documented sets an unrealistic expectation of it being a supported / encouraged thing for developers outside the team to use. Until we have an API we should stand behind, having it be undocumented is actually a net win because people won't be misled into thinking they're gonna have a good time by using it.
2015-08-21doc: stop building HTML partialsisaacs
This reverts commit 8b58ad09b719295461167a34f666c5aa4d6e26f2. As it turned out, those partial docs aren't actually used by the http://docs.npmjs.com site, so there's no sense slowing down the build. PR-URL: https://github.com/npm/npm/pull/9201
2015-05-22doc: use a preversion script to update AUTHORSForrest L Norvell
2015-05-01Makefile: update AUTHORS before publishForrest L Norvell
2015-01-30If AUTHORS doesn't change, don't complain.Forrest L Norvell
2015-01-30Add an NPMOPTS variable to toplevel installAria Stewart
This allows make install from a script to override userconfig in particular
2015-01-24add script for updating AUTHORS fileKenan Yildirim
2014-10-08write builtin config on any global npm installisaacs
This is literally how it's always *supposed* to have been working. Yet, mysteriously, it has not been.
2014-09-30doc: build partial html content as well as full-baked pagesisaacs
The better to docs.npmjs.com for great good
2014-09-11s/ronn/marked-man/gisaacs
2014-08-15build: explicitly push to a branchForrest L Norvell
2014-08-15Add 'make tag' to tag current release as latestisaacs