-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade to fastify v5, and more
- Loading branch information
1 parent
dcd3774
commit ca0f5ea
Showing
37 changed files
with
1,128 additions
and
628 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": ["@changesets/changelog-github", { "repo": "theogravity/boilerplate-typescript-monorepo" }], | ||
"changelog": ["@changesets/changelog-github", { "repo": "theogravity/fastify-starter-turbo-monorepo" }], | ||
"access": "public", | ||
"baseBranch": "main" | ||
} |
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,37 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
lint: | ||
name: Linting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
|
||
- name: Use pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 9.11.0 | ||
|
||
- name: Install Dependencies | ||
run: pnpm install --frozen-lockfile --prefer-offline | ||
|
||
- name: Build workspace packages | ||
run: pnpm build | ||
|
||
- name: Run package checking | ||
run: pnpm run lint:packages | ||
|
||
- name: Run type checking | ||
run: pnpm run typecheck | ||
|
||
- name: Run linting | ||
run: pnpm run lint |
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,52 @@ | ||
name: Snapshot Release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
PNPM_CACHE_FOLDER: .pnpm-store | ||
|
||
jobs: | ||
snapshot: | ||
name: Snapshot Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
|
||
- name: Use pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 9.11.0 | ||
|
||
- name: setup pnpm config | ||
run: pnpm config set store-dir $PNPM_CACHE_FOLDER | ||
|
||
- name: Install Dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Build workspace packages | ||
run: pnpm build | ||
|
||
- name: Run package checking | ||
run: pnpm run lint:packages | ||
|
||
- name: Run type checking | ||
run: pnpm run typecheck | ||
|
||
- name: Run linting | ||
run: pnpm run lint | ||
|
||
- name: Create Snapshot Release | ||
run: | | ||
pnpm run version-packages --snapshot "${{ github.ref_name }}" | ||
echo '---' | ||
echo 'Detected Changes:' | ||
git diff | ||
echo '---' | ||
pnpm run release --tag "${{ github.ref_name }}" --no-git-tag |
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,58 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
env: | ||
PNPM_CACHE_FOLDER: .pnpm-store | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
release: | ||
name: Releasing | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
|
||
- name: Use pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 9.11.0 | ||
|
||
- name: setup pnpm config | ||
run: pnpm config set store-dir $PNPM_CACHE_FOLDER | ||
|
||
- name: Install Dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Build workspace packages | ||
run: pnpm build | ||
|
||
- name: Run package checking | ||
run: pnpm run lint:packages | ||
|
||
- name: Run type checking | ||
run: pnpm run typecheck | ||
|
||
- name: Run linting | ||
run: pnpm run lint | ||
|
||
- name: Create Release Pull Request / Publish Packages | ||
uses: changesets/action@v1 | ||
with: | ||
publish: pnpm run release | ||
version: pnpm run version-packages | ||
commit: 'chore: release package(s)' | ||
title: 'chore: release package(s)' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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,42 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: Testing | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
|
||
- name: Use pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 9.11.0 | ||
|
||
- name: Install Dependencies | ||
run: pnpm install --frozen-lockfile --prefer-offline | ||
|
||
- name: Build workspace packages | ||
run: pnpm build | ||
|
||
- name: Branch Information | ||
run: | | ||
echo "Git Branch: $(git branch)" | ||
echo "Git Log: $(git log --oneline)" | ||
echo "HEAD SHA: $(git rev-parse HEAD)" | ||
echo "HEAD^1 SHA: $(git rev-parse HEAD^1)" | ||
echo "Git Diff: $(git diff HEAD^1)" | ||
- name: Run Package(s) Tests | ||
run: | | ||
pnpm run test |
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 |
---|---|---|
|
@@ -130,3 +130,4 @@ dist | |
.pnp.* | ||
.idea/ | ||
.turbo/ | ||
.hashes.json |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"include": ["src/**", "package.json"], | ||
"execOnChange": "pnpm run build", | ||
"hashFile": ".hashes.json" | ||
} |
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,9 +1,6 @@ | ||
import ajvFormats from "ajv-formats"; | ||
import ajvSanitizer from "ajv-sanitizer"; | ||
|
||
export const ajvPlugins = [ | ||
// https://www.npmjs.com/package/ajv-sanitizer | ||
ajvSanitizer, | ||
// https://ajv.js.org/packages/ajv-formats.html | ||
ajvFormats, | ||
]; |
Oops, something went wrong.