Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
8e6a395
feat: Switch from dynamic import to a more explicit approach
hmd-ali Oct 5, 2025
eff689d
fix: Fix deploy.ts to use the exported commands Map
hmd-ali Oct 5, 2025
9e558f4
feat: Add typecheck script and remove zod
hmd-ali Oct 5, 2025
6660944
feat: remove zod
hmd-ali Oct 5, 2025
4cd0d16
feat: create a file for event types
hmd-ali Oct 5, 2025
ce1c40f
feat: create event utils
hmd-ali Oct 5, 2025
9847659
feat: add events barrel export
hmd-ali Oct 5, 2025
a09150d
feat: add commands type
hmd-ali Oct 5, 2025
29ad085
feat: add commands utils
hmd-ali Oct 5, 2025
07356b6
feat: add commands barrel export
hmd-ali Oct 5, 2025
18d612e
refactor: adjust imports paths
hmd-ali Oct 5, 2025
8f6ddba
refactor: adjust events import paths
hmd-ali Oct 5, 2025
8a9fc4c
refactor: update index.ts to accomodate barrel exports and utils
hmd-ali Oct 5, 2025
1baab21
fix: fix bug in rate limiter
hmd-ali Oct 5, 2025
c180739
feat: remove loaders files, logic moved to other files
hmd-ali Oct 5, 2025
e459fb2
feat: Add clampText util
hmd-ali Oct 7, 2025
b8f126d
feat: add web-features lib
hmd-ali Oct 7, 2025
03e7747
refactor: remove web-features pnpm patch
hmd-ali Oct 8, 2025
946ca4c
feat: Set TS's version in vscode settings
hmd-ali Oct 8, 2025
f1a92db
feat: Add fuzzy search util
hmd-ali Oct 8, 2025
0f834d7
refactor: Use `Command` type in `createCommand` util
hmd-ali Oct 8, 2025
9556881
refactor: Remove unnecessary `satisfies` from return type
hmd-ali Oct 8, 2025
34cc21c
feat: Add emoji constants
hmd-ali Oct 8, 2025
1adba44
refactor: Update command consumers to use object arg
hmd-ali Oct 8, 2025
ddf520e
feat: Add shared docs command types
hmd-ali Oct 8, 2025
cfb5c03
feat: Add shared docs commands utils
hmd-ali Oct 8, 2025
ca7e127
feat: Restructure docs commands - add baseline command
hmd-ali Oct 8, 2025
b9eab68
Merge branch 'main' into feat/baseline
hmd-ali Oct 8, 2025
c966730
feat: add `getBaselineFeatures` util
hmd-ali Oct 10, 2025
cc7067f
fix: Fix package.json test script
hmd-ali Oct 10, 2025
33fe1a8
refactor: move providers to the root of docs/ folder
hmd-ali Oct 10, 2025
0899577
test: Add baseline unit tests
hmd-ali Oct 10, 2025
b6ba4dd
feat: add checks before running docs interaction and defer the reply
hmd-ali Oct 10, 2025
55b1efa
feat: use new `getBaselineFeatures`
hmd-ali Oct 10, 2025
4939517
chore(tools): require following curly brace conventions in biome config
hmd-ali Oct 10, 2025
03ec297
chore: use curly braces instead of one line functions
hmd-ali Oct 10, 2025
3784231
refactor: simplify SearchItem type definition in mdn and npm providers
hmd-ali Oct 10, 2025
21c6147
refactor: simplify createBaseConfig function implementation and add e…
hmd-ali Oct 10, 2025
b7cacff
chore(tools): fix test script in ci
hmd-ali Oct 10, 2025
3288f41
chore(tools): fix test scripts #2
hmd-ali Oct 10, 2025
df14435
chore(tools): simplify ci scripts
hmd-ali Oct 10, 2025
d0544cc
chore(tools): Fix typo in script
hmd-ali Oct 10, 2025
2fad4b2
refactor: pick a better name for collection filter function arg
hmd-ali Oct 11, 2025
cfca3b7
refactor: rename variable in component collector for clarity
hmd-ali Oct 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
CLIENT_ID: ${{ secrets.CLIENT_ID }}

- name: Run tests
run: npm test
run: npm run test:ci

- name: Package artifact
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ jobs:
CLIENT_ID: ${{ secrets.CLIENT_ID }}

- name: Run tests
run: npm test
run: npm run test:ci

3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
}
},
"typescript.tsdk": "node_modules/typescript/lib"
}
3 changes: 2 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"style": {
"noNonNullAssertion": "off",
"useConst": "error",
"useTemplate": "error"
"useTemplate": "error",
"useBlockStatements": "error"
},
"suspicious": {
"noExplicitAny": "warn",
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Web Dev & Web Design discord bot",
"type": "module",
"scripts": {
"build:ci": "tsup && node scripts/copy-assets.js",
"build:ci": "npm run build:ts && npm run build:copy",
"build:dev": "pnpm run build:ts && pnpm run build:copy",
"build:ts": "tsup",
"build:copy": "node scripts/copy-assets.js",
Expand All @@ -17,7 +17,8 @@
"check": "biome check .",
"check:fix": "biome check --write .",
"typecheck": "tsc --noEmit",
"test": "node --test",
"test": "pnpm run build:dev && node --test dist/**/*.test.js",
"test:ci": "node --test dist/**/*.test.js",
"prepare": "husky",
"pre-commit": "lint-staged"
},
Expand All @@ -27,7 +28,8 @@
"packageManager": "pnpm@10.17.1",
"dependencies": {
"@discordjs/core": "^2.2.2",
"discord.js": "^14.22.1"
"discord.js": "^14.22.1",
"web-features": "^3.3.0"
},
"devDependencies": {
"@biomejs/biome": "2.2.4",
Expand Down
Loading