chore: set different ports for React projects

So two examples can be started at the same time to test things faster.
This commit is contained in:
fryorcraken.eth 2022-09-15 16:21:13 +10:00
parent 394635a049
commit 9668c7c97d
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
"react-scripts": "5.0.1"
},
"scripts": {
"start": "craco start",
"start": "PORT=3001 craco start",
"build": "craco build",
"test": "exit 0",
"eject": "craco eject"

View File

@ -15,7 +15,7 @@
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"start": "PORT=3002 react-scripts start",
"build": "react-scripts build",
"test": "exit 0",
"eject": "react-scripts eject"

View File

@ -29,7 +29,7 @@
"url": "^0.11.0"
},
"scripts": {
"start": "react-scripts start",
"start": "PORT=3003 react-scripts start",
"build": "react-scripts build",
"test:unit": "exit 0",
"fix": "run-s fix:*",