Skip to content

Commit 964d863

Browse files
lukeclaude
andcommitted
Initial commit with implementation plan and documentation
- Created plan.md with step-by-step implementation phases - Updated CLAUDE.md with project guide and development progress - Added HTML examples and TypeScript configuration files - Set up proper .gitignore 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
0 parents  commit 964d863

File tree

11 files changed

+1479
-0
lines changed

11 files changed

+1479
-0
lines changed

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Node.js / Bun
2+
node_modules/
3+
bun.lockb
4+
5+
# Build outputs
6+
dist/
7+
build/
8+
.cache/
9+
10+
# Environment variables
11+
.env
12+
.env.local
13+
.env.development.local
14+
.env.test.local
15+
.env.production.local
16+
17+
# Editor directories and files
18+
.idea/
19+
.vscode/
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
26+
# OS specific
27+
.DS_Store
28+
Thumbs.db
29+
30+
# Logs
31+
*.log
32+
npm-debug.log*
33+
yarn-debug.log*
34+
yarn-error.log*

CLAUDE.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Claude's Guide to html-package-bundle
2+
3+
## Commands
4+
- Build: `bun run index.ts`
5+
- Dev: `bun --watch index.ts`
6+
- Format: Use 2-space indentation in TS/JS, 4-space in HTML
7+
- Type check: `bun tsc --noEmit`
8+
- Run tests: `bun test` (when implemented)
9+
- Git commit: `git add . && git commit -m "Your message"`
10+
11+
## Code Style
12+
- Use semicolons at end of statements
13+
- Prefer ES6+ features (arrow functions, destructuring, etc.)
14+
- Add JSDoc comments for functions and components
15+
- Use descriptive variable/function names
16+
- Follow strict TypeScript practices with explicit types
17+
- Keep HTML semantic and properly indented
18+
- Use async/await for asynchronous operations
19+
- Organize code in logical component structures
20+
- Handle errors with try/catch blocks where appropriate
21+
22+
## Project Structure
23+
This project creates a self-modifying single-file HTML app that bundles JavaScript package files into one HTML file. The implementation follows a phased approach outlined in `plan.md`.
24+
25+
## Development Progress
26+
We're tracking development progress in the `plan.md` file, which outlines the implementation phases and technical considerations. Refer to this document for the current status and next steps.
27+
28+
## Environment Handling
29+
The app needs to handle different environments (file://, localhost, and https://) with appropriate feature support for each context.

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# html-package-bundle
2+
3+
To install dependencies:
4+
5+
```bash
6+
bun install
7+
```
8+
9+
To run:
10+
11+
```bash
12+
bun run index.ts
13+
```
14+
15+
This project was created using `bun init` in bun v1.2.2. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.

bun.lock

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"lockfileVersion": 1,
3+
"workspaces": {
4+
"": {
5+
"name": "html-package-bundle",
6+
"devDependencies": {
7+
"@types/bun": "latest",
8+
},
9+
"peerDependencies": {
10+
"typescript": "^5.0.0",
11+
},
12+
},
13+
},
14+
"packages": {
15+
"@types/bun": ["@types/[email protected]", "", { "dependencies": { "bun-types": "1.2.7" } }, "sha512-t8L1RvJVUghW5V+M/fL3Thbxcs0HwNsXsnTEBEfEVqGteiJToOlZ/fyOEaR1kZsNqnu+3XA4RI/qmnX4w6+S+w=="],
16+
17+
"@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.20.0" } }, "sha512-Zs/Ollc1SJ8nKUAgc7ivOEdIBM8JAKgrqqUYi2J997JuKO7/tpQC+WCetQ1sypiKCQWHdvdg9wBNpUPEWZae7w=="],
18+
19+
"@types/ws": ["@types/[email protected]", "", { "dependencies": { "@types/node": "*" } }, "sha512-8svvI3hMyvN0kKCJMvTJP/x6Y/EoQbepff882wL+Sn5QsXb3etnamgrJq4isrBxSJj5L2AuXcI0+bgkoAXGUJw=="],
20+
21+
"bun-types": ["[email protected]", "", { "dependencies": { "@types/node": "*", "@types/ws": "*" } }, "sha512-P4hHhk7kjF99acXqKvltyuMQ2kf/rzIw3ylEDpCxDS9Xa0X0Yp/gJu/vDCucmWpiur5qJ0lwB2bWzOXa2GlHqA=="],
22+
23+
"typescript": ["[email protected]", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ=="],
24+
25+
"undici-types": ["[email protected]", "", {}, "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg=="],
26+
}
27+
}

0 commit comments

Comments
 (0)