Skip to content

Commit

Permalink
Feat() Add code quality badges
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p committed Jan 29, 2022
1 parent e05c395 commit c17bea2
Show file tree
Hide file tree
Showing 29 changed files with 91 additions and 87 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<a href="https://github.com/adrien2p/medusa-extender/issues"><img src="https://img.shields.io/github/issues/adrien2p/medusa-extender?style=flat-square" alt="issues" height="18"></a>
<a href="https://www.npmjs.com/package/medusa-extender"><img src="https://img.shields.io/npm/dm/medusa-extender?style=flat-square" alt="download" height="18"></a>
<img src="./assets/coverage/badge-statements.svg" onerror="if (this.src != './media/coverage/badge-statements.svg') this.src = './media/coverage/badge-statements.svg';" alt="coverage" height="18">
<img src="https://api.codiga.io/project/30833/score/svg" alt="code quality" height="18">
<img src="https://api.codiga.io/project/30833/status/svg" alt="code grade" height="18">
<a href="https://github.com/adrien2p/medusa-extender/blob/main/LICENSE"><img src="https://img.shields.io/github/license/adrien2p/medusa-extender?style=flat-square" alt="licence" height="18"></a>

</div>
Expand Down
2 changes: 2 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ medusa-extender / [Exports](modules.md)
<a href="https://github.com/adrien2p/medusa-extender/issues"><img src="https://img.shields.io/github/issues/adrien2p/medusa-extender?style=flat-square" alt="issues" height="18"></a>
<a href="https://www.npmjs.com/package/medusa-extender"><img src="https://img.shields.io/npm/dm/medusa-extender?style=flat-square" alt="download" height="18"></a>
<img src="./assets/coverage/badge-statements.svg" onerror="if (this.src != './media/coverage/badge-statements.svg') this.src = './media/coverage/badge-statements.svg';" alt="coverage" height="18">
<img src="https://api.codiga.io/project/30833/score/svg" alt="code quality" height="18">
<img src="https://api.codiga.io/project/30833/status/svg" alt="code grade" height="18">
<a href="https://github.com/adrien2p/medusa-extender/blob/main/LICENSE"><img src="https://img.shields.io/github/license/adrien2p/medusa-extender?style=flat-square" alt="licence" height="18"></a>

</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

#### Defined in

[src/decorators/onMedusaEntityEvent.decorator.ts:42](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/onMedusaEntityEvent.decorator.ts#L42)
[src/decorators/onMedusaEntityEvent.decorator.ts:42](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/onMedusaEntityEvent.decorator.ts#L42)

## Properties

Expand All @@ -55,7 +55,7 @@

#### Defined in

[src/decorators/onMedusaEntityEvent.decorator.ts:40](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/onMedusaEntityEvent.decorator.ts#L40)
[src/decorators/onMedusaEntityEvent.decorator.ts:40](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/onMedusaEntityEvent.decorator.ts#L40)

___

Expand All @@ -65,7 +65,7 @@ ___

#### Defined in

[src/decorators/onMedusaEntityEvent.decorator.ts:39](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/onMedusaEntityEvent.decorator.ts#L39)
[src/decorators/onMedusaEntityEvent.decorator.ts:39](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/onMedusaEntityEvent.decorator.ts#L39)

## Accessors

Expand All @@ -79,7 +79,7 @@ ___

#### Defined in

[src/decorators/onMedusaEntityEvent.decorator.ts:50](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/onMedusaEntityEvent.decorator.ts#L50)
[src/decorators/onMedusaEntityEvent.decorator.ts:50](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/onMedusaEntityEvent.decorator.ts#L50)

___

Expand All @@ -93,7 +93,7 @@ ___

#### Defined in

[src/decorators/onMedusaEntityEvent.decorator.ts:46](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/onMedusaEntityEvent.decorator.ts#L46)
[src/decorators/onMedusaEntityEvent.decorator.ts:46](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/onMedusaEntityEvent.decorator.ts#L46)

## Methods

Expand All @@ -120,7 +120,7 @@ ___

#### Defined in

[src/decorators/onMedusaEntityEvent.decorator.ts:70](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/onMedusaEntityEvent.decorator.ts#L70)
[src/decorators/onMedusaEntityEvent.decorator.ts:70](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/onMedusaEntityEvent.decorator.ts#L70)

___

Expand All @@ -146,7 +146,7 @@ ___

#### Defined in

[src/decorators/onMedusaEntityEvent.decorator.ts:58](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/onMedusaEntityEvent.decorator.ts#L58)
[src/decorators/onMedusaEntityEvent.decorator.ts:58](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/onMedusaEntityEvent.decorator.ts#L58)

___

Expand All @@ -173,7 +173,7 @@ ___

#### Defined in

[src/decorators/onMedusaEntityEvent.decorator.ts:84](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/onMedusaEntityEvent.decorator.ts#L84)
[src/decorators/onMedusaEntityEvent.decorator.ts:84](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/onMedusaEntityEvent.decorator.ts#L84)

___

Expand All @@ -199,7 +199,7 @@ ___

#### Defined in

[src/decorators/onMedusaEntityEvent.decorator.ts:66](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/onMedusaEntityEvent.decorator.ts#L66)
[src/decorators/onMedusaEntityEvent.decorator.ts:66](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/onMedusaEntityEvent.decorator.ts#L66)

___

Expand All @@ -226,7 +226,7 @@ ___

#### Defined in

[src/decorators/onMedusaEntityEvent.decorator.ts:77](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/onMedusaEntityEvent.decorator.ts#L77)
[src/decorators/onMedusaEntityEvent.decorator.ts:77](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/onMedusaEntityEvent.decorator.ts#L77)

___

Expand All @@ -252,7 +252,7 @@ ___

#### Defined in

[src/decorators/onMedusaEntityEvent.decorator.ts:62](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/onMedusaEntityEvent.decorator.ts#L62)
[src/decorators/onMedusaEntityEvent.decorator.ts:62](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/onMedusaEntityEvent.decorator.ts#L62)

___

Expand Down Expand Up @@ -280,7 +280,7 @@ ___

#### Defined in

[src/decorators/onMedusaEntityEvent.decorator.ts:91](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/onMedusaEntityEvent.decorator.ts#L91)
[src/decorators/onMedusaEntityEvent.decorator.ts:91](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/onMedusaEntityEvent.decorator.ts#L91)

___

Expand All @@ -300,4 +300,4 @@ ___

#### Defined in

[src/decorators/onMedusaEntityEvent.decorator.ts:54](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/onMedusaEntityEvent.decorator.ts#L54)
[src/decorators/onMedusaEntityEvent.decorator.ts:54](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/onMedusaEntityEvent.decorator.ts#L54)
12 changes: 6 additions & 6 deletions docs/classes/event_emmiter.Internals.CustomEventEmmiter.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ EventEmitter.constructor

#### Defined in

[src/event-emmiter.ts:21](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/event-emmiter.ts#L21)
[src/event-emmiter.ts:21](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/event-emmiter.ts#L21)

## Properties

Expand All @@ -51,7 +51,7 @@ EventEmitter.constructor

#### Defined in

[src/event-emmiter.ts:19](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/event-emmiter.ts#L19)
[src/event-emmiter.ts:19](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/event-emmiter.ts#L19)

## Methods

Expand All @@ -74,7 +74,7 @@ Emit an asynchrone event entity based and wait for the result.

#### Defined in

[src/event-emmiter.ts:80](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/event-emmiter.ts#L80)
[src/event-emmiter.ts:80](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/event-emmiter.ts#L80)

___

Expand Down Expand Up @@ -104,7 +104,7 @@ Register a new event handler.

#### Defined in

[src/event-emmiter.ts:31](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/event-emmiter.ts#L31)
[src/event-emmiter.ts:31](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/event-emmiter.ts#L31)

___

Expand All @@ -126,7 +126,7 @@ Apply all event handlers hold by the `listenerDescriptor`.

#### Defined in

[src/event-emmiter.ts:43](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/event-emmiter.ts#L43)
[src/event-emmiter.ts:43](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/event-emmiter.ts#L43)

___

Expand All @@ -140,4 +140,4 @@ ___

#### Defined in

[src/event-emmiter.ts:68](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/event-emmiter.ts#L68)
[src/event-emmiter.ts:68](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/event-emmiter.ts#L68)
2 changes: 1 addition & 1 deletion docs/classes/loader.Loader.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ internal container and database connection.

#### Defined in

[src/loader.ts:35](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/loader.ts#L35)
[src/loader.ts:35](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/loader.ts#L35)
8 changes: 4 additions & 4 deletions docs/classes/medusa.Medusa.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Register steps that must be executed before/after medusa is load.

#### Defined in

[src/medusa.ts:15](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/medusa.ts#L15)
[src/medusa.ts:15](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/medusa.ts#L15)

## Properties

Expand All @@ -46,7 +46,7 @@ Register steps that must be executed before/after medusa is load.

#### Defined in

[src/medusa.ts:8](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/medusa.ts#L8)
[src/medusa.ts:8](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/medusa.ts#L8)

___

Expand All @@ -56,7 +56,7 @@ ___

#### Defined in

[src/medusa.ts:9](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/medusa.ts#L9)
[src/medusa.ts:9](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/medusa.ts#L9)

## Methods

Expand All @@ -78,4 +78,4 @@ Launch all the steps before/after medusa according to the `stepOptions`.

#### Defined in

[src/medusa.ts:23](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/medusa.ts#L23)
[src/medusa.ts:23](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/medusa.ts#L23)
2 changes: 1 addition & 1 deletion docs/classes/metadata_reader.Internals.CustomMap.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ Map.get

#### Defined in

[src/metadata-reader.ts:6](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/metadata-reader.ts#L6)
[src/metadata-reader.ts:6](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/metadata-reader.ts#L6)
12 changes: 6 additions & 6 deletions docs/classes/utils.Utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Attach a new subscriber to a specific entities.

#### Defined in

[src/utils.ts:40](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/utils.ts#L40)
[src/utils.ts:40](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/utils.ts#L40)

___

Expand All @@ -78,7 +78,7 @@ Log all the routes from the express instance.

#### Defined in

[src/utils.ts:61](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/utils.ts#L61)
[src/utils.ts:61](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/utils.ts#L61)

___

Expand All @@ -101,7 +101,7 @@ Prepare the log to be shown to be consistent everywhere.

#### Defined in

[src/utils.ts:70](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/utils.ts#L70)
[src/utils.ts:70](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/utils.ts#L70)

___

Expand All @@ -122,7 +122,7 @@ ___

#### Defined in

[src/utils.ts:81](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/utils.ts#L81)
[src/utils.ts:81](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/utils.ts#L81)

___

Expand Down Expand Up @@ -153,7 +153,7 @@ Since it is not possible to use multiple extend, you can use that utilities to a

#### Defined in

[src/utils.ts:17](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/utils.ts#L17)
[src/utils.ts:17](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/utils.ts#L17)

___

Expand All @@ -173,4 +173,4 @@ ___

#### Defined in

[src/utils.ts:101](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/utils.ts#L101)
[src/utils.ts:101](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/utils.ts#L101)
2 changes: 1 addition & 1 deletion docs/interfaces/types.MedusaMiddleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ Describe a custom middleware instance.

#### Defined in

[src/types.ts:136](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/types.ts#L136)
[src/types.ts:136](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/types.ts#L136)
2 changes: 1 addition & 1 deletion docs/interfaces/types.Type.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ Function.constructor

#### Defined in

[src/types.ts:6](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/types.ts#L6)
[src/types.ts:6](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/types.ts#L6)
6 changes: 3 additions & 3 deletions docs/modules/contants.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Metadata key to store config from decorated injectables.

#### Defined in

[src/contants.ts:9](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/contants.ts#L9)
[src/contants.ts:9](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/contants.ts#L9)

___

Expand Down Expand Up @@ -66,7 +66,7 @@ Hold the name of the medusa services registered into the container for later on

#### Defined in

[src/contants.ts:14](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/contants.ts#L14)
[src/contants.ts:14](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/contants.ts#L14)

___

Expand All @@ -78,4 +78,4 @@ Metadata key to store config from decorated injectables.

#### Defined in

[src/contants.ts:4](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/contants.ts#L4)
[src/contants.ts:4](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/contants.ts#L4)
12 changes: 6 additions & 6 deletions docs/modules/decorators_components_decorator.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Mark a class as an entity to be used by the loader.

#### Defined in

[src/decorators/components.decorator.ts:15](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/components.decorator.ts#L15)
[src/decorators/components.decorator.ts:15](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/components.decorator.ts#L15)

___

Expand All @@ -61,7 +61,7 @@ Mark a class as a middleware to be used by the loader.

#### Defined in

[src/decorators/components.decorator.ts:42](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/components.decorator.ts#L42)
[src/decorators/components.decorator.ts:42](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/components.decorator.ts#L42)

___

Expand All @@ -77,7 +77,7 @@ Mark a class as a migration to be used by the loader.

#### Defined in

[src/decorators/components.decorator.ts:50](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/components.decorator.ts#L50)
[src/decorators/components.decorator.ts:50](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/components.decorator.ts#L50)

___

Expand Down Expand Up @@ -105,7 +105,7 @@ Mark a class as a repository to be used by the loader.

#### Defined in

[src/decorators/components.decorator.ts:33](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/components.decorator.ts#L33)
[src/decorators/components.decorator.ts:33](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/components.decorator.ts#L33)

___

Expand All @@ -127,7 +127,7 @@ Mark a class as a router to be used by the loader.

#### Defined in

[src/decorators/components.decorator.ts:59](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/components.decorator.ts#L59)
[src/decorators/components.decorator.ts:59](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/components.decorator.ts#L59)

___

Expand Down Expand Up @@ -155,4 +155,4 @@ Mark a class as a service to be used by the loader.

#### Defined in

[src/decorators/components.decorator.ts:24](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/components.decorator.ts#L24)
[src/decorators/components.decorator.ts:24](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/components.decorator.ts#L24)
2 changes: 1 addition & 1 deletion docs/modules/decorators_module_decorator.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ Mark a class as aa module and store all injectable on it.

#### Defined in

[src/decorators/module.decorator.ts:9](https://github.com/adrien2p/medusa-extender/blob/af655f6/src/decorators/module.decorator.ts#L9)
[src/decorators/module.decorator.ts:9](https://github.com/adrien2p/medusa-extender/blob/e05c395/src/decorators/module.decorator.ts#L9)
Loading

0 comments on commit c17bea2

Please sign in to comment.