Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@
"url": "git+https://github.com/bosonprotocol/interface.git"
},
"scripts": {
"dev": "react-app-rewired start",
"build": "react-app-rewired --max-old-space-size=8192 build",
"build:nomaps": "cross-env GENERATE_SOURCEMAP=false react-app-rewired build",
"set-version": "export REACT_APP_RELEASE_NAME=$(git describe --tags) && export REACT_APP_RELEASE_TAG=$(git describe --tags)",
"dev": "run-script-os",
"dev:default": "npm run set-version && react-app-rewired start",
"dev:win32": ".\\scripts\\react-app-rewired.cmd start",
"build": "run-script-os",
"build:default": "npm run set-version && react-app-rewired --max-old-space-size=8192 build",
"build:win32": ".\\scripts\\react-app-rewired.cmd --max-old-space-size=8192 build",
"build:nomaps": "git fetch --tags && git branch && run-script-os",
"build:nomaps:default": "npm run set-version && GENERATE_SOURCEMAP=false react-app-rewired build",
"build:nomaps:win32": "set GENERATE_SOURCEMAP=false && .\\scripts\\react-app-rewired.cmd build",
"analyze": "cross-env ANALYZE_BUNDLE=true react-app-rewired build",
"eject": "react-app-rewired eject",
"lint": "eslint --ignore-path ./.gitignore --ext .js,.ts,.tsx . --fix",
Expand Down
8 changes: 8 additions & 0 deletions scripts/react-app-rewired.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@echo off
git describe --tags>%TEMP%/version
set /P REACT_APP_RELEASE_NAME=<%TEMP%/version
set /P REACT_APP_RELEASE_TAG=<%TEMP%/version
set REACT_APP_RELEASE_NAME
set REACT_APP_RELEASE_TAG
set GENERATE_SOURCEMAP
react-app-rewired %*
Loading