From 87858924cafa2c663cc4c1503a312a4786e78498 Mon Sep 17 00:00:00 2001 From: siddhant1 Date: Tue, 19 Feb 2019 01:13:15 +0530 Subject: [PATCH 1/2] Added Local Developement Environment Script --- package.json | 2 +- startScript.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 startScript.js diff --git a/package.json b/package.json index d47812ce..336ad199 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "requirejs": "^2.3.5" }, "scripts": { - "start": "react-scripts start", + "start": "node startScript.js && react-scripts start", "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" diff --git a/startScript.js b/startScript.js new file mode 100644 index 00000000..616a8a7f --- /dev/null +++ b/startScript.js @@ -0,0 +1,2 @@ +const fs = require("fs"); +fs.rename("./lib/", "./node_modules/lib", () => console.log("Local Env Set")); From 7d6c1bae865c818c3cd5fdc84d58ee8e25c20fcb Mon Sep 17 00:00:00 2001 From: siddhant1 Date: Tue, 19 Feb 2019 01:14:22 +0530 Subject: [PATCH 2/2] Issues Fixed --- readme.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/readme.md b/readme.md index 5855e07a..3746ebe1 100644 --- a/readme.md +++ b/readme.md @@ -19,9 +19,6 @@ Clone the repository on your local machine and run. npm install ``` -#### Setting up the development environment - -Copy the lib folder, inside the main directory of the project folder, into the node_modules folder (after npm install). These are dependencies required by the sugarizer platform. #### Running the project