-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ashleigh
committed
Jul 3, 2018
1 parent
c430879
commit 7c3aba9
Showing
6 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,3 +59,5 @@ typings/ | |
|
||
# next.js build output | ||
.next | ||
|
||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/src | ||
tsconfig.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import RabbitMQModule from './rabbit.module'; | ||
import RabbitMQService from './rabbitmq.service'; | ||
|
||
export default RabbitMQModule; | ||
export { | ||
RabbitMQService, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { | ||
Module, | ||
} from '@nestjs/common'; | ||
import RabbitMQService from './rabbitmq.service'; | ||
import ConfigModule from '@bashleigh/nest-config/dist'; | ||
|
||
@Module({ | ||
imports: [ConfigModule], | ||
providers: [RabbitMQService], | ||
exports: [RabbitMQService], | ||
}) | ||
export default class RabbitMQModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { | ||
Injectable, | ||
} from '@nestjs/common'; | ||
import { | ||
ConfigService, | ||
} from '@bashleigh/nest-config'; | ||
import * as amqp from 'amqplib'; | ||
|
||
@Injectable() | ||
export default class RabbitMQService | ||
{ | ||
connection; | ||
constructor(private readonly config: ConfigService) | ||
{} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"declaration": true, | ||
"noImplicitAny": false, | ||
"noUnusedLocals": false, | ||
"removeComments": false, | ||
"noLib": false, | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"target": "es6", | ||
"sourceMap": false, | ||
"allowJs": false, | ||
"rootDir": "./src", | ||
"baseUrl": "./", | ||
"outDir": "./dist" | ||
}, | ||
"include": [ | ||
"*.ts", | ||
"**/*.ts" | ||
], | ||
"exclude": [ | ||
"node_modules", | ||
"./**/*.spec.ts", | ||
"examples" | ||
] | ||
} |