Skip to content

Commit

Permalink
Add variations on start and build scripts for Windows systems (#155)
Browse files Browse the repository at this point in the history
* Add variations on start and build scripts for Windows systems

These scripts set an environment variable before invoking
react-app-rewired. The syntax for doing this is different on Windows
systems. Two new scripts are defined to make these actions available to
Windows users.

* Use cross-env to support start and build tasks on Mac, Windows, and Linux

---------

Co-authored-by: Chris Moesel <cmoesel@mitre.org>
  • Loading branch information
mint-thompson and cmoesel authored Apr 1, 2024
1 parent 8a48e63 commit faa9520
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
28 changes: 28 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
},
"devDependencies": {
"cors": "^2.8.5",
"cross-env": "^7.0.3",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3",
"express": "^4.18.2",
Expand All @@ -50,8 +51,8 @@
}
},
"scripts": {
"start": "NODE_OPTIONS=--openssl-legacy-provider react-app-rewired start",
"build": "NODE_OPTIONS=--openssl-legacy-provider react-app-rewired build",
"start": "cross-env NODE_OPTIONS=--openssl-legacy-provider react-app-rewired start",
"build": "cross-env NODE_OPTIONS=--openssl-legacy-provider react-app-rewired build",
"serve-build": "node scripts/serve-build.js",
"lint": "eslint \"./src/**/*.js\"",
"lint-fix": "eslint \"./src/**/*.js\" --fix",
Expand Down

0 comments on commit faa9520

Please sign in to comment.