Skip to content

Commit 2d5401e

Browse files
committed
AI bootstrap for my own sake. just need something works well enough - it may be slop but it works for me for now
1 parent 57a8f30 commit 2d5401e

41 files changed

Lines changed: 8902 additions & 2 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.cjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
browser: true,
5+
es2020: true,
6+
node: true
7+
},
8+
parser: "@typescript-eslint/parser",
9+
plugins: ["@typescript-eslint"],
10+
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
11+
ignorePatterns: ["dist", "node_modules"],
12+
rules: {
13+
"@typescript-eslint/no-explicit-any": "off",
14+
"@typescript-eslint/consistent-type-imports": "error"
15+
}
16+
};

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: "20"
20+
cache: "npm"
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Lint
26+
run: npm run lint
27+
28+
- name: Type check
29+
run: npm run typecheck
30+
31+
- name: Run tests with coverage
32+
run: npm run test:coverage
33+
34+
- name: Build
35+
run: npm run build
36+
37+
- name: Upload coverage report
38+
uses: codecov/codecov-action@v4
39+
with:
40+
files: ./coverage/lcov.info
41+
fail_ci_if_error: true

.gitignore

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# Dependencies
2+
node_modules/
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
6+
pnpm-debug.log*
7+
lerna-debug.log*
8+
9+
# Build outputs
10+
dist/
11+
build/
12+
*.tsbuildinfo
13+
14+
# Test coverage
15+
coverage/
16+
*.lcov
17+
.nyc_output/
18+
19+
# Environment variables
20+
.env
21+
.env.local
22+
.env.*.local
23+
24+
# IDE and editor files
25+
.vscode/
26+
.idea/
27+
*.swp
28+
*.swo
29+
*~
30+
.DS_Store
31+
*.sublime-project
32+
*.sublime-workspace
33+
34+
# OS files
35+
.DS_Store
36+
.DS_Store?
37+
._*
38+
.Spotlight-V100
39+
.Trashes
40+
ehthumbs.db
41+
Thumbs.db
42+
Desktop.ini
43+
44+
# Logs
45+
logs/
46+
*.log
47+
48+
# Temporary files
49+
tmp/
50+
temp/
51+
*.tmp
52+
53+
# Optional npm cache directory
54+
.npm
55+
56+
# Optional eslint cache
57+
.eslintcache
58+
59+
# Optional REPL history
60+
.node_repl_history
61+
62+
# Output of 'npm pack'
63+
*.tgz
64+
65+
# Yarn Integrity file
66+
.yarn-integrity
67+
68+
# parcel-bundler cache
69+
.cache
70+
.parcel-cache
71+
72+
# Next.js (if ever used)
73+
.next
74+
out
75+
76+
# Nuxt.js (if ever used)
77+
.nuxt
78+
79+
# Rollup cache
80+
.rollup.cache
81+
82+
# TypeScript cache
83+
*.tsbuildinfo
84+
85+
# Optional stylelint cache
86+
.stylelintcache
87+
88+
# Microbundle cache
89+
.rpt2_cache/
90+
.rts2_cache_cjs/
91+
.rts2_cache_es/
92+
.rts2_cache_umd/
93+
94+
# Optional REPL history
95+
.node_repl_history
96+
97+
# Yarn v2
98+
.yarn/cache
99+
.yarn/unplugged
100+
.yarn/build-state.yml
101+
.yarn/install-state.gz
102+
.pnp.*

.npmignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Source files (only dist is published)
2+
src/
3+
*.config.js
4+
*.config.ts
5+
tsconfig*.json
6+
vitest.config.ts
7+
.eslintrc.cjs
8+
9+
# Test files (exclude from dist too)
10+
dist/__tests__/
11+
dist/**/*.test.d.ts
12+
dist/**/*.test.js
13+
coverage/
14+
15+
# Development files
16+
.git/
17+
.gitignore
18+
.github/
19+
20+
# IDE files
21+
.vscode/
22+
.idea/
23+
*.swp
24+
*.swo
25+
26+
# OS files
27+
.DS_Store
28+
Thumbs.db
29+
30+
# Logs
31+
*.log
32+
npm-debug.log*
33+
34+
# Build artifacts that shouldn't be published
35+
*.tsbuildinfo

0 commit comments

Comments
 (0)