#!/bin/sh

set -e

rm -rf frontend/src/Generated
stack exec -- cardano-explorer-hs2purs --bridge-path ./frontend/src/Generated

cd frontend
rm -rf output node_modules bower_components
npm install # or use yarn install

scripts/generate-backend-lenses.sh
scripts/generate-frontend-lenses.sh

npm start # or use yarn start

# open http://localhost:3100/

#!/bin/sh

set -e

rm -rf frontend/src/Generated
stack exec -- cardano-explorer-hs2purs --bridge-path ./frontend/src/Generated

cd frontend
rm -rf output node_modules bower_components
yarn install # or use npm install

scripts/generate-backend-lenses.sh
scripts/generate-frontend-lenses.sh

yarn start # or use npm start

# open http://localhost:3100/

--- 
+++ 
@@ -7,11 +7,11 @@
 
 cd frontend
 rm -rf output node_modules bower_components
-yarn install # or use npm install
+npm install # or use yarn install
 
 scripts/generate-backend-lenses.sh
 scripts/generate-frontend-lenses.sh
 
-yarn start # or use npm start
+npm start # or use yarn start
 
 # open http://localhost:3100/
[CSM-175] Use npm instead of yarn (because it didn't work for me :/)
