generated from AlbertHernandez/express-typescript-service-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cd04f7b
Showing
82 changed files
with
11,798 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
* | ||
!/package.json | ||
!/package-lock.json | ||
!/tsconfig.prod.json | ||
!/tsconfig.json | ||
!/.swcrc | ||
!/nodemon.json | ||
!/src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PORT=3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
NODE_ENV=test | ||
PORT=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dist/ | ||
node_modules/ | ||
coverage/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "tsconfig.json", | ||
"sourceType": "module", | ||
"ecmaVersion": 2022 | ||
}, | ||
"plugins": ["@typescript-eslint", "simple-import-sort"], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-type-checked", | ||
"plugin:prettier/recommended", | ||
"plugin:unicorn/recommended", | ||
"plugin:node/recommended" | ||
], | ||
"rules": { | ||
"simple-import-sort/imports": "error", | ||
"simple-import-sort/exports": "error", | ||
"unicorn/prefer-module": "off", | ||
"unicorn/prefer-top-level-await": "off", | ||
"unicorn/prevent-abbreviations": "off", | ||
"no-console": "warn", | ||
"node/no-missing-import": "off", | ||
"node/no-unsupported-features/es-syntax": [ | ||
"error", | ||
{ "ignores": ["modules"] } | ||
], | ||
"node/no-unpublished-import": "off", | ||
"no-process-exit": "off" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts"], | ||
"rules": { | ||
"simple-import-sort/imports": [ | ||
"error", | ||
{ | ||
"groups": [ | ||
[ | ||
"^(assert|buffer|child_process|cluster|console|constants|crypto|dgram|dns|domain|events|fs|http|https|module|net|os|path|punycode|querystring|readline|repl|stream|string_decoder|sys|timers|tls|tty|url|util|vm|zlib|freelist|v8|process|async_hooks|http2|perf_hooks)(/.*|$)" | ||
], | ||
["^node:.*\\u0000$", "^@?\\w.*\\u0000$", "^[^.].*\\u0000$", "^\\..*\\u0000$"], | ||
["^\\u0000"], | ||
["^node:"], | ||
["^@?\\w"], | ||
["^@/tests(/.*|$)"], | ||
["^@/src(/.*|$)"], | ||
["^@/app(/.*|$)"], | ||
["^@/shared(/.*|$)"], | ||
["^@/contexts(/.*|$)"], | ||
["^"], | ||
["^\\."] | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"files": ["scripts/**"], | ||
"rules": { | ||
"no-console": "off" | ||
} | ||
}, | ||
{ | ||
"files": ["tests/**"], | ||
"plugins": ["vitest"], | ||
"extends": ["plugin:vitest/recommended"], | ||
"rules": { | ||
"@typescript-eslint/unbound-method": "off", | ||
"vitest/expect-expect": "off", | ||
"vitest/no-standalone-expect": "off" | ||
} | ||
}, | ||
{ | ||
"files": ["tests/performance/**"], | ||
"rules": { | ||
"unicorn/numeric-separators-style": "off", | ||
"unicorn/no-anonymous-default-export": "off", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-unsafe-member-access": "off", | ||
"no-undef": "off" | ||
} | ||
} | ||
], | ||
"env": { | ||
"node": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @AlbertHernandez |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "" | ||
labels: "🐞 Bug" | ||
assignees: "" | ||
--- | ||
|
||
# Prerequisites | ||
|
||
- [ ] I checked to make sure that this issue has not already been filed | ||
|
||
**Describe the bug** | ||
|
||
A clear and concise description of what the bug is. Include what is current behavior and what are you expecting. Add screenshots if needed and error details in JSON format so it can be easy to copy and paste. | ||
|
||
**To Reproduce** | ||
|
||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Context** | ||
|
||
Node Versions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: "" | ||
labels: "👀 Feature Requested" | ||
assignees: "" | ||
--- | ||
|
||
# Prerequisites | ||
|
||
- [ ] I checked the documentation and found no answer | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## Proposed changes | ||
|
||
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue. | ||
|
||
## Checklist | ||
|
||
_Put an `x` in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code._ | ||
|
||
- [ ] I have added tests that prove my fix is effective or that my feature works | ||
- [ ] I have added necessary documentation (if appropriate) | ||
- [ ] Any dependent changes have been merged and published in downstream modules | ||
|
||
## Further comments | ||
|
||
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: 'Setup node' | ||
|
||
description: 'Setup node with project version and install dependencies' | ||
|
||
inputs: | ||
version: | ||
description: 'Node version to use' | ||
required: false | ||
npm_token: | ||
description: 'NPM Token' | ||
required: false | ||
default: '' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Authenticate npm 🔑 | ||
shell: bash | ||
run: echo "//registry.npmjs.org/:_authToken=${{ inputs.npm_token }}" > ~/.npmrc | ||
- name: Cache Dependencies ⌛️ | ||
uses: actions/cache@v4 | ||
id: cache-node-modules | ||
with: | ||
path: 'node_modules' | ||
key: ${{ runner.os }}-node_modules-${{ hashFiles('package*.json') }}-${{ hashFiles('.github/actions/setup-node/action.yml') }}-node-${{ hashFiles('.nvmrc') }}-${{ inputs.version }} | ||
- name: Setup Node ⚙️ | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ inputs.version }} | ||
node-version-file: '.nvmrc' | ||
cache: npm | ||
- name: Install dependencies 📥 | ||
if: steps.cache-node-modules.outputs.cache-hit != 'true' | ||
shell: bash | ||
run: npm ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
schedule: | ||
interval: 'daily' | ||
labels: | ||
- '📦 Dependencies' | ||
commit-message: | ||
prefix: 'fix' | ||
prefix-development: 'chore' | ||
include: 'scope' | ||
versioning-strategy: 'increase' | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: 'daily' | ||
labels: | ||
- '📦 Dependencies' | ||
- '🚀 CI/CD' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
- name: 👀 Feature Requested | ||
description: Request for a feature | ||
color: 07D90A | ||
- name: ignore-for-release | ||
description: Ignore pull request for a new release | ||
color: 9C28FC | ||
- name: todo | ||
description: Action we need to perform at some moment | ||
color: 82FC28 | ||
- name: 💻 Source | ||
description: Indicates the scope is related to the own service logic | ||
color: FDC720 | ||
- name: 🧪 Tests | ||
description: Indicates the scope is related to the tests | ||
color: 088E26 | ||
- name: ⚙️ Configuration | ||
description: Indicates the scope is related to the configuration | ||
color: BDBDBD | ||
- name: 🐳 Build | ||
description: Indicates the change is related to the build | ||
color: 0FD4DA | ||
- name: 🚀 CI/CD | ||
description: Indicates the change is related to CI/CD workflows | ||
color: FF4D4D | ||
- name: 🏠 Github Configuration | ||
description: Indicates the change is related to github settings | ||
color: 555555 | ||
- name: 🚀 Feature | ||
description: Feature added in the PR | ||
color: F10505 | ||
- name: 🐞 Bug | ||
description: Bug identified | ||
color: F4D03F | ||
- name: 🕵🏻 Fix | ||
description: Fix applied in the PR | ||
color: F4D03F | ||
- name: ⚠️ Breaking Change | ||
description: Breaking change in the PR | ||
color: F1F800 | ||
- name: 📦 Dependencies | ||
description: Pull requests that update a dependency file | ||
color: 95A5A6 | ||
- name: 📝 Documentation | ||
description: Improvements or additions to documentation | ||
color: 228AFF | ||
- name: 🤦 Duplicate | ||
description: This issue or pull request already exists | ||
color: 17202A | ||
- name: 🤩 size/xs | ||
description: Pull request size XS | ||
color: 27AE60 | ||
- name: 🥳 size/s | ||
description: Pull request size S | ||
color: 2ECC71 | ||
- name: 😎 size/m | ||
description: Pull request size M | ||
color: F1C40F | ||
- name: 😖 size/l | ||
description: Pull request size L | ||
color: F39C12 | ||
- name: 🤯 size/xl | ||
description: Pull request size XL | ||
color: E67E22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
💻 Source: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- src/** | ||
|
||
🧪 Tests: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- tests/** | ||
- vitest.config.**.ts | ||
- create-vitest-test-config.ts | ||
- .env.test | ||
- scripts/calculate-global-test-coverage.ts | ||
- .nycrc.json | ||
|
||
📝 Documentation: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- docs/** | ||
- README.md | ||
- images/** | ||
|
||
🐳 Build: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- .dockerignore | ||
- Dockerfile | ||
- docker-compose.yml | ||
- .nvmrc | ||
- .swcrc | ||
- tsconfig.json | ||
- tsconfig.prod.json | ||
|
||
⚙️ Configuration: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- .dockerignore | ||
- .editorconfig | ||
- .env.example | ||
- .eslintignore | ||
- .eslintrc | ||
- .gitignore | ||
- .npmignore | ||
- .npmrc | ||
- .nvmrc | ||
- .prettierignore | ||
- .swcrc | ||
- .yamllint.yml | ||
- commitlint.config.ts | ||
- vitest.config.**.ts | ||
- create-vitest-test-config.ts | ||
- .env.test | ||
- lint-staged.config.mjs | ||
- .nycrc.json | ||
- prettier.config.mjs | ||
- tsconfig.json | ||
- tsconfig.prod.json | ||
- nodemon.json | ||
|
||
📦 Dependencies: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- package.json | ||
- package-lock.json | ||
|
||
🚀 CI/CD: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- .github/workflows/** | ||
- .github/dependabot.yml | ||
- .github/pr-scope-labeler.yml | ||
- .husky/** | ||
|
||
🏠 Github Configuration: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- .github/ISSUE_TEMPLATE/** | ||
- .github/CODEOWNERS | ||
- .github/labels.yml | ||
- .github/PULL_REQUEST_TEMPLATE.md |
Oops, something went wrong.