Files
mal/package.json

33 lines
1.4 KiB
JSON

{
"name": "mal",
"private": true,
"type": "module",
"scripts": {
"build:css": "bunx @tailwindcss/cli -i ./static/assets/style.css -o ./dist/tailwind.css",
"watch:css": "bunx @tailwindcss/cli -i ./static/assets/style.css -o ./dist/tailwind.css --watch",
"build:ts": "bun build ./static/player/main.ts --outdir ./dist/static/player --target browser --splitting && bun build ./static/*.ts --outdir ./dist/static --target browser --root ./static --entry-naming \"[name].js\" && cp ./node_modules/htmx.org/dist/htmx.min.js ./dist/static/htmx-lib.js",
"typecheck": "bunx tsc -p tsconfig.json --noEmit",
"build:assets": "bun run build:css && bun run build:ts",
"format": "bunx oxfmt",
"format:check": "bunx oxfmt --check",
"lint": "bun run lint:ts && bun run lint:go",
"lint:ts": "bunx oxlint --ignore-path .oxlintignore static --tsconfig ./tsconfig.json --type-aware --max-warnings 0",
"lint:ts:fix": "bunx oxlint --ignore-path .oxlintignore static --tsconfig ./tsconfig.json --type-aware --max-warnings 0 --fix",
"lint:go": "golangci-lint run ./..."
},
"dependencies": {
"htmx.org": "1.9.12"
},
"devDependencies": {
"@tailwindcss/cli": "^4.2.4",
"@types/node": "^24.0.0",
"jiti": "^2.7.0",
"lefthook": "^2.1.6",
"oxfmt": "^0.52.0",
"oxlint": "^1.67.0",
"oxlint-tsgolint": "^0.23.0",
"tailwindcss": "^4.2.4",
"typescript": "^6.0.3"
}
}