Skip to content

Commit

Permalink
refactor(packages): move dynamic modules to it's own package
Browse files Browse the repository at this point in the history
re AB#8
  • Loading branch information
WonderPanda committed Oct 29, 2019
1 parent 8560460 commit f71becb
Show file tree
Hide file tree
Showing 18 changed files with 533 additions and 67 deletions.
10 changes: 5 additions & 5 deletions packages/common/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# @nestjs-plus/common
# @levelup-nestjs/common

<p align="center">
<a href="https://www.npmjs.com/package/@nestjs-plus/common"><img src="https://img.shields.io/npm/v/@nestjs-plus/common.svg?style=flat" alt="version" /></a>
<a href="https://www.npmjs.com/package/@nestjs-plus/common"><img alt="downloads" src="https://img.shields.io/npm/dt/@nestjs-plus/common.svg?style=flat"></a>
<img alt="license" src="https://img.shields.io/npm/l/@nestjs-plus/rabbitmq.svg">
<a href="https://www.npmjs.com/package/@levelup-nestjs/common"><img src="https://img.shields.io/npm/v/@levelup-nestjs/common.svg?style=flat" alt="version" /></a>
<a href="https://www.npmjs.com/package/@levelup-nestjs/common"><img alt="downloads" src="https://img.shields.io/npm/dt/@levelup-nestjs/common.svg?style=flat"></a>
<img alt="license" src="https://img.shields.io/npm/l/@levelup-nestjs/common.svg">
</p>

Utility functions and low level reusable modules that provide building blocks for the @nestjs-plus and @nestjs ecosystem.
Utility functions and low level reusable modules that provide building blocks for the @levelup-nestjs and @nestjs ecosystem.

## Mixins

Expand Down
2 changes: 1 addition & 1 deletion packages/common/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
1 change: 0 additions & 1 deletion packages/common/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from './mixins';
export * from './options';
export * from './dynamicModules';
14 changes: 7 additions & 7 deletions packages/discovery/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# @nestjs-plus/discovery
# @levelup-nestjs/discovery

<p align="center">
<a href="https://www.npmjs.com/package/@nestjs-plus/discovery"><img src="https://img.shields.io/npm/v/@nestjs-plus/discovery.svg?style=flat" alt="version" /></a>
<a href="https://www.npmjs.com/package/@nestjs-plus/discovery"><img alt="downloads" src="https://img.shields.io/npm/dt/@nestjs-plus/discovery.svg?style=flat"></a>
<img alt="license" src="https://img.shields.io/npm/l/@nestjs-plus/discovery.svg">
<a href="https://www.npmjs.com/package/@levelup-nestjs/discovery"><img src="https://img.shields.io/npm/v/@levelup-nestjs/discovery.svg?style=flat" alt="version" /></a>
<a href="https://www.npmjs.com/package/@levelup-nestjs/discovery"><img alt="downloads" src="https://img.shields.io/npm/dt/@levelup-nestjs/discovery.svg?style=flat"></a>
<img alt="license" src="https://img.shields.io/npm/l/@levelup-nestjs/discovery.svg">
</p>

## Description
Expand All @@ -20,18 +20,18 @@ NestJS provides the `MetadataScanner` class to be able to retrieve this data but

### Install

`npm install ---save @nestjs-plus/discovery`
`npm install ---save @levelup-nestjs/discovery`

or

`yarn add @nestjs-plus/discovery`
`yarn add @levelup-nestjs/discovery`

### Import

Import and add `DiscoveryModule` to the `imports` section of the module you wish to implement Discovery features in. It's common to inject it directly into consuming Module's contructor so that it can be used during the `onModuleInit` lifecycle hook at application startup.

```typescript
import { DiscoveryModule } from '@nestjs-plus/discovery';
import { DiscoveryModule } from '@levelup-nestjs/discovery';
import { Module } from '@nestjs/common';

@Module({
Expand Down
2 changes: 1 addition & 1 deletion packages/discovery/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions packages/modules/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# @levelup-nestjs/modules

<p align="center">
<a href="https://www.npmjs.com/package/@levelup-nestjs/modules"><img src="https://img.shields.io/npm/v/@levelup-nestjs/modules.svg?style=flat" alt="version" /></a>
<a href="https://www.npmjs.com/package/@levelup-nestjs/modules"><img alt="downloads" src="https://img.shields.io/npm/dt/@levelup-nestjs/modules.svg?style=flat"></a>
<img alt="license" src="https://img.shields.io/npm/l/@levelup-nestjs/modules.svg">
</p>

Reusable utilities for working with NestJS Modules
Loading

0 comments on commit f71becb

Please sign in to comment.