Skip to content

Commit

Permalink
v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgianStan committed Dec 16, 2020
1 parent c7ff8c7 commit 18d79e7
Show file tree
Hide file tree
Showing 54 changed files with 4,549 additions and 5,279 deletions.
24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
],
root: true,
env: {
node: true,
jest: true,
},
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
};
7 changes: 0 additions & 7 deletions .vscode/settings.json

This file was deleted.

25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# Changelog

## V2.0.0

### Core

- **upgrade** to latest **NestJS** version(v7)
- folder structure update
- use `cross-env` to set the `NODE_ENV` for cross OS support

### Modules

- refactor `utils` to simply `custom-response`
- `CustomResponse` interface is a generic now
- new custom-response status `WARNING = 'warning'`
- `config.service` will use now `process.cwd()` istead of a relative path
- `config.service` will return the values from `.env` files or from `process.env`
- `database.module` will receive each entity inside the `entities` instead of `'dist/**/*.entity{.ts,.js}'`

---

### Explanation

For a better understanding, check out this [article](https://itnext.io/nestjs-microservice-with-typeorm-mariadb-and-integration-e2e-testing-379338e99580).

# Preparation

- install the desired database, this example is made with **MariaDB** [link to a youtube tutorial](https://www.youtube.com/watch?v=hDKnsUrz0nM&t=195s)
Expand Down
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ module.exports = {
'^.+\\.(t|j)s$': 'ts-jest',
},
transformIgnorePatterns: ['^.+\\.js$'],
moduleNameMapper: {
'src(.*)$': '<rootDir>/src$1',
},
};
1 change: 0 additions & 1 deletion nest-cli.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"language": "ts",
"collection": "@nestjs/schematics",
"sourceRoot": "src"
}
Loading

0 comments on commit 18d79e7

Please sign in to comment.