package.json
json
| 1 | { |
| 2 | "name": "musehub-frontend", |
| 3 | "version": "0.1.0", |
| 4 | "scripts": { |
| 5 | "build:js": "esbuild musehub/templates/musehub/static/js/app.ts --bundle --format=iife --minify --outfile=musehub/templates/musehub/static/app.js", |
| 6 | "build:embed-player": "esbuild musehub/templates/musehub/static/js/embed-player.ts --bundle --format=iife --minify --outfile=musehub/templates/musehub/static/embed-player.js", |
| 7 | "build:css": "sass --style=compressed --no-source-map musehub/templates/musehub/static/scss/app.scss musehub/templates/musehub/static/app.css", |
| 8 | "build:embed": "sass --style=compressed --no-source-map musehub/templates/musehub/static/scss/embed.scss musehub/templates/musehub/static/embed.css", |
| 9 | "build": "npm run build:js && npm run build:embed-player && npm run build:css && npm run build:embed && node -e \"require('fs').writeFileSync('musehub/templates/musehub/static/.cache-id', String(Date.now()))\"", |
| 10 | "watch:js": "esbuild musehub/templates/musehub/static/js/app.ts --bundle --format=iife --outfile=musehub/templates/musehub/static/app.js --watch", |
| 11 | "watch:css": "sass --watch musehub/templates/musehub/static/scss/app.scss musehub/templates/musehub/static/app.css", |
| 12 | "type-check": "tsc --noEmit" |
| 13 | }, |
| 14 | "devDependencies": { |
| 15 | "@types/node": "^22.0.0", |
| 16 | "esbuild": "^0.27.3", |
| 17 | "sass": "^1.89.2", |
| 18 | "typescript": "^5.9.3" |
| 19 | }, |
| 20 | "dependencies": { |
| 21 | "@types/d3": "^7.4.3", |
| 22 | "d3": "^7.9.0", |
| 23 | "highlight.js": "^11.11.1" |
| 24 | } |
| 25 | } |