-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathwebdev.sh
executable file
·72 lines (60 loc) · 1.4 KB
/
webdev.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
#!/bin/sh
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
yellow='\033[0;33m'
blue='\033[0;34m'
magenta='\033[0;35m'
cyan='\033[0;36m'
# Reset text attributes to normal + without clearing screen.
alias Reset="tput sgr0"
# Color-echo.
# arg $1 = message
# arg $2 = Color
cecho() {
echo "${2}${1}"
Reset # Reset to normal.
return
}
echo ""
cecho "##############################################" $red
cecho "# Web Dev Global NPM Scripts #" $red
cecho "##############################################" $red
echo ""
echo "Agree?"
select yn in "Yes" "No"; do
case $yn in
Yes ) break;;
No ) echo "byebye"; exit 1;;
esac
done
echo ""
cecho "Install npm-check-updates -g" $white
npm install -g npm-check-updates
echo ""
cecho "Install Webpack -g" $white
npm install -g webpack
echo ""
cecho "Install Express -g" $white
npm install -g express
echo ""
cecho "Install Express Generator -g" $white
npm install -g express-generator
echo ""
cecho "Install React CLI -g" $white
npm install -g react-cli
echo ""
cecho "Install Docker -g" $white
npm install -g docker
echo ""
cecho "Install Angular CLI -g" $white
npm install -g angular-cli
echo ""
cecho "Install VueJS CLI (yo) -g" $white
npm install -g vue-cli
echo ""
cecho "Done!" $white
echo ""
cecho "###############################################################################" $white