https://github.com/m-thompson-code/import-analytics
https://github.com/m-thompson-code/import-analytics
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/m-thompson-code/import-analytics
- Owner: m-thompson-code
- Created: 2023-12-05T21:34:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-17T22:55:08.000Z (over 2 years ago)
- Last Synced: 2025-02-14T18:41:23.847Z (over 1 year ago)
- Language: TypeScript
- Size: 6.62 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# import-analytics
## How to Run
Library expects a `input.json` files at root of this directory [[schema]](./src/types.ts#20):
````ts
export interface Input {
/**
* Check repos for imports from library.
*/
library: {
/**
* Name of library:
*
* ```ts
* import { SomeImport } from 'name-of-library';
* ```
*/
name: string;
/**
* List of imports to check for.
*/
imports: string[];
};
/**
* Check repo for dependencies found in package.json (Optional).
*/
dependencies?: string[];
/**
* List of repos to check against and git options for each repo.
*/
repos: Repo[];
/**
* Default git options that apply to all repos. These options can be overridden.
*/
git: GitOptions;
}
````
```bash
npm run dev # build and run
# or
npm run build && npm run start # build and run
```