├── .dockerignore ├── .eslintrc.js ├── .github └── workflows │ ├── ci.yml │ ├── cs.yml │ └── pr.yml ├── .gitignore ├── .prettierrc ├── .vscode └── settings.json ├── Dockerfile ├── README.md ├── dbadmin.yml ├── docker-compose.yml ├── nest-cli.json ├── package.json ├── production.yml ├── src ├── app.controller.spec.ts ├── app.controller.ts ├── app.module.ts ├── app.service.ts ├── config.schema.ts ├── main.ts └── users │ ├── user.entity.ts │ ├── users.controller.ts │ ├── users.module.ts │ └── users.service.ts ├── stage.dev.env ├── stage.prod.env ├── test-cov.yml ├── test-watch.yml ├── test.yml ├── test ├── app.e2e-spec.ts └── jest-e2e.json ├── tsconfig.build.json ├── tsconfig.json └── yarn.lock /.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | parser: '@typescript-eslint/parser', 3 | parserOptions: { 4 | project: 'tsconfig.json', 5 | sourceType: 'module', 6 | }, 7 | plugins: ['@typescript-eslint/eslint-plugin'], 8 | extends: [ 9 | 'plugin:@typescript-eslint/recommended', 10 | 'plugin:prettier/recommended', 11 | ], 12 | root: true, 13 | env: { 14 | node: true, 15 | jest: true, 16 | }, 17 | ignorePatterns: ['.eslintrc.js'], 18 | rules: { 19 | '@typescript-eslint/interface-name-prefix': 'off', 20 | '@typescript-eslint/explicit-function-return-type': 'off', 21 | '@typescript-eslint/explicit-module-boundary-types': 'off', 22 | '@typescript-eslint/no-explicit-any': 'off', 23 | }, 24 | }; 25 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: CI/CD 2 | 3 | on: 4 | push: 5 | branches: [main] 6 | 7 | jobs: 8 | build: 9 | runs-on: ubuntu-latest 10 | 11 | strategy: 12 | matrix: 13 | node-version: [12.x] 14 | 15 | steps: 16 | - name: Checkout repository 17 | uses: actions/checkout@v2 18 | 19 | - name: Run the tests 20 | run: yarn docker-compose:test:cov 21 | 22 | - name: Upload coverage to Codecov 23 | uses: codecov/codecov-action@v2 24 | 25 | - name: Build 26 | run: yarn docker-compose:prod:build-only 27 | -------------------------------------------------------------------------------- /.github/workflows/cs.yml: -------------------------------------------------------------------------------- 1 | name: 'Code Scanning' 2 | 3 | on: 4 | push: 5 | branches: [main] 6 | pull_request: 7 | branches: [main] 8 | paths-ignore: 9 | - '**/*.md' 10 | - '**/*.txt' 11 | schedule: 12 | - cron: '30 1 * * 0' 13 | 14 | jobs: 15 | CodeQL-Build: 16 | runs-on: ubuntu-latest 17 | 18 | permissions: 19 | security-events: write 20 | 21 | steps: 22 | - name: Checkout repository 23 | uses: actions/checkout@v2 24 | 25 | - name: Initialize CodeQL 26 | uses: github/codeql-action/init@v1 27 | with: 28 | languages: javascript 29 | 30 | - name: Autobuild 31 | uses: github/codeql-action/autobuild@v1 32 | 33 | - name: Perform CodeQL Analysis 34 | uses: github/codeql-action/analyze@v1 35 | -------------------------------------------------------------------------------- /.github/workflows/pr.yml: -------------------------------------------------------------------------------- 1 | name: PR 2 | 3 | on: 4 | pull_request: 5 | branches: [main] 6 | 7 | jobs: 8 | build: 9 | runs-on: ubuntu-latest 10 | 11 | strategy: 12 | matrix: 13 | node-version: [12.x] 14 | 15 | steps: 16 | - name: Checkout repository 17 | uses: actions/checkout@v2 18 | 19 | - name: Run the tests 20 | run: yarn docker-compose:test:cov 21 | 22 | - name: Upload coverage to Codecov 23 | uses: codecov/codecov-action@v2 24 | 25 | - name: Build 26 | run: yarn docker-compose:prod-build-only 27 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # compiled output 2 | /dist 3 | /node_modules 4 | 5 | # Logs 6 | logs 7 | *.log 8 | npm-debug.log* 9 | pnpm-debug.log* 10 | yarn-debug.log* 11 | yarn-error.log* 12 | lerna-debug.log* 13 | 14 | # OS 15 | .DS_Store 16 | 17 | # Tests 18 | /coverage 19 | /.nyc_output 20 | 21 | # IDEs and editors 22 | /.idea 23 | .project 24 | .classpath 25 | .c9/ 26 | *.launch 27 | .settings/ 28 | *.sublime-workspace 29 | 30 | # IDE - VSCode 31 | .vscode/* 32 | !.vscode/settings.json 33 | !.vscode/tasks.json 34 | !.vscode/launch.json 35 | !.vscode/extensions.json 36 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true, 3 | "trailingComma": "all" 4 | } -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "editor.formatOnSave": true, 3 | "editor.defaultFormatter": "esbenp.prettier-vscode", 4 | "editor.tabSize": 2 5 | } 6 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # syntax=docker/dockerfile:1 2 | 3 | FROM node:16.14.2-alpine AS base 4 | 5 | WORKDIR /app 6 | 7 | COPY [ "package.json", "yarn.lock*", "./" ] 8 | 9 | FROM base AS dev 10 | ENV NODE_ENV=dev 11 | RUN yarn install --frozen-lockfile 12 | COPY . . 13 | CMD [ "yarn", "start:dev" ] 14 | 15 | FROM dev AS test 16 | ENV NODE_ENV=test 17 | CMD [ "yarn", "test" ] 18 | 19 | FROM test AS test-cov 20 | CMD [ "yarn", "test:cov" ] 21 | 22 | FROM test AS test-watch 23 | ENV GIT_WORK_TREE=/app GIT_DIR=/app/.git 24 | RUN apk add git 25 | CMD [ "yarn", "test:watch" ] 26 | 27 | FROM base AS prod 28 | ENV NODE_ENV=production 29 | RUN yarn install --frozen-lockfile --production 30 | COPY . . 31 | RUN yarn global add @nestjs/cli 32 | RUN yarn build 33 | CMD [ "yarn", "start:prod" ] -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NestJS Framework Boilerplate (PostgreSQL) 2 | 3 | [![CI/CD](https://github.com/dominicarrojado/nestjs-postgres-boilerplate/actions/workflows/ci.yml/badge.svg)](https://github.com/dominicarrojado/nestjs-postgres-boilerplate/actions/workflows/ci.yml) 4 | 5 | A local development setup or boilerplate for [Nest.js framework](https://nestjs.com/) with [PostgreSQL](https://www.postgresql.org/) and [pgAdmin4](https://www.pgadmin.org/) using [Docker Compose](https://docs.docker.com/compose/). 6 | 7 | ## Quick Start 8 | 9 | 1. Install [Node.js](https://nodejs.org/en/download/) - _for IDE type checking_. 10 | 2. Install [Yarn](https://yarnpkg.com/lang/en/docs/install/) - _for IDE type checking_. 11 | 3. Install [Docker Compose](https://docs.docker.com/compose/install/) and make sure it is running in the system background. 12 | 4. Clone the app: 13 | 14 | ```bash 15 | git clone git@github.com:dominicarrojado/nestjs-postgres-boilerplate.git 16 | ``` 17 | 18 | 5. Install npm packages - _for IDE type checking_. 19 | 20 | ```bash 21 | cd nestjs-postgres-boilerplate 22 | yarn install --frozen-lockfile 23 | ``` 24 | 25 | 6. Build and run the Docker image. 26 | 27 | ```bash 28 | yarn docker-compose:dev 29 | ``` 30 | 31 | 7. Access the app at http://localhost:3000. 32 | 8. Make file changes and it will automatically rebuild the app. 33 | 34 | ## Running All Tests 35 | 36 | ```bash 37 | yarn docker-compose:test 38 | ``` 39 | 40 | ## Running All Tests (with coverage) 41 | 42 | ```bash 43 | yarn docker-compose:test:cov 44 | ``` 45 | 46 | ## Running Tests (Watch) 47 | 48 | 1. Build and run the Docker image. 49 | 50 | ```bash 51 | yarn docker-compose:test:watch 52 | ``` 53 | 54 | 2. Make file changes and it will automatically rerun tests related to changed files. 55 | 56 | ## Build For Production 57 | 58 | ```bash 59 | yarn docker-compose:prod 60 | ``` 61 | 62 | ## VSCode Extensions 63 | 64 | - [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) 65 | - [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) 66 | 67 | ## Learn 68 | 69 | Learn how to build this setup or boilerplate [here](https://dominicarrojado.com/posts/local-development-setup-for-nestjs-projects-with-postgresql/). 70 | -------------------------------------------------------------------------------- /dbadmin.yml: -------------------------------------------------------------------------------- 1 | services: 2 | dbadmin: 3 | image: dpage/pgadmin4 4 | restart: always 5 | ports: 6 | - 5050:80 7 | environment: 8 | PGADMIN_DEFAULT_EMAIL: admin@admin.com 9 | PGADMIN_DEFAULT_PASSWORD: pgadmin4 10 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3.9' 2 | services: 3 | app: 4 | build: 5 | context: . 6 | dockerfile: Dockerfile 7 | target: dev 8 | ports: 9 | - 3000:3000 10 | volumes: 11 | - ./src:/app/src 12 | depends_on: 13 | - db 14 | 15 | db: 16 | image: postgres 17 | restart: always 18 | ports: 19 | - 5432:5432 20 | environment: 21 | POSTGRES_PASSWORD: postgres 22 | -------------------------------------------------------------------------------- /nest-cli.json: -------------------------------------------------------------------------------- 1 | { 2 | "collection": "@nestjs/schematics", 3 | "sourceRoot": "src" 4 | } 5 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nestjs-postgres-boilerplate", 3 | "version": "0.0.1", 4 | "description": "", 5 | "author": "", 6 | "private": true, 7 | "license": "UNLICENSED", 8 | "scripts": { 9 | "prebuild": "rimraf dist", 10 | "build": "nest build", 11 | "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", 12 | "start": "nest start", 13 | "start:dev": "cross-env STAGE=dev nest start --watch", 14 | "start:debug": "cross-env STAGE=dev nest start --debug --watch", 15 | "start:prod": "cross-env STAGE=prod node dist/main", 16 | "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", 17 | "test": "cross-env STAGE=dev jest --runInBand", 18 | "test:watch": "cross-env STAGE=dev jest --runInBand --watch", 19 | "test:cov": "cross-env STAGE=dev jest --runInBand --coverage", 20 | "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", 21 | "test:e2e": "jest --config ./test/jest-e2e.json", 22 | "docker-compose:dev": "docker-compose -f docker-compose.yml -f dbadmin.yml up --build", 23 | "docker-compose:test": "docker-compose -f docker-compose.yml -f test.yml up --build --exit-code-from app", 24 | "docker-compose:test:cov": "docker-compose -f docker-compose.yml -f test-cov.yml up --build --exit-code-from app", 25 | "docker-compose:test:watch": "docker-compose -f docker-compose.yml -f test-watch.yml up --build", 26 | "docker-compose:prod": "docker-compose -f docker-compose.yml -f production.yml -f dbadmin.yml up --build", 27 | "docker-compose:prod:build-only": "docker-compose -f docker-compose.yml -f production.yml build" 28 | }, 29 | "dependencies": { 30 | "@nestjs/common": "^8.0.0", 31 | "@nestjs/config": "^2.0.0", 32 | "@nestjs/core": "^8.0.0", 33 | "@nestjs/platform-express": "^8.0.0", 34 | "@nestjs/typeorm": "^8.0.3", 35 | "@types/node": "^17.0.31", 36 | "cross-env": "^7.0.3", 37 | "joi": "^17.6.0", 38 | "pg": "^8.7.3", 39 | "reflect-metadata": "^0.1.13", 40 | "rimraf": "^3.0.2", 41 | "rxjs": "^7.2.0", 42 | "typeorm": "0.2" 43 | }, 44 | "devDependencies": { 45 | "@nestjs/cli": "^8.0.0", 46 | "@nestjs/schematics": "^8.0.0", 47 | "@nestjs/testing": "^8.0.0", 48 | "@types/express": "^4.17.13", 49 | "@types/jest": "27.0.2", 50 | "@types/supertest": "^2.0.11", 51 | "@typescript-eslint/eslint-plugin": "^5.0.0", 52 | "@typescript-eslint/parser": "^5.0.0", 53 | "eslint": "^8.0.1", 54 | "eslint-config-prettier": "^8.3.0", 55 | "eslint-plugin-prettier": "^4.0.0", 56 | "jest": "^27.2.5", 57 | "prettier": "^2.3.2", 58 | "source-map-support": "^0.5.21", 59 | "supertest": "^6.1.3", 60 | "ts-jest": "^27.0.3", 61 | "ts-loader": "^9.2.3", 62 | "ts-node": "^10.0.0", 63 | "tsconfig-paths": "^3.10.1", 64 | "typescript": "^4.3.5" 65 | }, 66 | "jest": { 67 | "moduleFileExtensions": [ 68 | "js", 69 | "json", 70 | "ts" 71 | ], 72 | "rootDir": "src", 73 | "testRegex": ".*\\.spec\\.ts$", 74 | "transform": { 75 | "^.+\\.(t|j)s$": "ts-jest" 76 | }, 77 | "collectCoverageFrom": [ 78 | "**/*.(t|j)s" 79 | ], 80 | "coverageDirectory": "../coverage", 81 | "testEnvironment": "node" 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /production.yml: -------------------------------------------------------------------------------- 1 | services: 2 | app: 3 | build: 4 | target: prod 5 | -------------------------------------------------------------------------------- /src/app.controller.spec.ts: -------------------------------------------------------------------------------- 1 | import { Test, TestingModule } from '@nestjs/testing'; 2 | import { AppController } from './app.controller'; 3 | import { AppService } from './app.service'; 4 | 5 | describe('AppController', () => { 6 | let appController: AppController; 7 | 8 | beforeEach(async () => { 9 | const app: TestingModule = await Test.createTestingModule({ 10 | controllers: [AppController], 11 | providers: [AppService], 12 | }).compile(); 13 | 14 | appController = app.get(AppController); 15 | }); 16 | 17 | describe('root', () => { 18 | it('should return "Hello World!"', () => { 19 | expect(appController.getHello()).toBe('Hello World!'); 20 | }); 21 | }); 22 | }); 23 | -------------------------------------------------------------------------------- /src/app.controller.ts: -------------------------------------------------------------------------------- 1 | import { Controller, Get } from '@nestjs/common'; 2 | import { AppService } from './app.service'; 3 | 4 | @Controller() 5 | export class AppController { 6 | constructor(private readonly appService: AppService) {} 7 | 8 | @Get() 9 | getHello(): string { 10 | return this.appService.getHello(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/app.module.ts: -------------------------------------------------------------------------------- 1 | import { Module } from '@nestjs/common'; 2 | import { ConfigModule, ConfigService } from '@nestjs/config'; 3 | import { TypeOrmModule } from '@nestjs/typeorm'; 4 | import { AppController } from './app.controller'; 5 | import { AppService } from './app.service'; 6 | import { UsersModule } from './users/users.module'; 7 | import { configValidationSchema } from './config.schema'; 8 | 9 | @Module({ 10 | imports: [ 11 | ConfigModule.forRoot({ 12 | envFilePath: [`stage.${process.env.STAGE}.env`], 13 | validationSchema: configValidationSchema, 14 | }), 15 | TypeOrmModule.forRootAsync({ 16 | imports: [ConfigModule], 17 | inject: [ConfigService], 18 | useFactory: async (configService: ConfigService) => { 19 | return { 20 | type: 'postgres', 21 | host: configService.get('DB_HOST'), 22 | port: configService.get('DB_PORT'), 23 | username: configService.get('DB_USERNAME'), 24 | password: configService.get('DB_PASSWORD'), 25 | database: configService.get('DB_DATABASE'), 26 | autoLoadEntities: true, 27 | synchronize: true, 28 | }; 29 | }, 30 | }), 31 | UsersModule, 32 | ], 33 | controllers: [AppController], 34 | providers: [AppService], 35 | }) 36 | export class AppModule {} 37 | -------------------------------------------------------------------------------- /src/app.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@nestjs/common'; 2 | 3 | @Injectable() 4 | export class AppService { 5 | getHello(): string { 6 | return 'Hello World!'; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/config.schema.ts: -------------------------------------------------------------------------------- 1 | import * as Joi from 'joi'; 2 | 3 | export const configValidationSchema = Joi.object({ 4 | STAGE: Joi.string().required(), 5 | PORT: Joi.number().required(), 6 | DB_HOST: Joi.string().required(), 7 | DB_PORT: Joi.number().default(5432).required(), 8 | DB_USERNAME: Joi.string().required(), 9 | DB_PASSWORD: Joi.string().required(), 10 | DB_DATABASE: Joi.string().required(), 11 | }); 12 | -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- 1 | import { Logger } from '@nestjs/common'; 2 | import { NestFactory } from '@nestjs/core'; 3 | import { AppModule } from './app.module'; 4 | 5 | async function bootstrap() { 6 | const logger = new Logger(); 7 | const app = await NestFactory.create(AppModule); 8 | const port = process.env.PORT; 9 | 10 | await app.listen(port); 11 | 12 | logger.log(`Application listening on port ${port}`); 13 | } 14 | bootstrap(); 15 | -------------------------------------------------------------------------------- /src/users/user.entity.ts: -------------------------------------------------------------------------------- 1 | import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'; 2 | 3 | @Entity() 4 | export class User { 5 | @PrimaryGeneratedColumn() 6 | id: number; 7 | 8 | @Column() 9 | firstName: string; 10 | 11 | @Column() 12 | lastName: string; 13 | 14 | @Column({ default: true }) 15 | isActive: boolean; 16 | } 17 | -------------------------------------------------------------------------------- /src/users/users.controller.ts: -------------------------------------------------------------------------------- 1 | import { Controller, Get } from '@nestjs/common'; 2 | import { User } from './user.entity'; 3 | import { UsersService } from './users.service'; 4 | 5 | @Controller('users') 6 | export class UsersController { 7 | constructor(private usersService: UsersService) {} 8 | 9 | @Get() 10 | getAllUsers(): Promise> { 11 | return this.usersService.getAllUsers(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/users/users.module.ts: -------------------------------------------------------------------------------- 1 | import { Module } from '@nestjs/common'; 2 | import { TypeOrmModule } from '@nestjs/typeorm'; 3 | import { User } from './user.entity'; 4 | import { UsersController } from './users.controller'; 5 | import { UsersService } from './users.service'; 6 | 7 | @Module({ 8 | imports: [TypeOrmModule.forFeature([User])], 9 | controllers: [UsersController], 10 | providers: [UsersService], 11 | }) 12 | export class UsersModule {} 13 | -------------------------------------------------------------------------------- /src/users/users.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@nestjs/common'; 2 | import { InjectRepository } from '@nestjs/typeorm'; 3 | import { Repository } from 'typeorm'; 4 | import { User } from './user.entity'; 5 | 6 | @Injectable() 7 | export class UsersService { 8 | constructor( 9 | @InjectRepository(User) private usersRepository: Repository, 10 | ) {} 11 | 12 | getAllUsers(): Promise { 13 | return this.usersRepository.find({}); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /stage.dev.env: -------------------------------------------------------------------------------- 1 | PORT=3000 2 | DB_HOST=db 3 | DB_PORT=5432 4 | DB_USERNAME=postgres 5 | DB_PASSWORD=postgres 6 | DB_DATABASE=postgres 7 | -------------------------------------------------------------------------------- /stage.prod.env: -------------------------------------------------------------------------------- 1 | PORT=3000 2 | DB_HOST=db 3 | DB_PORT=5432 4 | DB_USERNAME=postgres 5 | DB_PASSWORD=postgres 6 | DB_DATABASE=postgres 7 | -------------------------------------------------------------------------------- /test-cov.yml: -------------------------------------------------------------------------------- 1 | services: 2 | app: 3 | build: 4 | target: test-cov 5 | volumes: 6 | - ./coverage:/app/coverage 7 | -------------------------------------------------------------------------------- /test-watch.yml: -------------------------------------------------------------------------------- 1 | services: 2 | app: 3 | build: 4 | target: test-watch 5 | volumes: 6 | - .git:/app/.git/ 7 | -------------------------------------------------------------------------------- /test.yml: -------------------------------------------------------------------------------- 1 | services: 2 | app: 3 | build: 4 | target: test 5 | -------------------------------------------------------------------------------- /test/app.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import { Test, TestingModule } from '@nestjs/testing'; 2 | import { INestApplication } from '@nestjs/common'; 3 | import * as request from 'supertest'; 4 | import { AppModule } from './../src/app.module'; 5 | 6 | describe('AppController (e2e)', () => { 7 | let app: INestApplication; 8 | 9 | beforeEach(async () => { 10 | const moduleFixture: TestingModule = await Test.createTestingModule({ 11 | imports: [AppModule], 12 | }).compile(); 13 | 14 | app = moduleFixture.createNestApplication(); 15 | await app.init(); 16 | }); 17 | 18 | it('/ (GET)', () => { 19 | return request(app.getHttpServer()) 20 | .get('/') 21 | .expect(200) 22 | .expect('Hello World!'); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /test/jest-e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "moduleFileExtensions": ["js", "json", "ts"], 3 | "rootDir": ".", 4 | "testEnvironment": "node", 5 | "testRegex": ".e2e-spec.ts$", 6 | "transform": { 7 | "^.+\\.(t|j)s$": "ts-jest" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": ["node_modules", "test", "dist", "**/*spec.ts"] 4 | } 5 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "declaration": true, 5 | "removeComments": true, 6 | "emitDecoratorMetadata": true, 7 | "experimentalDecorators": true, 8 | "allowSyntheticDefaultImports": true, 9 | "target": "es2017", 10 | "sourceMap": true, 11 | "outDir": "./dist", 12 | "baseUrl": "./", 13 | "incremental": true, 14 | "skipLibCheck": true, 15 | "strictNullChecks": false, 16 | "noImplicitAny": false, 17 | "strictBindCallApply": false, 18 | "forceConsistentCasingInFileNames": false, 19 | "noFallthroughCasesInSwitch": false 20 | } 21 | } 22 | --------------------------------------------------------------------------------