Skip to content

Commit 4c78ae6

Browse files
committed
init project
1 parent 1217243 commit 4c78ae6

File tree

15 files changed

+5862
-0
lines changed

15 files changed

+5862
-0
lines changed

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "../node_modules/@changesets/config/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": true,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/lint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: reviewdog
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
biome:
13+
name: Biome
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
pull-requests: write
18+
steps:
19+
- name: Checkout Repo
20+
uses: actions/checkout@v4
21+
22+
- name: Run Biome
23+
uses: mongolyy/reviewdog-action-biome@v1
24+
with:
25+
github_token: ${{ secrets.github_token }}
26+
reporter: github-pr-review
27+
fail_on_error: true

.github/workflows/release.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v4
17+
18+
- name: Cache turbo build setup
19+
uses: actions/cache@v4
20+
with:
21+
path: .turbo
22+
key: ${{ runner.os }}-turbo-${{ github.sha }}
23+
restore-keys: |
24+
${{ runner.os }}-turbo-
25+
26+
- name: Setup Node.js 22.x
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 22.x
30+
31+
- name: Setup pnpm
32+
uses: pnpm/action-setup@v4
33+
34+
- name: Install Dependencies & Build
35+
run: |
36+
pnpm i
37+
pnpm run build
38+
39+
- name: Create Release Pull Request or Publish to npm
40+
id: changesets
41+
uses: changesets/action@v1
42+
with:
43+
# Custom versioning script in package.json
44+
version: pnpm ci:version
45+
# Custom versioning script in package.json
46+
publish: pnpm ci:publish
47+
# Messages
48+
commit: 'chore(deploy): Release'
49+
title: 'chore(deploy): Release'
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
53+

.github/workflows/test.yml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
13+
list:
14+
name: List
15+
runs-on: ubuntu-latest
16+
outputs:
17+
package: ${{ steps.turbo-ls.outputs.package }}
18+
steps:
19+
- name: Checkout Repo
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node.js 22.x
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 22.x
26+
27+
- name: Run turbo ls
28+
id: turbo-ls
29+
run: |
30+
ls_output=$(npx turbo ls --output=json)
31+
ls_json=$(echo "$ls_output" | jq -c '.packages.items')
32+
echo "package=$ls_json" >> $GITHUB_OUTPUT
33+
34+
test:
35+
needs: list
36+
name: Test
37+
runs-on: ubuntu-latest
38+
strategy:
39+
matrix:
40+
include: ${{ fromJSON(needs.list.outputs.package) }}
41+
steps:
42+
- name: Checkout Repo
43+
uses: actions/checkout@v4
44+
45+
- name: Cache turbo build setup
46+
uses: actions/cache@v4
47+
with:
48+
path: .turbo
49+
key: ${{ runner.os }}-turbo-${{ github.sha }}
50+
restore-keys: |
51+
${{ runner.os }}-turbo-
52+
53+
- name: Setup Node.js 22.x
54+
uses: actions/setup-node@v4
55+
with:
56+
node-version: 22.x
57+
58+
- name: Setup pnpm
59+
uses: pnpm/action-setup@v4
60+
61+
- name: Install Dependencies
62+
run: pnpm i
63+
64+
- name: Run Test Parallel
65+
run: pnpm run test --filter=${{ matrix.name }}...
66+
67+
- name: Codecov Parallel
68+
uses: codecov/codecov-action@v5
69+
with:
70+
fail_ci_if_error: true
71+
flags: ${{ matrix.name }}
72+
directory: ${{ matrix.path }}
73+
handle_no_reports_found: true
74+
env:
75+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
76+
77+
results:
78+
needs: test
79+
name: Final Results
80+
runs-on: ubuntu-latest
81+
if: ${{ always() }}
82+
steps:
83+
- run: |
84+
result="${{ needs.test.result }}"
85+
if [[ $result == "success" || $result == "skipped" ]]; then
86+
exit 0
87+
else
88+
exit 1
89+
fi
90+

.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
node_modules
5+
.pnp
6+
.pnp.js
7+
8+
# testing
9+
coverage
10+
11+
# next.js
12+
.next/
13+
out/
14+
build
15+
16+
# misc
17+
.DS_Store
18+
*.pem
19+
20+
# debug
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
25+
# local env files
26+
.env
27+
.env.local
28+
.env.development.local
29+
.env.test.local
30+
.env.production.local
31+
32+
# turbo
33+
.turbo
34+
35+
# vercel
36+
.vercel
37+
38+
dist
39+
40+
# .vscode
41+
.vscode/*

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

.lintstagedrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"**/package.json": [
3+
"pnpm run check"
4+
],
5+
"**/*": [
6+
"pnpm run format:fix"
7+
]
8+
}

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auto-install-peers = true

.syncpackrc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "./node_modules/syncpack/dist/schema.json",
3+
"lintFormatting": false,
4+
"sortPackages": true,
5+
"sortFirst": [
6+
"name",
7+
"private",
8+
"description",
9+
"version",
10+
"author",
11+
"license",
12+
"exports",
13+
"main",
14+
"module",
15+
"types",
16+
"files",
17+
"scripts"
18+
]
19+
}

README.md

Whitespace-only changes.

0 commit comments

Comments
 (0)