Initial commit: NestJS NextJS pnpm monorepo
This commit is contained in:
commit
610dcf202b
175 files changed
+25172
No files matched your search
@@ -0,0 +1,43 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
|
||||
import { StockMovementsController } from '../_controllers/movements.controller';
|
||||
import { StockMovementsService } from './movements.service';
|
||||
|
||||
import { MongooseModule } from '@nestjs/mongoose';
|
||||
|
||||
import { MovementRepository } from './movement.repository';
|
||||
|
||||
import { StockContent, StockContentSchema } from '../_entities/stock-content.entity';
|
||||
import { StockMovement, StockMovementSchema } from '../_entities/stock-movement.entity';
|
||||
import { Article, ArticleSchema } from 'src/catalog/_entities/article.entity';
|
||||
import { ArticleVariant, ArticleVariantSchema } from 'src/catalog/_entities/article-variant.entity';
|
||||
import { CatalogModule } from 'src/catalog/catalog.module';
|
||||
import { StockContentModule } from '../stock-content/stock-content.module';
|
||||
import { StockContentRepository } from '../stock-content/stock-content.repository';
|
||||
import { StockContentService } from '../stock-content/stock-content.service';
|
||||
|
||||
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
MongooseModule.forFeature([
|
||||
{ name: StockContent.name, schema: StockContentSchema },
|
||||
{ name: StockMovement.name, schema: StockMovementSchema },
|
||||
{ name: Article.name, schema: ArticleSchema },
|
||||
{ name: ArticleVariant.name, schema: ArticleVariantSchema },
|
||||
|
||||
]),
|
||||
CatalogModule,
|
||||
|
||||
],
|
||||
|
||||
controllers: [StockMovementsController],
|
||||
providers: [
|
||||
StockMovementsService,
|
||||
StockContentService,
|
||||
StockContentRepository,
|
||||
MovementRepository,
|
||||
],
|
||||
|
||||
})
|
||||
export class MovementsModule { }
|
||||
Reference in new issue
Block a user