Skip to content

Commit

Permalink
Fix compatibility issues with Windows (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziovigevani authored Apr 20, 2020
1 parent dda0c89 commit 5f686cd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.js text eol=lf
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@
"use-wallet": "^0.4.4"
},
"scripts": {
"start": "npm run sync-assets && REACT_APP_BUILD=$(git log --pretty=format:'%h' -n 1) react-app-rewired start",
"start:local": "REACT_APP_CHAIN_ID=1337 npm run start ",
"start:mainnet": "REACT_APP_CHAIN_ID=1 npm run start",
"start:ropsten": "REACT_APP_CHAIN_ID=3 npm run start",
"start:rinkeby": "REACT_APP_CHAIN_ID=4 npm run start",
"start": "npm run sync-assets && cross-env REACT_APP_BUILD=$(git log --pretty=format:'%h' -n 1) react-app-rewired start",
"start:local": "cross-env REACT_APP_CHAIN_ID=1337 npm run start",
"start:mainnet": "cross-env REACT_APP_CHAIN_ID=1 npm run start",
"start:ropsten": "cross-env REACT_APP_CHAIN_ID=3 npm run start",
"start:rinkeby": "cross-env REACT_APP_CHAIN_ID=4 npm run start",
"build": "./scripts/build.sh",
"build:local": "REACT_APP_CHAIN_ID=1337 npm run build",
"build:mainnet": "REACT_APP_CHAIN_ID=1 npm run build",
"build:ropsten": "REACT_APP_CHAIN_ID=3 npm run build",
"build:rinkeby": "REACT_APP_CHAIN_ID=4 npm run build",
"build:local": "cross-env REACT_APP_CHAIN_ID=1337 npm run build",
"build:mainnet": "cross-env REACT_APP_CHAIN_ID=1 npm run build",
"build:ropsten": "cross-env REACT_APP_CHAIN_ID=3 npm run build",
"build:rinkeby": "cross-env REACT_APP_CHAIN_ID=4 npm run build",
"lint": "eslint ./src",
"test": "react-app-rewired test",
"eject": "react-scripts eject",
Expand Down Expand Up @@ -73,6 +73,7 @@
"@urql/devtools": "^0.1.2",
"babel-eslint": "^10.0.3",
"babel-plugin-styled-components": "^1.10.6",
"cross-env": "^7.0.2",
"customize-cra": "^0.9.1",
"eslint": "^6.7.2",
"eslint-config-prettier": "^6.7.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ npm run sync-assets

echo "Building app…"
echo ""
REACT_APP_ENABLE_SENTRY=$enable_sentry REACT_APP_BUILD=$build npx react-app-rewired build
cross-env REACT_APP_ENABLE_SENTRY=$enable_sentry REACT_APP_BUILD=$build npx react-app-rewired build

0 comments on commit 5f686cd

Please sign in to comment.