1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
chess/bin/setup
Daniel Barber 9304ba44cb
Use Yarn to install JS dependencies
I thought I was already doing this?!?
2019-05-09 08:51:31 -04:00

22 lines
368 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"
cd assets
yarn install
cd ..