RFC: Dependency Selector Syntax & npm query#564
Conversation
Co-authored-by: Tierney Cyren <[email protected]>
Co-authored-by: Jordan Harband <[email protected]>
…nflicts w/ new :attr()
| - `.` class selector | ||
| - `:` pseudo class selector |
There was a problem hiding this comment.
i still think these need to be named without the word "class".
| #### Example of an `Object`: | ||
| ```css | ||
| /* return dependencies that have a `scripts.test` containing `"tap"` */ | ||
| *:attr(:scripts([test~=tap])) |
There was a problem hiding this comment.
would be good to add an example with a quoted key as well
| #### Example of an `Array` Attribute Selection: | ||
| ```css | ||
| /* return dependencies that have a keyword that begins with "react" */ | ||
| *:attr(:keywords([item^="react"])) |
There was a problem hiding this comment.
it'd be ideal to pick something that can't visually be confused with an object key - pretty much anything that, as an object key, would be forced to be quoted, would be a clear indicator that "keywords" is an array instead of an object
|
It would be great to have Tab Completion on quires! [Should that also be an RFC in itself?] |
I would expect this to be a follow-up RFC and not part of the core feature RFC. |
Implemented Arborist `querySelectorAll` method that enables easier retrieval of installed packages using a css-selector-like syntax. It also includes a new command `npm query` that exposes that same logic to users of the npm cli. Ref: npm/rfcs#564
Implemented Arborist `querySelectorAll` method that enables easier retrieval of installed packages using a css-selector-like syntax. It also includes a new command `npm query` that exposes that same logic to users of the npm cli. Ref: npm/rfcs#564
Implemented Arborist `querySelectorAll` method that enables easier retrieval of installed packages using a css-selector-like syntax. It also includes a new command `npm query` that exposes that same logic to users of the npm cli. Ref: npm/rfcs#564
Implemented Arborist `querySelectorAll` method that enables easier retrieval of installed packages using a css-selector-like syntax. It also includes a new command `npm query` that exposes that same logic to users of the npm cli. Ref: npm/rfcs#564
Implemented Arborist `querySelectorAll` method that enables easier retrieval of installed packages using a css-selector-like syntax. It also includes a new command `npm query` that exposes that same logic to users of the npm cli. Ref: npm/rfcs#564
Implemented Arborist `querySelectorAll` method that enables easier retrieval of installed packages using a css-selector-like syntax. It also includes a new command `npm query` that exposes that same logic to users of the npm cli. Ref: npm/rfcs#564
Implemented Arborist `querySelectorAll` method that enables easier retrieval of installed packages using a css-selector-like syntax. It also includes a new command `npm query` that exposes that same logic to users of the npm cli. Ref: npm/rfcs#564
Implemented Arborist `querySelectorAll` method that enables easier retrieval of installed packages using a css-selector-like syntax. It also includes a new command `npm query` that exposes that same logic to users of the npm cli. Ref: npm/rfcs#564
|
|
Rendered RFC* Updated
Overview
.querySelectorAll()method toNodes returned fromArboristnpm query