Commit Graph

5 Commits

Author SHA1 Message Date
21ce92bf61 cleanup: remove binaries and build artifacts from git tracking
Remove large files that should not be committed:
- insertr binary (19MB) - generated Go executable
- test-output/ and client-dist/ - build output directories
- demo-site/insertr.js - generated from lib/dist/insertr.js
- internal/content/assets/*.js - embedded build artifacts
- outdated integration/version control summary files
- log files (server.log)

Update .gitignore to exclude:
- Compiled binaries (insertr, insertr.exe)
- Generated assets (demo-site/insertr.js, internal/content/assets/*.js)
- Build output directories (test-output/, client-dist/)
- Database files (*.db) and log files (*.log)
- Air temporary files

Repository size reduction: ~20MB+ of unnecessary tracked files removed
2025-09-10 22:34:15 +02:00
91cf377d77 refactor: restore root-level development workflow with enhanced tooling
- Add root package.json with development scripts and dependencies
- Move scripts/ from lib back to root for intuitive developer experience
- Clean lib/package.json to contain only runtime dependencies
- Add comprehensive justfile with cross-platform command shortcuts
- Update README.md with new development workflow instructions
- Maintain lib as clean, publishable package while enabling root-level commands
2025-09-08 18:16:34 +02:00
ae9d8e4058 refactor: implement script tag approach for library inclusion
- Add script tags to demo-site HTML files for manual development
- Disable CLI inline script injection to prevent duplicate scripts
- Add library serving endpoints to servedev command
- Update build process to auto-copy library to demo-site
- Add CDN URL helpers for future production deployment
- Update .gitignore for generated demo-site files

Fixes .insertr-gate authentication for manual npm run serve workflow
while maintaining clean separation between CLI and manual setups.
2025-09-07 18:28:34 +02:00
ca3df47451 feat: complete code cleanup and create feature parity plan
Major Architecture Improvements:
- Separate JavaScript library (lib/) with proper build system
- Go CLI with embedded library using go:embed
- Hot reload development with Air integration
- Library + CLI build pipeline with npm run build

Code Cleanup:
- Remove obsolete assets (insertr-cli/assets/editor/)
- Clean up package.json metadata and dependencies
- Update .gitignore for new architecture
- Remove unused 'marked' dependency

New Documentation:
- Add comprehensive TODO.md with feature gap analysis
- Document critical gaps between prototype and current library
- Create phased implementation plan for feature parity
- Update DEVELOPMENT.md with hot reload workflow
- Add LIBRARY.md documenting new architecture

Hot Reload System:
- Air watches both Go CLI and JavaScript library
- Library changes trigger: rebuild → copy → CLI rebuild → serve
- Seamless development experience across full stack

Next Steps:
- Current library is basic proof-of-concept (prompt() editing)
- Archived prototype has production-ready features
- Phase 1 focuses on professional forms and authentication
- Phase 2 adds validation and content persistence
2025-09-03 19:11:54 +02:00
1a0a6b3254 Add development workflow and project setup
🛠️ Development Infrastructure:
- package.json with npm scripts for development
- live-server for hot reload during development
- Custom dev helper script with project validation
- Comprehensive .gitignore for Node.js and Go

📖 Documentation:
- Updated README.md with project overview and quick start
- DEVELOPMENT.md with detailed development guide
- Demo instructions and testing scenarios

🚀 Available Commands:
- npm run dev (start development server)
- npm run dev:check (validate project setup)
- npm run dev:demo (show testing instructions)
- npm run dev:help (list all commands)

 Features:
- Live reload on file changes
- Project health checking
- 18 editable elements detected
- 14.3KB core library size

Next: Ready for active development and testing!
2025-08-29 22:48:29 +02:00