Skip to content

Commit

Permalink
feat: add hot reloading
Browse files Browse the repository at this point in the history
add hot reloading to compile ts in watch mode while server is running

Hot reload when dev mode saisilinus#12
  • Loading branch information
saisilinus committed Apr 26, 2022
1 parent 3decabe commit 8a11c8a
Show file tree
Hide file tree
Showing 122 changed files with 45 additions and 3,519 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ cp .env.example .env

- **ES9**: latest ECMAScript features
- **Static Typing**: [TypeScript](https://www.typescriptlang.org/) static typing using typescript
- **Hot Reloading**: [Concurrently](https://github.com/open-cli-tools/concurrently) Hot realoding with concurrently
- **NoSQL database**: [MongoDB](https://www.mongodb.com) object data modeling using [Mongoose](https://mongoosejs.com)
- **Authentication and authorization**: using [passport](http://www.passportjs.org)
- **Validation**: request data validation using [Joi](https://github.com/hapijs/joi)
Expand Down Expand Up @@ -159,22 +160,20 @@ yarn prettier:fix

## Making Changes

Add your changes to TypeScript(.ts) files which are in the src folder.

Add tests for the new feature

Run `yarn test:ts` to make sure all Typescript tests pass.
Run `yarn dev` so you can compile Typescript(.ts) files in watch mode

```bash
yarn test:ts
yarn dev
```

Make sure `dist\modules\swagger\components.yaml` matches `src\modules\swagger\components.yaml`. Do this for any other non-ts/non-js files that you may have
Add your changes to TypeScript(.ts) files which are in the src folder. The files will be automatically compiled to JS if you are in watch mode.

Compile your TS files to JS by running `yarn compile`
Add tests for the new feature

Run `yarn test:ts` to make sure all Typescript tests pass.

```bash
yarn compile
yarn test:ts
```

## Linting Errors After Compiling
Expand Down
53 changes: 0 additions & 53 deletions dist/app.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/app.js.map

This file was deleted.

65 changes: 0 additions & 65 deletions dist/config/config.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/config/config.js.map

This file was deleted.

7 changes: 0 additions & 7 deletions dist/config/roles.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/config/roles.js.map

This file was deleted.

35 changes: 0 additions & 35 deletions dist/index.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/index.js.map

This file was deleted.

45 changes: 0 additions & 45 deletions dist/modules/auth/auth.controller.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/modules/auth/auth.controller.js.map

This file was deleted.

30 changes: 0 additions & 30 deletions dist/modules/auth/auth.middleware.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/modules/auth/auth.middleware.js.map

This file was deleted.

Loading

0 comments on commit 8a11c8a

Please sign in to comment.