-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
68 lines (52 loc) · 1.51 KB
/
start.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#\/usr/bin/bash
BLUE='\033[0;34m'
BBLUE='\033[1;34m'
BGREEN='\033[1;32m'
BYELLOW='\033[1;33m'
BRED='\033[1;31m'
NC='\033[0m'
printf "${BLUE}
__ __ __ __ _ _ _ _
| \/ | | \/ | | | | (_) (_)
| \ / |_ _| \ / |_ _| | |_ _ ___ _ __ _
| |\/| | | | | |\/| | | | | | __| / __| |/ _\` |
| | | | |_| | | | | |_| | | |_| \__ \ | (_| |
|_| |_|\__, |_| |_|\__,_|_|\__|_|___/_|\__, |
__/ | __/ |
|___/ |___/
${BBLUE}Let's make sure git is installed 📦
${NC}"
# Verify if git is installed
if ! [ -x "$(command -v git)" ]; then
printf "${BRED}Git is not installed. Please install it before running this script.
${NC}"
exit 1
fi
printf "${BGREEN}Let's make sure the branch is up to date 🔄
${NC}"
# Make sure the branch is up to date
git pull
printf "${BYELLOW}Let's verify if Yarn is installed 📦
${NC}"
# Verify if Yarn is installed
if ! [ -x "$(command -v yarn)" ]; then
printf "${BRED}Yarn is not installed. Please install it before running this script.
${NC}"
exit 1
fi
printf "${BGREEN}Let's install the dependencies 📦
${NC}"
# Install the dependencies
yarn
printf "${BBLUE}Let's make sure the dependencies are up to date 📦
${NC}"
# Make sure the dependencies are up to date
yarn outdated
printf "${BYELLOW}Let's build the project 🏗️
${NC}"
# Build the project
yarn build
printf "${BBLUE}Let's start the development server 🚀
${NC}"
# Start the development server
yarn netlify dev