690615:1528 237 #01.1
This commit is contained in:
+17
-7
@@ -28,33 +28,43 @@
|
||||
## Project setup
|
||||
|
||||
```bash
|
||||
$ npm install
|
||||
# ใช้ pnpm (workspace monorepo)
|
||||
$ pnpm install
|
||||
```
|
||||
|
||||
## Compile and run the project
|
||||
|
||||
```bash
|
||||
# development
|
||||
$ npm run start
|
||||
$ pnpm run start
|
||||
|
||||
# watch mode
|
||||
$ npm run start:dev
|
||||
$ pnpm run start:dev
|
||||
|
||||
# production mode
|
||||
$ npm run start:prod
|
||||
$ pnpm run start:prod
|
||||
```
|
||||
|
||||
## Run tests
|
||||
|
||||
```bash
|
||||
# unit tests
|
||||
$ npm run test
|
||||
$ pnpm run test
|
||||
|
||||
# e2e tests
|
||||
$ npm run test:e2e
|
||||
$ pnpm run test:e2e
|
||||
|
||||
# test coverage
|
||||
$ npm run test:cov
|
||||
$ pnpm run test:cov
|
||||
```
|
||||
|
||||
## Linting
|
||||
|
||||
```bash
|
||||
# ใช้ pnpm exec หรือ pnpm แทน npx
|
||||
$ pnpm exec eslint "src/**/*.ts"
|
||||
# หรือ
|
||||
$ pnpm eslint "src/**/*.ts"
|
||||
```
|
||||
|
||||
## Deployment
|
||||
|
||||
Reference in New Issue
Block a user