Skip to content

Commit

Permalink
chore: toolchain runs start/build for devnet or build for testnet if …
Browse files Browse the repository at this point in the history
…required by Netlify
  • Loading branch information
jaybuidl committed Oct 11, 2023
1 parent 92f1c42 commit 6d2a0bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/.env.local.public
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Do not enter sensitive information here.
export REACT_APP_DEPLOYMENT=devnet
export REACT_APP_KLEROS_CORE_SUBGRAPH_DEVNET=http://localhost:8000/subgraphs/name/kleros/kleros-v2-core-local
export REACT_APP_DISPUTE_TEMPLATE_ARBGOERLI_SUBGRAPH_DEVNET=https://api.thegraph.com/subgraphs/name/alcercu/disputetemplateregistryarbgrli2
export REACT_APP_DISPUTE_TEMPLATE_ARBGOERLI_SUBGRAPH_DEVNET=https://api.thegraph.com/subgraphs/name/alcercu/templateregistrydevnet
8 changes: 5 additions & 3 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
"packageManager": "[email protected]",
"scripts": {
"clear": "rm -fr ../.parcel-cache dist/bundle.js",
"start": "scripts/runEnv.sh devnet 'yarn generate && parcel'",
"start-testnet": "scripts/runEnv.sh testnet 'yarn generate && parcel'",
"start": "yarn start-devnet",
"start-local": "scripts/runEnv.sh local 'yarn generate && parcel'",
"build": "node scripts/gitInfo.js && yarn generate && parcel build",
"start-devnet": "scripts/runEnv.sh devnet 'yarn generate && parcel'",
"start-testnet": "scripts/runEnv.sh testnet 'yarn generate && parcel'",
"build": "yarn build-${REACT_APP_DEPLOYMENT:-devnet}",
"build-local": "scripts/runEnv.sh local 'yarn generate && parcel build'",
"build-devnet": "scripts/runEnv.sh devnet 'yarn generate && parcel build'",
"build-testnet": "scripts/runEnv.sh testnet 'yarn generate && parcel build'",
"check-style": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
Expand Down

0 comments on commit 6d2a0bd

Please sign in to comment.