-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall-development-dependencies.sh
executable file
·124 lines (112 loc) · 3.6 KB
/
install-development-dependencies.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#!/bin/bash
readonly PKGS_PACMAN=(
npm
yarn
nodejs
docker
docker-compose
jdk8-openjdk)
readonly PKGS_AUR=(
visual-studio-code-bin
insomnia-bin
robo3t-bin
beekeeper-studio-bin
reactotron)
function install_pkgs_pacman(){
for i in "${PKGS_PACMAN[@]}"; do
sudo pacman -S ${i} --needed --noconfirm
done
}
function install_pkgs_aur(){
for i in "${PKGS_AUR[@]}"; do
yay -S ${i} --needed --noconfirm
done
}
function install_vscode_extensions(){
clear
echo -e "INSTALL VSCODE EXTENSIONS\n"
sleep 3
cd $HOME
code --install-extension abusaidm.html-snippets
code --install-extension bradlc.vscode-tailwindcss
code --install-extension dbaeumer.vscode-eslint
code --install-extension EditorConfig.EditorConfig
code --install-extension esbenp.prettier-vscode
code --install-extension formulahendry.code-runner
code --install-extension rocketseat.theme-omni
code --install-extension alexcvzz.vscode-sqlite
code --install-extension dart-code.dart-code
code --install-extension jeroen-meijer.pubspec-assist
code --install-extension coenraads.bracket-pair-colorizer-2
code --install-extension dart-code.flutter
code --install-extension jpoissonnier.vscode-styled-components
code --install-extension leizongmin.node-module-intellisense
code --install-extension mikestead.dotenv
code --install-extension naumovs.color-highlight
code --install-extension oderwat.indent-rainbow
code --install-extension PKief.material-icon-theme
code --install-extension graphql.vscode-graphql
code --install-extension ritwickdey.LiveServer
code --install-extension VisualStudioExptTeam.vscodeintellicode
code --install-extension TabNine.tabnine-vscode
}
function install_vscode_config(){
clear
echo -e "VSCODE SETTINGS.JSON CONFIG\n"
sleep 3
cd $HOME/Downloads/MyDotfiles
sudo rm -rf $HOME/.config/Code/User/settings.json
mkdir -p $HOME/.config/Code/User
cp .config/Code/User/settings.json $HOME/.config/Code/User/settings.json
}
function configure_docker(){
clear
echo -e "DOCKER CONFIGURATION\n"
sleep 3
cd $HOME
sudo gpasswd -a $USER docker
sudo systemctl start docker
export DOCKER_HOST=127.0.0.1:2375
sudo systemctl restart docker
}
function mobile_enviroment(){
clear
echo -e "PREPARING MOBILE ENVIRONMENT\n"
sleep 3
cd $HOME/Downloads/MyDotfiles
sudo archlinux-java set java-8-openjdk
sudo rm -rf $HOME/.Android
sudo rm -rf $HOME/.android
mkdir -p $HOME/.Android/Sdk
sudo rm -rf getAndroidStudioDataForDownload.txt
sudo rm -rf android-studio.tar.gz
sudo rm -rf android-studio
curl -o getAndroidStudioDataForDownload.txt https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=android-studio
pkgver=`sed -nr "s/^pkgver=([^=]+)$/\1/p" getAndroidStudioDataForDownload.txt`
build=`sed -nr "s/^_build=([^=]+)$/\1/p" getAndroidStudioDataForDownload.txt`
curl -o android-studio.tar.gz https://dl.google.com/dl/android/studio/ide-zips/$pkgver/android-studio-ide-$build-linux.tar.gz
tar -xf android-studio.tar.gz
mv android-studio $HOME/.android-studio
flutter_enviroment
react_native_enviroment
}
function flutter_enviroment(){
clear
echo -e "PREPARING FLUTTER ENVIRONMENT\n"
sleep 3
sudo rm -rf $HOME/.flutter-dev
git clone https://github.com/flutter/flutter.git -b stable --depth 1 $HOME/.flutter-dev/flutter
}
function react_native_enviroment(){
clear
echo -e "PREPARING REACT NATIVE ENVIRONMENT\n"
sleep 3
echo -e "\nContinue installing Android Studio\n"
echo "https://react-native.rocketseat.dev/android/linux"
}
install_pkgs_pacman
install_pkgs_aur
install_vscode_extensions
install_vscode_config
configure_docker
mobile_enviroment