diff --git a/lama_cleaner/app/.env b/lama_cleaner/app/.env index 3a85ad7..b6f760a 100644 --- a/lama_cleaner/app/.env +++ b/lama_cleaner/app/.env @@ -1 +1,2 @@ -REACT_APP_INPAINTING_URL="" \ No newline at end of file +REACT_APP_INPAINTING_URL="" +FAST_REFRESH=false \ No newline at end of file diff --git a/lama_cleaner/app/package.json b/lama_cleaner/app/package.json index ade8cbe..51b6b5d 100644 --- a/lama_cleaner/app/package.json +++ b/lama_cleaner/app/package.json @@ -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" } }