-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
25 lines (25 loc) · 1.39 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
{
"name": "denovitepreact",
"version": "0.0.1",
"private": false,
"type": "module",
"scripts": {
"start": "npm install && npm run dev-client & npm run dev-server",
"prod-server": "deno run --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 --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:watch & npm run prod-server",
"build": "vite build client --outDir dist",
"build:watch": "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",
"test": "deno test --allow-net --allow-env --allow-read --allow-write --allow-run"
},
"devDependencies": {
"@preact/preset-vite": "^2.9.2",
"vite": "^6.0.2"
}
}