Skip to content

Commit 39eb86e

Browse files
chore: initial commit
0 parents  commit 39eb86e

22 files changed

+3956
-0
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
charset = utf-8
8+
indent_style = tab
9+
indent_size = 4
10+
11+
[*.{json,yml},*.md]
12+
trim_trailing_whitespace = false
13+
indent_style = tab
14+
indent_size = 2

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
GROQ_API_KEY=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
2+
HTTPS_PROXY=http://127.0.0.1:7890

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @Silent-Watcher

.github/DEPENDABOT.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory : "/"
5+
schedule:
6+
interval: "monthly"
7+
reviewers:
8+
- "Silent-Watcher"
9+
commit-message:
10+
prefix: 'chore'
11+
scope: "deps"
12+
include: "scope"
13+
target-branch: "dependency-updates"
14+
allow:
15+
- dependency-type: "direct"
16+
open-pull-requests-limit: 5
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/pull_request_template.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
## 🚀 Pull Request Summary
2+
3+
**What does this PR do?**
4+
<!-- A short summary of the changes introduced by this PR -->
5+
6+
---
7+
8+
## 📋 Related Issues
9+
10+
Fixes: #<issue-number>
11+
Related: #<issue-number>
12+
13+
---
14+
15+
## 🔍 Changes in This PR
16+
17+
- [ ] Feature added
18+
- [ ] Bug fixed
19+
- [ ] Refactoring
20+
- [ ] Documentation updated
21+
- [ ] Tests added/updated
22+
- [ ] Other (please describe):
23+
24+
---
25+
26+
## 🧪 How to Test
27+
28+
**Steps to test this PR:**
29+
1. ...
30+
2. ...
31+
3. ...
32+
33+
---
34+
35+
## ✅ Checklist
36+
37+
- [ ] I have tested my code thoroughly.
38+
- [ ] I have reviewed my own code and refactored where necessary.
39+
- [ ] I have added relevant comments and documentation.
40+
- [ ] My changes follow the project's coding style.
41+
- [ ] I have linked the related issues above.
42+
- [ ] I have added or updated tests where applicable.
43+
44+
---
45+
46+
## 💬 Additional Notes
47+
48+
<!-- Anything else reviewers should know -->

.github/workflows/coverage.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: coverage
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout Code
15+
uses: actions/checkout@v3
16+
17+
- name: Use Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: "20"
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Run Unit Tests
26+
run: npm run test
27+
28+
- name: Create badges directory
29+
run: mkdir -p badges
30+
31+
- name: Publish Results Badge
32+
uses: wjervis7/vitest-badge-action@v1.0.0
33+
if: success() || failure() # run whether steps succeed or not
34+
with:
35+
result-type: lines
36+
upload-badge: false
37+
badge-path: badges/vitest.svg
38+
badge-neutral-color: 696969
39+
- name: Commit Badge to Repository
40+
if: success() || failure()
41+
run: |
42+
git config user.name "github-actions[bot]"
43+
git config user.email "github-actions[bot]@users.noreply.github.com"
44+
git add badges/vitest.svg
45+
git commit -m "chore: update vitest badge" || echo "No changes to commit"
46+
git push

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
coverage
3+
dist
4+
.vscode

.husky/pre-commit

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
lint-staged && (
2+
if find . -type f \( -name "*.test.ts" -o -name "*.spec.ts" \) | grep -q .; then
3+
npm test;
4+
else
5+
echo "No test files found, skipping tests";
6+
exit 0;
7+
fi
8+
)

0 commit comments

Comments
 (0)