-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinitScript.sh
More file actions
executable file
·124 lines (79 loc) · 2.47 KB
/
Copy pathinitScript.sh
File metadata and controls
executable file
·124 lines (79 loc) · 2.47 KB
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
#!/bin/sh -e
echo "Starting Bash Script"
#checking for existing git repos
export variable=`pwd`
echo "Checking For Existing Git Repository"
if [ -d "$variable"/.git ]; then
echo "Clearing Existing Git Repository"
rm -rf .git
echo "Git Repository Cleared"
else
echo "No Git Repository Found"
fi
if [ -d "$variable"/logs ]; then
echo "Logs Repository Found"
else
echo "Creating Logs Directory"
mkdir logs
echo "Logs Directory Creation Complete"
fi
# Initization of Git Repository
echo "Initializing Fresh Git Repository"
git init
echo "Repository Initialization Successful"
#installing NPM Modules
echo "Installing NPM Modules"
npm install
echo "NPM Install Complete"
echo "Removing Git Ignore"
rm -rf .gitignore
echo "Creating Git Ignore"
touch .gitignore
echo "# Logs" >> .gitignore
echo "logs" >> .gitignore
echo "*.log" >> .gitignore
echo "npm-debug.log*" >> .gitignoreecho "" >> .gitignore
echo "" >> .gitignore
echo "# Runtime data" >> .gitignore
echo "pids" >> .gitignore
echo "*.pid" >> .gitignore
echo "*.seed" >> .gitignore
echo "" >> .gitignore
echo "# Directory for instrumented libs generated by jscoverage/JSCover" >> .gitignore
echo "lib-cov" >> .gitignore
echo "" >> .gitignore
echo "# Coverage directory used by tools like istanbul" >> .gitignore
echo "coverage" >> .gitignore
echo "" >> .gitignore
echo "# nyc test coverage" >> .gitignore
echo ".nyc_output" >> .gitignore
echo "" >> .gitignore
echo "# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)" >> .gitignore
echo ".grunt" >> .gitignore
echo "" >> .gitignore
echo "# node-waf configuration" >> .gitignore
echo ".lock-wscript" >> .gitignore
echo "" >> .gitignore
echo "# Compiled binary addons (http://nodejs.org/api/addons.html)" >> .gitignore
echo "build/Release" >> .gitignore
echo "" >> .gitignore
echo "# Dependency directories" >> .gitignore
echo "node_modules" >> .gitignore
echo "jspm_packages" >> .gitignore
echo "bower_components" >> .gitignore
echo "" >> .gitignore
echo "# Optional npm cache directory" >> .gitignore
echo ".npm" >> .gitignore
echo "" >> .gitignore
echo "# Optional REPL history" >> .gitignore
echo ".node_repl_history" >> .gitignore
echo "" >> .gitignore
echo "#Removing Uploads" >> .gitignore
echo "uploads" >> .gitignore
echo "auth_config" >> .gitignore
echo "ssl" >> .gitignore
echo "" >> .gitignore
echo ".gitignore Created"
echo "Removing the Shell Script"
rm -rf 'initScript.sh'
echo "Init ShellScript Deleted."