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!
This commit is contained in:
2025-08-29 22:48:29 +02:00
parent af88e57272
commit 1a0a6b3254
6 changed files with 2912 additions and 0 deletions

45
package.json Normal file
View File

@@ -0,0 +1,45 @@
{
"name": "insertr",
"version": "0.1.0",
"description": "Edit-in-place CMS for client websites - simple integration with class-based content editing",
"main": "demo-site/insertr/insertr.js",
"scripts": {
"dev": "node scripts/dev.js serve",
"dev:about": "live-server demo-site --port=3000 --open=/about.html",
"dev:check": "node scripts/dev.js check",
"dev:demo": "node scripts/dev.js demo",
"dev:help": "node scripts/dev.js help",
"build": "echo 'Build script placeholder - will bundle insertr.js for distribution'",
"test": "echo 'Test script placeholder - will add tests for insertr.js'",
"lint": "echo 'Linting placeholder - will add ESLint'",
"serve": "npm run dev",
"start": "npm run dev"
},
"keywords": [
"cms",
"edit-in-place",
"inline-editing",
"content-management",
"client-websites",
"go",
"htmx",
"alpine"
],
"author": "Your Name",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/yourusername/insertr.git"
},
"devDependencies": {
"live-server": "^1.2.2"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
},
"browserslist": [
"defaults",
"not IE 11"
]
}