Migrate from git submodule to npm package management for better developer experience and simplified deployment. Changes: - Add @bookhoard/foliate-js from GitHub fork (john-okeefe/foliate-js#bookhoard-panel-detection) - Update vite alias to point to node_modules instead of vendor - Delete .gitmodules (no submodules tracked) - Remove scripts/setup-git-hooks.sh (no longer needed) - Delete web/vendor/foliate-js/ submodule directory - Remove sc-commit git alias (submodule-specific) Benefits: - Standard npm workflow (npm install / npm update) - No authentication issues for end users (public GitHub) - Simpler deployment (npm ci in containers) - foliate-js protected in node_modules (AI won't rewrite) - Independent project management - Cleaner git history Technical details: - Import remains unchanged: import "foliate-js/view.js" - Vite alias maps "foliate-js" to "/node_modules/@bookhoard/foliate-js" - Build verified working (reader.js includes foliate-js) - Package installed from git branch: bookhoard-panel-detection
36 lines
1.4 KiB
JSON
36 lines
1.4 KiB
JSON
{
|
|
"name": "bookhoard",
|
|
"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": "cp node_modules/htmx.org/dist/htmx.min.js web/static/htmx.min.js && vite build",
|
|
"build:ts:dev": "cp node_modules/htmx.org/dist/htmx.min.js web/static/htmx.min.js && vite build --mode development",
|
|
"build:ts:watch": "cp node_modules/htmx.org/dist/htmx.min.js web/static/htmx.min.js && vite build --watch",
|
|
"build": "npm run build:ts && npm run build:css:prod",
|
|
"dev": "npm run build:ts:dev && npm run build:css"
|
|
},
|
|
"dependencies": {
|
|
"alpinejs": "^3.15.8",
|
|
"chart.js": "^4.5.1",
|
|
"highlight.js": "^11.11.1",
|
|
"htmx.org": "^2.0.8",
|
|
"jszip": "3.10.1",
|
|
"lunr": "^2.3.9",
|
|
"pdfjs-dist": "^5.6.205",
|
|
"@techstark/opencv-js": "^4.12.0-release.1",
|
|
"@tensorflow/tfjs": "^4.22.0",
|
|
"@tensorflow-models/coco-ssd": "^2.2.3",
|
|
"@bookhoard/foliate-js": "github:john-okeefe/foliate-js#bookhoard-panel-detection"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/forms": "^0.5.11",
|
|
"@tailwindcss/typography": "^0.5.19",
|
|
"autoprefixer": "^10.4.27",
|
|
"tailwindcss": "^3.4.19",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^7.3.1"
|
|
}
|
|
}
|