Launch and monitor both Python and JS during development

No longer need to restart python each time any change is made. nodemon will handle that now. Using concurrently because I found it to be better performant than run-p.
This commit is contained in:
blessedcoolant 2022-03-25 07:31:59 +13:00
parent c3157b4e15
commit 481e956c3a
2 changed files with 7 additions and 2 deletions

View File

@ -1 +1,2 @@
REACT_APP_INPAINTING_URL=""
REACT_APP_INPAINTING_URL=""
FAST_REFRESH=false

View File

@ -29,7 +29,9 @@
"typescript": "4.x"
},
"scripts": {
"dev": "run-p watch:css react-scripts:start",
"dev:python": "nodemon --watch ../../* --exec python ../../main.py",
"dev:react": "run-p watch:css react-scripts:start",
"dev": "concurrently \"yarn dev:python\" \"yarn dev:react\"",
"build": "run-s build:css react-scripts:build",
"test": "react-scripts test",
"eject": "react-scripts eject",
@ -55,6 +57,7 @@
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.1.0",
"concurrently": "^7.0.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.2",
@ -62,6 +65,7 @@
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.26.1",
"eslint-plugin-react-hooks": "^4.2.0",
"nodemon": "^2.0.15",
"prettier": "^2.4.1"
}
}