-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
27 lines (21 loc) · 863 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
echo "Pulling down submodules"
git submodule update --init
echo "Switch to main branch"
cd apps/petal_components && git checkout main && git pull && cd ../..
cd apps/petal_boilerplate && git checkout main && git pull && cd ../..
echo "Updating petal_boilerplate..."
cp ./setup/petal_boilerplate/config.exs ./apps/petal_boilerplate/config
cp ./setup/petal_boilerplate/dev.exs ./apps/petal_boilerplate/config
cp ./setup/petal_boilerplate/mix.exs ./apps/petal_boilerplate
cp ./setup/petal_boilerplate/tailwind.config.js ./apps/petal_boilerplate/assets
cp ./setup/petal_boilerplate/app.css ./apps/petal_boilerplate/assets/css
echo "Mix setup on boilerplate"
cd apps/petal_boilerplate && mix setup && cd ../..
echo "Fetch Tailwind and Esbuild CLI"
cd apps/petal_boilerplate
mix deps.get
mix tailwind.install
mix esbuild.install
cd ../..
mix deps.get