Skip to content

Commit dec76d4

Browse files
committed
chore: husky 🐕
1 parent 8025516 commit dec76d4

23 files changed

+2316
-1981
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 16 deletions
This file was deleted.

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/copilot-instructions.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
## Interaction with User
2-
3-
- When you want to ask a question in the middle of your thinking, you could use the MCP tool request_user_input
4-
- Always ask for clarification if you feel uncertain in your response
5-
- Always ask for confirmation if you feel uncertain in your response
6-
- Feel free to ask for more information if you need it
7-
8-
## AI Notes - Cursor Documentation System
9-
10-
- Always read .notes/README.md
11-
- Update the files in .notes folder when you learn something
12-
- when user input "!rmb", do a self reflection and store the key knowledge in .notes folder
1+
## Interaction with User
2+
3+
- When you want to ask a question in the middle of your thinking, you could use the MCP tool request_user_input
4+
- Always ask for clarification if you feel uncertain in your response
5+
- Always ask for confirmation if you feel uncertain in your response
6+
- Feel free to ask for more information if you need it
7+
8+
## AI Notes - Cursor Documentation System
9+
10+
- Always read .notes/README.md
11+
- Update the files in .notes folder when you learn something
12+
- when user input "!rmb", do a self reflection and store the key knowledge in .notes folder

.github/workflows/publish.yml

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
name: Release Package
2-
3-
on:
4-
push:
5-
branches:
6-
- main # Trigger on pushes to the main branch
7-
8-
jobs:
9-
release:
10-
name: Release
11-
runs-on: ubuntu-latest
12-
permissions:
13-
contents: write # Needed to push tags, update package.json, create releases
14-
issues: write # Needed to comment on issues/PRs linked in commits
15-
pull-requests: write # Needed to comment on issues/PRs linked in commits
16-
id-token: write # Needed for npm provenance if enabled
17-
18-
steps:
19-
- name: Checkout repository
20-
uses: actions/checkout@v4
21-
with:
22-
fetch-depth: 0 # Fetch all history for semantic-release analysis
23-
persist-credentials: false # Recommended for semantic-release
24-
25-
- name: Setup pnpm
26-
uses: pnpm/action-setup@v4
27-
with:
28-
version: latest
29-
30-
- name: Setup Node.js
31-
uses: actions/setup-node@v4
32-
with:
33-
node-version: '20'
34-
cache: 'pnpm'
35-
36-
- name: Install dependencies
37-
run: pnpm install --frozen-lockfile
38-
39-
- name: Build package
40-
run: pnpm run build
41-
42-
- name: Run semantic-release
43-
run: npx semantic-release
44-
env:
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1+
name: Release Package
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Trigger on pushes to the main branch
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write # Needed to push tags, update package.json, create releases
14+
issues: write # Needed to comment on issues/PRs linked in commits
15+
pull-requests: write # Needed to comment on issues/PRs linked in commits
16+
id-token: write # Needed for npm provenance if enabled
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0 # Fetch all history for semantic-release analysis
23+
persist-credentials: false # Recommended for semantic-release
24+
25+
- name: Setup pnpm
26+
uses: pnpm/action-setup@v4
27+
with:
28+
version: latest
29+
30+
- name: Setup Node.js
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: '20'
34+
cache: 'pnpm'
35+
36+
- name: Install dependencies
37+
run: pnpm install --frozen-lockfile
38+
39+
- name: Build package
40+
run: pnpm run build
41+
42+
- name: Run semantic-release
43+
run: npx semantic-release
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
node_modules/
2-
dist/
3-
.env
4-
*.log
5-
.vscode/
6-
localtestscript/
1+
node_modules/
2+
dist/
3+
.env
4+
*.log
5+
.vscode/
6+
localtestscript/
77
.cursor

.husky/pre-commit

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
# Format code with Prettier
4+
pnpm format
5+
# Lint and fix code with ESLint
6+
pnpm lint --fix
7+
# Stage the potential changes made by formatters/linters
8+
git add .
9+
10+
# Check types (existing command)
11+
pnpm check-types

.prettierrc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
{
2-
"semi": true,
3-
"singleQuote": true,
4-
"printWidth": 80,
5-
"tabWidth": 2,
6-
"trailingComma": "all",
7-
"endOfLine": "lf"
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"printWidth": 80,
5+
"tabWidth": 2,
6+
"trailingComma": "all",
7+
"endOfLine": "lf"
88
}

.releaserc.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
branches:
2-
- main
3-
plugins:
4-
- '@semantic-release/commit-analyzer':
5-
preset: conventionalcommits
6-
- '@semantic-release/release-notes-generator':
7-
preset: conventionalcommits
8-
- '@semantic-release/git':
9-
assets:
10-
- package.json
11-
- pnpm-lock.yaml
12-
message: "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
13-
- '@semantic-release/npm'
14-
- '@semantic-release/github' # Handles creating GitHub Releases
1+
branches:
2+
- main
3+
plugins:
4+
- '@semantic-release/commit-analyzer':
5+
preset: conventionalcommits
6+
- '@semantic-release/release-notes-generator':
7+
preset: conventionalcommits
8+
- '@semantic-release/git':
9+
assets:
10+
- package.json
11+
- pnpm-lock.yaml
12+
message: "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
13+
- '@semantic-release/npm'
14+
- '@semantic-release/github' # Handles creating GitHub Releases

LICENSE

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
MIT License
2-
3-
Copyright (c) 2025 ttommyth
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
1+
MIT License
2+
3+
Copyright (c) 2025 ttommyth
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)