1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
chess/bin/setup
2023-02-12 13:44:00 -06:00

22 lines
393 B
Bash
Executable File

#!/usr/bin/env sh
echo "🧹 Removing previous build artifacts"
rm -rf deps _build
echo "🎁 Installing dependencies and compiling"
mix local.hex --force
mix deps.get
mix deps.compile
mix compile
# Set up database
echo "💾 Setting up the database"
mix ecto.create
mix ecto.migrate
# Grab JS dependencies from NPM
echo "🕸️ Installing js dependencies"
pushd assets
yarn install
popd