Skip to content

Commit

Permalink
feat(hasura): event handling service
Browse files Browse the repository at this point in the history
re #116
  • Loading branch information
WonderPanda committed Mar 27, 2020
1 parent 846dcd7 commit 09d3f4d
Show file tree
Hide file tree
Showing 31 changed files with 1,384 additions and 76 deletions.
9 changes: 5 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@ module.exports = {
plugins: ['@typescript-eslint', 'sonarjs'],
parserOptions: {
source: 'module',
ecmaVersion: 2018
ecmaVersion: 2018,
},
root: true,
env: {
node: true,
jest: true
jest: true,
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/interface-name-prefix': 'off',
"sonarjs/cognitive-complexity": ["error", 20]
'sonarjs/cognitive-complexity': ['error', 20],
'@typescript-eslint/camelcase': 'off',
},
ignorePatterns: ['*.d.ts', 'node_modules/']
ignorePatterns: ['*.d.ts', 'node_modules/'],
};
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ npm-debug.log
packages/*/lib
.idea
coverage/
junit.xml
junit.xml
tsconfig.build.tsbuildinfo
3 changes: 2 additions & 1 deletion integration/rabbitmq/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"interface-name": [false],
"arrow-parens": false,
"object-literal-sort-keys": false,
"max-classes-per-file": false
"max-classes-per-file": false,
"@typescript-eslint/camelcase": false
},
"rulesDirectory": []
}
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"dependencies": {
"@nestjs/common": "^6.0.1",
"@nestjs/core": "^6.0.1",
"@nestjs/platform-express": "^7.0.6",
"lodash": "^4.17.11",
"reflect-metadata": "^0.1.13",
"rxjs": "^6.4.0"
Expand All @@ -20,7 +21,8 @@
"@types/express": "^4.16.1",
"@types/jest": "^24.0.11",
"@types/lodash": "^4.14.120",
"@types/node": "^10.12.18",
"@types/node": "^12.12.31",
"@types/supertest": "^2.0.8",
"@typescript-eslint/eslint-plugin": "^2.15.0",
"@typescript-eslint/parser": "^2.15.0",
"commitizen": "^3.0.7",
Expand All @@ -34,10 +36,11 @@
"jest-junit": "^9.0.0",
"lerna": "^3.13.1",
"lint-staged": "^8.1.4",
"prettier": "^1.19.1",
"prettier": "^2.0.2",
"rimraf": "^2.6.3",
"supertest": "^4.0.2",
"ts-jest": "^24.0.0",
"typescript": "^3.3.3333"
"typescript": "^3.8.3"
},
"scripts": {
"commit": "yarn run git-cz",
Expand Down
6 changes: 6 additions & 0 deletions packages/discovery/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.2.4-rc.0](https://github.com/golevelup/nestjs/compare/@golevelup/[email protected]...@golevelup/[email protected]) (2020-03-27)

### Features

- **hasura:** event handling service ([a98ab7f](https://github.com/golevelup/nestjs/commit/a98ab7f)), closes [#116](https://github.com/golevelup/nestjs/issues/116)

## [2.2.3](https://github.com/golevelup/nestjs/compare/@golevelup/[email protected]...@golevelup/[email protected]) (2020-01-12)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion packages/discovery/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@golevelup/nestjs-discovery",
"version": "2.2.3",
"version": "2.2.4-rc.0",
"description": "A Badass NestJS module for querying your app's controllers, providers and handlers",
"keywords": [
"NestJS",
Expand Down
8 changes: 7 additions & 1 deletion packages/discovery/src/discovery.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ import { Global, Module } from '@nestjs/common';
import { MetadataScanner } from '@nestjs/core/metadata-scanner';
import { DiscoveryService } from './discovery.service';

/**
* Exposes a query API over top of the NestJS Module container
*
* @export
* @class DiscoveryModule
*/
@Global()
@Module({
providers: [DiscoveryService, MetadataScanner],
exports: [DiscoveryService]
exports: [DiscoveryService],
})
export class DiscoveryModule {}
10 changes: 10 additions & 0 deletions packages/hasura/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 0.0.2-rc.0 (2020-03-27)

### Features

- **hasura:** event handling service ([a98ab7f](https://github.com/golevelup/nestjs/commit/a98ab7f)), closes [#116](https://github.com/golevelup/nestjs/issues/116)
11 changes: 11 additions & 0 deletions packages/hasura/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# @golevelup/nestjs-hasura

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

## Description

## Motivation
Loading

0 comments on commit 09d3f4d

Please sign in to comment.