Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
"author": {
"name": "PassionFactory"
}
}
}
2 changes: 1 addition & 1 deletion .claude/rules/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ https://opencode.ai/docs/formatters/
https://code.claude.com/docs/en/hooks
https://code.claude.com/docs/en/hooks-guide
https://biomejs.dev/guides/editors/create-an-extension/#use-the-lsp-proxy
https://github.com/oxc-project/oxc/tree/main/crates/oxc_language_server
https://github.com/oxc-project/oxc/tree/main/crates/oxc_language_server
5 changes: 3 additions & 2 deletions .claude/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"Bash(bun run build)",
"Bash(bun run test)",
"Bash(bun run lint)",
"Bash(bun run lint:fix:*)"
"Bash(bun run lint:fix:*)",
"mcp__github__issue_write"
],
"deny": [],
"ask": []
Expand All @@ -23,4 +24,4 @@
}
]
}
}
}
60 changes: 60 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Install dependencies
run: bun install

- name: Lint
run: bun run lint

typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Install dependencies
run: bun install

- name: Typecheck
run: bun run typecheck

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Install dependencies
run: bun install

- name: Test with coverage
run: bun test --coverage --coverage-reporter=lcov

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
fail_ci_if_error: false
4 changes: 2 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: "22"
registry-url: "https://registry.npmjs.org"
node-version: '22'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: bun install
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ bun.lockb
Thumbs.db
.turbo/

# Lint
.eslintcache

# Coverage
coverage/

2 changes: 1 addition & 1 deletion .mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"url": "https://mcp.exa.ai/mcp?tools=web_search_exa"
}
}
}
}
19 changes: 19 additions & 0 deletions .please/memory/tasklist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"session_id": "20251217-oxc-formatter-support",
"feature_name": "Add oxc formatter (oxfmt) support to packages/format",
"created_at": "2025-12-17T10:00:00Z",
"updated_at": "2025-12-17T10:00:00Z",
"status": "in_progress",
"current_phase": 1,
"phases": [
{ "number": 1, "name": "Discovery", "status": "in_progress", "started_at": "2025-12-17T10:00:00Z" },
{ "number": 2, "name": "Codebase Exploration", "status": "pending" },
{ "number": 3, "name": "Clarifying Questions", "status": "pending" },
{ "number": 4, "name": "Architecture Design", "status": "pending" },
{ "number": 5, "name": "GitHub Issue & PR", "status": "pending" },
{ "number": 6, "name": "Implementation", "status": "pending" },
{ "number": 7, "name": "Quality Review", "status": "pending" },
{ "number": 8, "name": "PR Finalization", "status": "pending" }
],
"tasks": []
}
598 changes: 596 additions & 2 deletions bun.lock

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import antfu from '@antfu/eslint-config'

export default antfu({
typescript: true,
ignores: [
'dist',
'npm',
'node_modules',
],
})
14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"name": "code-please",
"type": "module",
"version": "0.1.2",
"packageManager": "bun@1.3.3",
"description": "Auto-format and type-check hooks for AI coding",
"type": "module",
"workspaces": [
"packages/*"
],
"engines": {
"bun": ">=1.0.0"
},
"scripts": {
"start": "bun run packages/code/src/cli.ts",
"dev": "turbo dev",
"lint": "eslint --cache .",
"lint:fix": "eslint --cache --fix .",
"typecheck": "turbo typecheck",
"test": "turbo test",
"build": "turbo build",
Expand All @@ -23,12 +29,10 @@
"zod": "^3.25.0"
},
"devDependencies": {
"@antfu/eslint-config": "^6.7.1",
"@types/bun": "latest",
"eslint": "^9.39.2",
"turbo": "^2.6.3",
"typescript": "^5.7.0"
},
"packageManager": "bun@1.3.3",
"engines": {
"bun": ">=1.0.0"
}
}
36 changes: 18 additions & 18 deletions packages/code/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
{
"name": "@pleaseai/code",
"type": "module",
"version": "0.1.1",
"description": "Auto-format and type-check hooks for AI coding",
"type": "module",
"author": "Minsu Lee",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/pleaseai/code"
},
"keywords": [
"claude-code",
"hooks",
"formatter",
"lsp",
"ai-coding"
],
"main": "src/index.ts",
"bin": {
"code": "src/cli.ts"
},
"files": [
"hooks",
"src"
],
"scripts": {
"dev": "bun --watch run src/cli.ts",
"build": "echo 'Build handled by root build:npm'",
Expand All @@ -20,22 +37,5 @@
"devDependencies": {
"@types/bun": "latest",
"typescript": "^5.7.0"
},
"files": [
"src",
"hooks"
],
"keywords": [
"claude-code",
"hooks",
"formatter",
"lsp",
"ai-coding"
],
"author": "Minsu Lee",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/pleaseai/code"
}
}
Loading