Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thescientist13/npm-query-registry-only-deps-rfc-demo

Test bench repo for npm RRFC issue #593
https://github.com/thescientist13/npm-query-registry-only-deps-rfc-demo

npm

Last synced: 7 days ago
JSON representation

Test bench repo for npm RRFC issue #593

Awesome Lists containing this project

README

        

# npm-query-registry-only-deps-rfc-demo

## Overview

Test repo for npm [RFC for Registry Only Deps](https://github.com/npm/rfcs/pull/593/) and testing with a locally linked version of npm with [`npm query`](https://github.com/npm/cli/pull/5000) command.

> `npm query` [RFC for reference](https://github.com/npm/rfcs/pull/564/).

It comes pre-installed with these dependencies, so that `query` can be tested in order to come up with an appropriate API and recommendation for the RFC.
```json
{
"...": "",

"dependencies": {
"@babel/cli": "^7.4.0",
"eslint": "git+https://github.com/eslint/eslint.git"
}
}
```

## Testing

1. Clone the [npm CLI repo](https://github.com/npm/cli/) and [follow these steps](https://github.com/npm/cli/blob/latest/CONTRIBUTING.md#development) to get it running locally
1. Run `npm . link`
1. Clone [this repo](https://github.com/thescientist13/npm-query-tarball-test) and run `npm ci`

You should now be able to run the `query` command in this repo, e.g.
```sh
$ npm query ":root > *"
```