mirror of
https://dev.azure.com/tstanciu94/PhantomMind/_git/Bitip
synced 2025-10-13 01:52:19 +03:00
feat: add debug scripts for backend and frontend development
This commit is contained in:
parent
ee20b85c9e
commit
30171365b3
@ -5,7 +5,9 @@
|
||||
"main": "dist/backend/index.js",
|
||||
"scripts": {
|
||||
"dev": "concurrently \"npm run dev:backend\" \"npm run dev:frontend\"",
|
||||
"dev:debug": "concurrently \"npm run dev:backend:debug\" \"npm run dev:frontend\"",
|
||||
"dev:backend": "cd src/backend && npm run dev",
|
||||
"dev:backend:debug": "cd src/backend && npm run dev:debug",
|
||||
"dev:frontend": "cd src/frontend && npm run dev",
|
||||
"build": "npm run build:backend && npm run build:frontend",
|
||||
"build:backend": "cd src/backend && npm run build",
|
||||
|
11
src/backend/nodemon-debug.json
Normal file
11
src/backend/nodemon-debug.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"watch": ["."],
|
||||
"ext": "ts,json",
|
||||
"ignore": ["**/*.spec.ts", "**/*.test.ts", "node_modules", "dist"],
|
||||
"exec": "node --inspect --import ./register.js index.ts",
|
||||
"delay": 1000,
|
||||
"env": {
|
||||
"NODE_ENV": "development",
|
||||
"NODE_OPTIONS": "--experimental-specifier-resolution=node"
|
||||
}
|
||||
}
|
@ -6,6 +6,7 @@
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
"dev": "nodemon",
|
||||
"dev:debug": "nodemon --config nodemon-debug.json",
|
||||
"build": "tsup",
|
||||
"start": "node dist/index.js",
|
||||
"lint": "eslint .",
|
||||
|
Loading…
x
Reference in New Issue
Block a user