Skip to content

Commit e4c24d1

Browse files
authored
Merge pull request #46 from ljlm0402/development
Development
2 parents f45c436 + f2d0f74 commit e4c24d1

24 files changed

+68
-44
lines changed

.github/ISSUE_TEMPLATE/bug-report---.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
name: "Bug report \U0001F41B"
3-
about: Create a report to help us improve
2+
name: "Bug Report \U0001F41B"
3+
about: "Create a report to help us improve"
44
title: ""
5-
labels: bug
5+
labels: "Bug"
66
assignees: ""
77
---
88

.github/ISSUE_TEMPLATE/feature-request---.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
name: "Feature request \U0001F4A1"
3-
about: Suggest an idea for this project
2+
name: "Feature Request \U0001F4A1"
3+
about: "Suggest an idea for this project"
44
title: ""
5-
labels: enhancement
5+
labels: "Feature"
66
assignees: ""
77
---
88

.github/ISSUE_TEMPLATE/question--.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
name: Question
3-
about: Ask a question about this project
2+
name: "Question \U00002753"
3+
about: "Ask a question about this project"
44
title: ""
5-
labels: question
5+
labels: "Question"
66
assignees: ""
77
---
88

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ $ cd "project name" && npm run start
6767

6868
```bash
6969
70+
├── /.vscode
71+
│ └── settings.json
72+
7073
├── /src
7174
│ ├── /controllers
7275
│ │ ├── auth.controller.ts
@@ -123,6 +126,7 @@ $ cd "project name" && npm run start
123126
├── .eslintignore
124127
├── .eslintrc
125128
├── .gitignore
129+
├── .huskyrc
126130
├── .prettierrc
127131
├── docker-compose.yml
128132
├── Dockerfile
@@ -175,7 +179,7 @@ Simplify API development for users, teams, and enterprises with the Swagger open
175179

176180
Find out how Swagger can help you design and document your APIs at scale.
177181

178-
Start your typescript-express-starter app in development mode at `http://localhost:3000/swagger`
182+
Start your app in development mode at `http://localhost:3000/api-docs`
179183

180184
Modify `swagger.yaml` file to your source code
181185

lib/default/.huskyrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "npm run lint"
4+
}
5+
}

lib/default/package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,5 @@
1111
"test": "jest --forceExit --detectOpenHandles",
1212
"lint": "eslint --ignore-path .gitignore --ext .ts src/",
1313
"lint:fix": "npm run lint -- --fix"
14-
},
15-
"husky": {
16-
"hooks": {
17-
"pre-commit": "npm run lint"
18-
}
1914
}
2015
}

lib/default/src/tests/auth.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import AuthRoute from '../routes/auth.route';
44
import { CreateUserDto } from '../dtos/users.dto';
55

66
afterAll(async () => {
7-
await new Promise(resolve => setTimeout(() => resolve(), 500));
7+
await new Promise<void>(resolve => setTimeout(() => resolve(), 500));
88
});
99

1010
describe('Testing Auth', () => {

lib/default/src/tests/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import App from '../app';
33
import IndexRoute from '../routes/index.route';
44

55
afterAll(async () => {
6-
await new Promise(resolve => setTimeout(() => resolve(), 500));
6+
await new Promise<void>(resolve => setTimeout(() => resolve(), 500));
77
});
88

99
describe('Testing Index', () => {

lib/default/src/tests/users.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import UserRoute from '../routes/users.route';
66
import { CreateUserDto } from '../dtos/users.dto';
77

88
afterAll(async () => {
9-
await new Promise(resolve => setTimeout(() => resolve(), 500));
9+
await new Promise<void>(resolve => setTimeout(() => resolve(), 500));
1010
});
1111

1212
describe('Testing Users', () => {

lib/default/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"target": "es2017",
44
"lib": ["es2017", "esnext.asynciterable"],
5-
"typeRoots": ["./node_modules/@types", "./src/types"],
5+
"typeRoots": ["./node_modules/@types"],
66
"allowSyntheticDefaultImports": true,
77
"experimentalDecorators": true,
88
"emitDecoratorMetadata": true,

0 commit comments

Comments
 (0)