diff react_games/package.json @ 37:fb9bcd3145cb

[ReactGames] Few games I made using react just to practice few things.
author MrJuneJune <me@mrjunejune.com>
date Mon, 01 Dec 2025 20:22:47 -0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/react_games/package.json	Mon Dec 01 20:22:47 2025 -0800
@@ -0,0 +1,46 @@
+{
+  "name": "tsx-playground",
+  "version": "1.0.0",
+  "description": "",
+  "main": "index.js",
+  "scripts": {
+    "build-current": "esbuild src/current.tsx --bundle --outdir=public/current --splitting --format=esm --loader:.tsx=tsx --sourcemap --watch",
+    "watch-current": "esbuild src/current.tsx --bundle --outfile=public/current/current.js --loader:.tsx=tsx --watch",
+
+    "build-games": "esbuild src/Games.tsx --bundle --outdir=public/games --splitting --format=esm --loader:.tsx=tsx --sourcemap",
+    "watch-games": "esbuild src/Games.tsx --bundle --outdir=public/games --splitting --format=esm --loader:.tsx=tsx --sourcemap --watch",
+
+    "build-todo": "esbuild src/Todo.tsx --bundle --outfile=public/todo/todo.js --format=esm --loader:.tsx=tsx --sourcemap --watch",
+    "watch-todo": "esbuild src/Todo.tsx --bundle --outfile=public/todo/todo.js --loader:.tsx=tsx --watch",
+
+    "serve": "ts-node-dev --respawn --transpile-only --watch backend --ignore-watch node_modules backend/server.ts",
+    "serve-prod": "ts-node-dev --respawn --transpile-only --ignore-watch node_modules backend/server.ts",
+
+    "dev": "concurrently -k \"npm:watch-games\" \"npm:watch-current\" \"npm:watch-todo\" \"npm:serve\"",
+
+    "build-all": "npm run build-games && npm run build-todo",
+
+    "prod": "npm run build-all && npm run serve-prod"
+  },
+  "keywords": [],
+  "author": "",
+  "license": "ISC",
+  "type": "commonjs",
+  "dependencies": {
+    "express": "^5.1.0",
+    "react": "^19.1.1",
+    "react-dom": "^19.1.1"
+  },
+  "devDependencies": {
+    "@types/express": "^5.0.3",
+    "@types/node": "^24.1.0",
+    "@types/react": "^19.1.9",
+    "@types/react-dom": "^19.1.7",
+    "concurrently": "^9.2.0",
+    "esbuild": "^0.25.8",
+    "ts-node": "^10.9.2",
+    "ts-node-dev": "^2.0.0",
+    "typescript": "^5.9.2",
+    "typescript-language-server": "^3.2.0"
+  }
+}