Skip to content

Commit ea21ef0

Browse files
committed
2 parents b291f58 + cd21a4e commit ea21ef0

3 files changed

Lines changed: 125 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: ['22.12.0']
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v5
20+
21+
- name: Setup Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v5
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
cache: 'npm'
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Run linter
31+
run: npm run format:check
32+
33+
- name: Run tests
34+
run: npm test
35+
36+
- name: Build
37+
run: npm run clean && tsdown && node docs/scripts/post-build.js
38+
39+
- name: Check package can be installed
40+
run: npm pack --dry-run

.npmignore

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,67 @@
1-
.env
1+
# Source files
2+
packages/
3+
src/
4+
*.ts
5+
*.tsx
6+
!*.d.ts
7+
8+
# Config files
9+
tsconfig.json
10+
tsdown.config.ts
11+
vitest.config.ts
12+
.eslintrc*
13+
.prettierrc*
14+
biome.json
15+
16+
# Development files
17+
.env
18+
.env.*
19+
!.env.example
20+
*.log
21+
*.tgz
22+
23+
# Test files
24+
**/__tests__/
25+
**/*.test.ts
26+
**/*.test.tsx
27+
**/*.spec.ts
28+
**/*.spec.tsx
29+
setupVitest.ts
30+
31+
# Build artifacts
32+
*.tsbuildinfo
33+
.cache/
34+
35+
# Documentation (keep in git but not in npm)
36+
docs/
37+
HACKNOTTS.md
38+
HACKNOTTS.md.example
39+
40+
# Git
41+
.git/
42+
.gitignore
43+
.gitattributes
44+
45+
# CI/CD
46+
.github/
47+
48+
# IDE
49+
.vscode/
50+
.idea/
51+
*.swp
52+
*.swo
53+
*~
54+
55+
# OS
56+
.DS_Store
57+
Thumbs.db
58+
59+
# Package managers
60+
node_modules/
61+
package-lock.json
62+
yarn.lock
63+
pnpm-lock.yaml
64+
65+
# Misc
66+
.husky/
67+
lint-staged

package.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
],
1212
"scripts": {
1313
"build": "tsdown && node docs/scripts/post-build.js && npm install -g . --force",
14+
"prepublishOnly": "npm run clean && tsdown && node docs/scripts/post-build.js",
1415
"dev": "tsc -w",
1516
"clean": "rm -rf dist packages/*/dist",
1617
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --cache",
@@ -20,8 +21,23 @@
2021
"test:watch": "vitest"
2122
},
2223
"keywords": [
23-
"toolkit",
24-
"utilities"
24+
"cli",
25+
"ai",
26+
"chatbot",
27+
"terminal",
28+
"openai",
29+
"anthropic",
30+
"claude",
31+
"gpt",
32+
"gemini",
33+
"hackathon",
34+
"hacknotts",
35+
"ai-chat",
36+
"interactive-cli",
37+
"ai-providers",
38+
"mcp",
39+
"ink",
40+
"react"
2541
],
2642
"author": "Pleasurecruise, IvanHanloth",
2743
"license": "MIT",

0 commit comments

Comments
 (0)