Skip to content

Commit

Permalink
docs: change v9 to v10
Browse files Browse the repository at this point in the history
  • Loading branch information
kenso312 committed Jul 15, 2023
1 parent 271a81a commit ebffb3d
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ blank_issues_enabled: false

contact_links:
- name: Questions & Discussions
url: https://github.com/kenso312/nestjs-v9-webpack-boilerplate/discussions
url: https://github.com/kenso312/nestjs-v10-webpack-boilerplate/discussions
about: Use GitHub discussions for message-board style questions and discussions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Build and Push Docker Image

# Image Repository:
# https://hub.docker.com/repository/docker/kenso312/nestjs-v9-webpack-boilerplate
# https://hub.docker.com/repository/docker/kenso312/nestjs-v10-webpack-boilerplate

on:
workflow_run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clean-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions: write-all
jobs:
purge-boilerplate:
runs-on: ubuntu-latest
if: github.repository != 'kenso312/nestjs-v9-webpack-boilerplate'
if: github.repository != 'kenso312/nestjs-v10-webpack-boilerplate'
timeout-minutes: 3
steps:
- name: Checkout Repository
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# NestJS v9 Webpack Boilerplate
# NestJS v10 Webpack Boilerplate

![Banner](https://gateway.pinata.cloud/ipfs/QmbGrooyAhnBN8cdor9DtTpoZTapKbcWzXQ9GWmAAT8wFb)

![Language](https://img.shields.io/github/languages/top/kenso312/nestjs-v9-webpack-boilerplate)
![License](https://img.shields.io/github/license/kenso312/nestjs-v9-webpack-boilerplate)
![Version](https://img.shields.io/github/package-json/v/kenso312/nestjs-v9-webpack-boilerplate)
![Language](https://img.shields.io/github/languages/top/kenso312/nestjs-v10-webpack-boilerplate)
![License](https://img.shields.io/github/license/kenso312/nestjs-v10-webpack-boilerplate)
![Version](https://img.shields.io/github/package-json/v/kenso312/nestjs-v10-webpack-boilerplate)

## 馃敟 Features

Expand Down Expand Up @@ -51,7 +51,7 @@ module.exports = {

#### [Pino Pretty](https://github.com/pinojs/pino-pretty)

By default we assume the application will run in `production` mode after building the app, so if you still using `development` mode you will get the [error](https://github.com/kenso312/nestjs-v9-webpack-boilerplate/issues/31) since you enable pino-pretty and it does not include in the production bundle. Therefore, if you want to use pino-pretty after bundling for any reason, you should install the `pino-webpack-plugin`.
By default we assume the application will run in `production` mode after building the app, so if you still using `development` mode you will get the [error](https://github.com/kenso312/nestjs-v10-webpack-boilerplate/issues/31) since you enable pino-pretty and it does not include in the production bundle. Therefore, if you want to use pino-pretty after bundling for any reason, you should install the `pino-webpack-plugin`.

```sh
pnpm install -D pino-webpack-plugin
Expand Down
8 changes: 4 additions & 4 deletions ci/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Useful Commands:
# docker build . -t nestjs-v9-webpack-boilerplate:latest -f ci/Dockerfile
# docker build . -t nestjs-v10-webpack-boilerplate:latest -f ci/Dockerfile
# docker-compose -p nest -f ci/docker-compose.yaml up

version: '3.9'

services:
nestjs-v9-webpack-boilerplate:
image: nestjs-v9-webpack-boilerplate:latest
container_name: nestjs-v9-webpack-boilerplate
nestjs-v10-webpack-boilerplate:
image: nestjs-v10-webpack-boilerplate:latest
container_name: nestjs-v10-webpack-boilerplate
user: node:node
ports:
- 3000:3000
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nestjs-v9-webpack-boilerplate",
"name": "nestjs-v10-webpack-boilerplate",
"version": "2.2.4",
"description": "Boilerplate for NestJS v9 with Webpack, Pnpm, Fastify, Swagger, Pino Logger, Airbnb JavaScript Guide, Google JSON Style, ESLint, Prettier, Editorconfig, Husky, Lint-Staged, Commitlint, Axios, Docker, Alias Path, Error Handling and Clustering",
"description": "Boilerplate for NestJS v10 with Webpack, Pnpm, Fastify, Swagger, Pino Logger, Airbnb JavaScript Guide, Google JSON Style, ESLint, Prettier, Editorconfig, Husky, Lint-Staged, Commitlint, Axios, Docker, Alias Path, Error Handling and Clustering",
"author": "Ken So",
"license": "MIT",
"keywords": [
Expand All @@ -17,10 +17,10 @@
],
"repository": {
"type": "git",
"url": "https://github.com/kenso312/nestjs-v9-webpack-boilerplate.git"
"url": "https://github.com/kenso312/nestjs-v10-webpack-boilerplate.git"
},
"bugs": {
"url": "https://github.com/kenso312/nestjs-v9-webpack-boilerplate/issues"
"url": "https://github.com/kenso312/nestjs-v10-webpack-boilerplate/issues"
},
"scripts": {
"build": "nest build --webpack --webpackPath ./webpack.config.js",
Expand Down
8 changes: 5 additions & 3 deletions src/modules/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ import { ResponseInterceptor } from '@/interceptor/response.interceptor';
{ provide: APP_FILTER, useClass: NormalExceptionFilter },
{ provide: APP_FILTER, useClass: ValidationExceptionFilter },
{
// Allowing to do validation through DTO
// Since class-validator library default throw BadRequestException, here we use exceptionFactory to throw
// their internal exception so that filter can recognize it
/**
* Allowing to do validation through DTO
* since class-validator library default throw BadRequestException, here we use exceptionFactory to throw
* their internal exception so that filter can recognize it
*/
provide: APP_PIPE,
useFactory: () =>
new ValidationPipe({
Expand Down

0 comments on commit ebffb3d

Please sign in to comment.