Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdvanes/drep
Deduplicate RTKQ EndPoints
https://github.com/mdvanes/drep
Last synced: 3 days ago
JSON representation
Deduplicate RTKQ EndPoints
- Host: GitHub
- URL: https://github.com/mdvanes/drep
- Owner: mdvanes
- Created: 2024-05-17T08:38:54.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-21T11:45:20.000Z (6 months ago)
- Last Synced: 2024-10-30T18:18:45.430Z (15 days ago)
- Language: TypeScript
- Homepage:
- Size: 195 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DREP
Deduplicate RTKQ EndPoints
When creating Redux Toolkit Query (RTKQ) endpoints with rtk-query-codegen-openapi, it is possible to have duplicate endpoint names from different schemas. Drep will run a check and fail if there are duplicates. It is possible to add endpoint names to a .drepignore file. Those endpoint names will not fail the run, but will still be listed as "ignored".
Requires an openapi-config.ts in de root of directory.
[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/@mdworld/drep.svg)](https://npmjs.org/package/@mdworld/drep)
[![Downloads/week](https://img.shields.io/npm/dw/@mdworld/drep.svg)](https://npmjs.org/package/@mdworld/drep)- [Usage](#usage)
- [Commands](#commands)# Usage
```sh-session
$ npm i -D @mdworld/drep
$ npx drep run
running command...
...
```# Commands
- [`drep run`](#drep-hello-person)
- [`drep help [COMMAND]`](#drep-help-command)## `drep run`
Find duplicate Redux Toolkit Query endpoints
```
USAGE
$ drep runDESCRIPTION
Find duplicate Redux Toolkit Query endpointsEXAMPLES
$ drep run
Found 2 duplicates
```_See code: [src/commands/run.ts](https://github.com/mdvanes/drep/blob/v0.0.0/src/commands/run.ts)_
## `drep help [COMMAND]`
Display help for drep.
```
USAGE
$ drep help [COMMAND...] [-n]ARGUMENTS
COMMAND... Command to show help for.FLAGS
-n, --nested-commands Include all nested commands in the output.DESCRIPTION
Display help for drep.
```_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.22/src/commands/help.ts)_
# Development
```
npm run build && ./bin/run.js run
npm publish --access=public
```