-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
23 lines (23 loc) · 1.27 KB
/
Copy pathpackage.json
File metadata and controls
23 lines (23 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"name": "denovitepreact",
"version": "0.0.1",
"private": false,
"type": "module",
"scripts": {
"start": "npm run dev-client & npm run dev-server",
"prod-server": "deno run --unstable-kv --unstable --allow-env --watch --no-check --allow-read --allow-ffi --allow-run --allow-write --allow-net --allow-sys=networkInterfaces server/main.jsx",
"dev-server": "deno run --unstable-kv --unstable --allow-env --watch --no-check --allow-read --allow-ffi --allow-run --allow-write --allow-net --allow-sys=networkInterfaces server/main.jsx --dev",
"dev-client": "vite client --host",
"preview": "npm run build & npm run prod-server",
"build": "npm run create-index && vite build client --outDir dist --watch",
"final": "deno pack server or deno bundle server",
"deploy": "npm run build && npm run final",
"publish": "rm -d -r ./node_modules && rm package-lock.json && rm server/deno.lock && git publish && npm i",
"create-index": "echo '<script rel=\"preconnect\" type=\"module\" crossorigin src=\"./main.jsx\"></script><link rel=\"stylesheet\" href=\"./index.css\" />' > ./client/index.html",
"delete-index": "rm ./client/index.html && rm ./client/assets/dist/index.html"
},
"devDependencies": {
"@preact/preset-vite": "^2.9.1",
"vite": "^6"
}
}