summarylogtreecommitdiffstats
path: root/webFinit.sh
blob: ef0dbf4d0df05e42c4c5c5df95e8ad7004f1ee12 (plain)
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
#!/bin/bash



if [[ -z $1 ]]; then
    read -p "Enter project name : " projectName
else 
    projectName=$1
fi

lib="vanila"

PS3="What css freamwork you want (vanila for none) : "

items=("vanila" "tailwind" "bootstrap")

select item in "${items[@]}" Quit
do
    case $REPLY in
        1) echo "Project created by vanila css";lib="vanila";break;;
        2) echo "Project created by tailwind";lib="tailwind";break;;
        3) echo "Project created by bootstrap";lib="bootstrap";break;;
        $((${#items[@]}+1))) echo "We're done!"; break;;
        *) echo "Ooops - unknown choice $REPLY";;
    esac
done



mkdir $projectName
cd $projectName

mkdir "assets";
mkdir "assets/images";
mkdir "assets/icons";
mkdir "assets/css"
mkdir "assets/js"

touch "index.html"
touch "assets/css/style.css";
touch "assets/js/script.js"

cd ..

if [ $lib == "vanila" ]; then
              cat /usr/share/webfinit/vanila.txt >> $projectName/index.html

elif [ $lib == "tailwind" ]; then
            cat /usr/share/webfinit/tailwind.txt >> $projectName/index.html

elif [ $lib == "bootstrap" ]; then
            cat /usr/share/webfinit/bootstrap.txt >> $projectName/index.html

else
          cat /usr/share/webfinit/vanila.txt >> $projectName/index.html

fi


echo "Project $projectName Created by following Scoffilding "
tree $projectName