-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fastify v4 support major refactor new config BREAKING CHANGE: new configuration (incompatible with all previous versions) Closes #44, #41, #10
- Loading branch information
Showing
103 changed files
with
11,920 additions
and
8,601 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
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 |
---|---|---|
|
@@ -20,27 +20,29 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [10.x, 12.x, 14.x, 16.x] | ||
node-version: [16.x, 18.x] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install dependencies | ||
run: npm ci | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
run_install: | | ||
- recursive: true | ||
args: [--frozen-lockfile, --strict-peer-dependencies] | ||
- name: Build | ||
run: npm run build --if-present | ||
run: pnpm run build --if-present | ||
- name: Audit | ||
run: npm audit --production | ||
run: pnpm audit --production | ||
- name: Lint | ||
run: npm run lint --if-present | ||
run: pnpm run lint --if-present | ||
- name: Test | ||
run: npm run unit --if-present -- --coverage | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
run: pnpm run unit --if-present -- --coverage | ||
- name: Archive code coverage results | ||
if: matrix.node-version == '14.x' | ||
if: matrix.node-version == '18.x' | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: code-coverage-report | ||
|
@@ -57,20 +59,24 @@ jobs: | |
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: npm ci | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
run_install: | | ||
- recursive: true | ||
args: [--frozen-lockfile, --strict-peer-dependencies] | ||
- name: Store version | ||
run: npm run version:update | ||
run: pnpm run version:update | ||
- name: Commit version changes | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
run: | | ||
git config --global user.name 'Release Bot' | ||
git config --global user.email '[email protected]' | ||
npm run release | ||
pnpm run release | ||
- name: Commit version changes | ||
if: ${{ github.ref == 'refs/heads/next' }} | ||
run: | | ||
git config --global user.name 'Release Bot' | ||
git config --global user.email '[email protected]' | ||
npm run release -- --prerelease rc --skip.changelog | ||
pnpm run release -- --prerelease rc --skip.changelog |
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
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
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
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 |
---|---|---|
@@ -1,8 +1,4 @@ | ||
.idea | ||
node_modules | ||
deploy | ||
build | ||
coverage | ||
config/local.* | ||
**/*.xxx.js | ||
dist/ | ||
temp/ | ||
node_modules/ | ||
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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
nginx/ | ||
build/ | ||
dist/ | ||
coverage/ | ||
static/ | ||
node_modules/ | ||
**/*.conf | ||
**/*.min.* | ||
pnpm-lock.yaml |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/prettierrc", | ||
"arrowParens": "always", | ||
"bracketSpacing": true, | ||
"endOfLine": "lf", | ||
"plugins": [ | ||
"./node_modules/prettier-plugin-organize-imports", | ||
"./node_modules/prettier-plugin-packagejson", | ||
"./node_modules/prettier-plugin-sort-json", | ||
"./node_modules/prettier-plugin-jsdoc" | ||
], | ||
"printWidth": 80, | ||
"quoteProps": "consistent", | ||
"semi": true, | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"trailingComma": "es5", | ||
"tsdoc": true, | ||
"useTabs": false | ||
} |
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,32 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"name": "vscode-jest-tests.v2", | ||
"request": "launch", | ||
"runtimeExecutable": "/home/m03geek/.local/share/pnpm/node", | ||
"args": [ | ||
"--runInBand", | ||
"--watchAll=false", | ||
"--testTimeout=100000000", | ||
"--testNamePattern", | ||
"${jest.testNamePattern}", | ||
"--runTestsByPath", | ||
"${jest.testFile}" | ||
], | ||
// "runtimeArgs": ["--preserve-symlinks"], | ||
"cwd": "${workspaceFolder}", | ||
"console": "integratedTerminal", | ||
"internalConsoleOptions": "neverOpen", | ||
"disableOptimisticBPs": true, | ||
"program": "${workspaceFolder}/node_modules/jest/bin/jest.js", | ||
"windows": { | ||
"program": "${workspaceFolder}/node_modules/jest/bin/jest" | ||
} | ||
} | ||
] | ||
} |
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,4 @@ | ||
{ | ||
"jest.autoRun": "off", | ||
"jest.coverageFormatter": "GutterFormatter" | ||
} |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
Feel free to contribute to this project. | ||
|
||
* Make sure that all your changes fit codestyle, run `npm run lint`. | ||
* Make sure that all your changes have tests, run `npm run unit`. | ||
* Make sure that all your changes have documented in [README](README.md). | ||
* Make sure that all your commits follow conventional commit [guide](https://conventionalcommits.org/). | ||
- Use `pnpm` to manage deps. | ||
- Make sure that all your changes fit codestyle, run `pnpm run lint`. | ||
- Make sure that all your changes have tests, run `pnpm run unit`. | ||
- Make sure that all your changes have documented in [README](README.md). | ||
- Make sure that all your commits follow conventional commit [guide](https://conventionalcommits.org/). |
Oops, something went wrong.