Packages

Installer and new project generator for Aino

Current section

Files

Jump to
aino_new priv templates bin setup
Raw

priv/templates/bin/setup

#!/usr/bin/env bash
set -exu -o pipefail
# Install elixir/erlang/node via asdf if present
if command -v asdf &> /dev/null
then
(asdf plugin list | grep erlang) || asdf plugin install erlang
(asdf plugin list | grep elixir) || asdf plugin install elixir
(asdf plugin list | grep nodejs) || asdf plugin install nodejs
asdf install erlang
asdf install elixir
asdf install nodejs
fi
mix deps.get
mix ecto.create
mix ecto.migrate
(cd assets && npm install && npm run build:css)