Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/anthonyshort/component-trace

Track down dependencies
https://github.com/anthonyshort/component-trace

Last synced: 24 days ago
JSON representation

Track down dependencies

Awesome Lists containing this project

README

        

# component-trace

Search a directory and see if any of the components depend on something. It
checks the `dependencies` keys and the `local` array.

```
npm install -g component-trace
```

## Usage

```
component trace
```

Example:

```
component trace component/emitter
```

Output:

```
overlay @ /apps/project/components/segmentio-overlay/component.json
toggle @ /apps/project/components/segmentio-toggle/component.json
```

## Notes

Skips `node_modules` directories.

## Why

I needed to do some refactoring. This is quicker than searching by hand.