-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
38 lines (38 loc) · 1.31 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"name": "bun-elysia-jsx-blog",
"module": "src/index.ts",
"type": "module",
"devDependencies": {
"@eslint/compat": "^1.1.1",
"@eslint/js": "^9.7.0",
"@types/bun": "latest",
"eslint": "9.x",
"eslint-plugin-react": "^7.35.0",
"globals": "^15.8.0",
"lightningcss-cli": "^1.25.1",
"prettier": "^3.3.3",
"typescript-eslint": "^7.17.0"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"dependencies": {
"@elysiajs/static": "^1.1.0",
"elysia": "^1.1.3",
"marked": "^13.0.2",
"preact": "^10.22.1",
"preact-render-to-string": "^6.5.6"
},
"scripts": {
"generate_dev": "bun src/generate.tsx",
"generate": "NODE_ENV=production bun out/generate.js",
"test": "bun test --watch --timeout 1000 --rerun-each 2 --coverage",
"dev": "bun run --watch src/index.ts",
"build": "bun build --target=bun --outdir ./out src/index.ts && bun build --target=bun --outdir ./out src/generate.tsx && bun lightningcss --minify --bundle --targets '>= 0.25%' src/styles/main.css -o public/main.css",
"server_builded": "bun out/index.js",
"server": "NODE_ENV=production PORT=3000 bun out/index.js",
"lint": "eslint 'src/**/*.{css,html,ts,tsx}'",
"format": "prettier --write 'src/**/*.{css,html,ts,tsx}'",
"prod": "bun run generate && bun run server"
}
}