hs-ts/install.sh
2021-08-25 08:06:16 -04:00

11 lines
324 B
Bash

cabal install --overwrite-policy=always
echo "Built + Installed Haskell artifacts"
devtool typescript > frontend/src/Api.ts
echo "Generated up to date TypeScript types"
cd frontend
yarn build
cd ..
cabal clean
cabal install --overwrite-policy=always
echo "Re-compiled backend with the frontend artifacts embedded within it"