- Add tsconfig.json with ES2020 target and strict mode - Convert tailwind.config.js to TypeScript - Update package.json with build scripts: - build:ts - Compile TypeScript - build:ts:watch - Watch mode for development - Updated paths for web/ directory structure - Set up proper TypeScript compilation pipeline
19 lines
655 B
JSON
19 lines
655 B
JSON
{
|
|
"name": "bookmann",
|
|
"version": "1.0.0",
|
|
"description": "A self-hosted ebook management system",
|
|
"scripts": {
|
|
"build:css": "tailwindcss -i ./web/static/input.css -o ./web/static/style.css --watch",
|
|
"build:css:prod": "tailwindcss -i ./web/static/input.css -o ./web/static/style.css --minify",
|
|
"build:ts": "tsc",
|
|
"build:ts:watch": "tsc --watch",
|
|
"postinstall": "mkdir -p web/static && curl -L https://unpkg.com/htmx.org@1.9.10/dist/htmx.min.js -o web/static/htmx.min.js"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/forms": "^0.5.7",
|
|
"autoprefixer": "^10.4.0",
|
|
"tailwindcss": "^3.4.0",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|