Skip to content

Commit

Permalink
Add dev + prod modes.
Browse files Browse the repository at this point in the history
  • Loading branch information
IMB11 committed Dec 13, 2024
1 parent 097413e commit b88de11
Show file tree
Hide file tree
Showing 7 changed files with 630 additions and 24 deletions.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
"description": "A free and open-source project that aims to provide an easily accessible translation service for Minecraft mod developers through crowdsourcing",
"private": true,
"main": "build/server.mjs",
"type": "module",
"scripts": {
"build": "concurrently \"pnpm:build:fastify\" \"pnpm:build:nextjs\"",
"postinstall": "cd ./src/nextjs-app && pnpm install",
"build:fastify": "vite build --outDir build --ssr src/server.ts",
"build:nextjs": "cd ./src/nextjs-app && pnpm run build",
"dev": "concurrently \"pnpm:build:fastify\" \"pnpm:dev:nextjs\"",
"dev": "concurrently \"tsx src/server.ts\" \"pnpm dev:nextjs\"",
"dev:nextjs": "cd ./src/nextjs-app && pnpm run dev",
"start": "pnpm run build && node build/server.mjs",
"format": "prettier --config .prettierrc \"src/**/*.{js,json,ts,css,scss,vue,html,md}\" --write"
},
Expand All @@ -28,6 +30,8 @@
"concurrently": "^8.2.2",
"jsdom": "^20.0.2",
"prettier": "^3.3.2",
"ts-node-dev": "^2.0.0",
"tsx": "^3.12.7",
"vite": "^3.2.4"
}
}
Loading

0 comments on commit b88de11

Please sign in to comment.