From e4f6665bebc1ad2a7b99c20e540146363cfc9425 Mon Sep 17 00:00:00 2001 From: Marcos Martinez Date: Wed, 9 Dec 2020 12:25:08 -0800 Subject: [PATCH] Install cross-env and use it to start the app using the port 3010 --- phs-gdc-dashboard/package-lock.json | 46 +++++++++++++++++++++++++++++ phs-gdc-dashboard/package.json | 3 +- 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/phs-gdc-dashboard/package-lock.json b/phs-gdc-dashboard/package-lock.json index 1634bad..72c46e6 100644 --- a/phs-gdc-dashboard/package-lock.json +++ b/phs-gdc-dashboard/package-lock.json @@ -4470,6 +4470,52 @@ "sha.js": "^2.4.8" } }, + "cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "requires": { + "cross-spawn": "^7.0.1" + }, + "dependencies": { + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "requires": { + "isexe": "^2.0.0" + } + } + } + }, "cross-spawn": { "version": "6.0.5", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", diff --git a/phs-gdc-dashboard/package.json b/phs-gdc-dashboard/package.json index 3f179d8..fc85c47 100644 --- a/phs-gdc-dashboard/package.json +++ b/phs-gdc-dashboard/package.json @@ -9,6 +9,7 @@ "@testing-library/jest-dom": "^5.11.5", "@testing-library/react": "^11.1.1", "@testing-library/user-event": "^12.2.0", + "cross-env": "^7.0.3", "fontsource-roboto": "^3.0.3", "react": "^16.14.0", "react-dom": "^16.14.0", @@ -17,7 +18,7 @@ "web-vitals": "^0.2.4" }, "scripts": { - "start": "react-scripts start", + "start": "cross-env PORT=3010 react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject"