-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·176 lines (143 loc) · 11 KB
/
build.sh
File metadata and controls
executable file
·176 lines (143 loc) · 11 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# compile typescript
node_modules/typescript/bin/tsc
# clear dist
rm -rf dist
mkdir dist
mkdir dist/dependencies
# copy production files
cp node_modules/core-js/client/shim.min.js dist/dependencies/
cp node_modules/zone.js/dist/zone.js dist/dependencies/
cp node_modules/reflect-metadata/Reflect.js dist/dependencies/
cp node_modules/systemjs/dist/system.src.js dist/dependencies/
# copy css and index html
cp -R css dist/
cp production/index.html dist/
# create bundle, minify bundle, copy html file
mkdir dist/appendOrPrependHtml
node_modules/browserify/bin/cmd.js -s main app/appendOrPrependHtml/main.js > dist/appendOrPrependHtml/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/appendOrPrependHtml/bundle.js --screw-ie8 --compress --mangle --output dist/appendOrPrependHtml/bundle.min.js
cp app/appendOrPrependHtml/index.html dist/appendOrPrependHtml
# create bundle, minify bundle, copy html file
mkdir dist/setTextOrHTML
node_modules/browserify/bin/cmd.js -s main app/setTextOrHTML/main.js > dist/setTextOrHTML/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/setTextOrHTML/bundle.js --screw-ie8 --compress --mangle --output dist/setTextOrHTML/bundle.min.js
cp app/setTextOrHTML/index.html dist/setTextOrHTML
# create bundle, minify bundle, copy html file
mkdir dist/detectCmdKeys
node_modules/browserify/bin/cmd.js -s main app/detectCmdKeys/main.js > dist/detectCmdKeys/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/detectCmdKeys/bundle.js --screw-ie8 --compress --mangle --output dist/detectCmdKeys/bundle.min.js
cp app/detectCmdKeys/index.html dist/detectCmdKeys
# create bundle, minify bundle, copy html file
mkdir dist/detectCtrlKeys
node_modules/browserify/bin/cmd.js -s main app/detectCtrlKeys/main.js > dist/detectCtrlKeys/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/detectCtrlKeys/bundle.js --screw-ie8 --compress --mangle --output dist/detectCtrlKeys/bundle.min.js
cp app/detectCtrlKeys/index.html dist/detectCtrlKeys
mkdir dist/detectEnterKeys
node_modules/browserify/bin/cmd.js -s main app/detectEnterKeys/main.js > dist/detectEnterKeys/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/detectEnterKeys/bundle.js --screw-ie8 --compress --mangle --output dist/detectEnterKeys/bundle.min.js
cp app/detectEnterKeys/index.html dist/detectEnterKeys
mkdir dist/imgSrcOnMouseOver
node_modules/browserify/bin/cmd.js -s main app/imgSrcOnMouseOver/main.js > dist/imgSrcOnMouseOver/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/imgSrcOnMouseOver/bundle.js --screw-ie8 --compress --mangle --output dist/imgSrcOnMouseOver/bundle.min.js
cp app/imgSrcOnMouseOver/index.html dist/imgSrcOnMouseOver
mkdir dist/setCursorPosition
node_modules/browserify/bin/cmd.js -s main app/setCursorPosition/main.js > dist/setCursorPosition/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/setCursorPosition/bundle.js --screw-ie8 --compress --mangle --output dist/setCursorPosition/bundle.min.js
cp app/setCursorPosition/index.html dist/setCursorPosition
mkdir dist/getCursorPosition
node_modules/browserify/bin/cmd.js -s main app/getCursorPosition/main.js > dist/getCursorPosition/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/getCursorPosition/bundle.js --screw-ie8 --compress --mangle --output dist/getCursorPosition/bundle.min.js
cp app/getCursorPosition/index.html dist/getCursorPosition
mkdir dist/showSelectedText
node_modules/browserify/bin/cmd.js -s main app/showSelectedText/main.js > dist/showSelectedText/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/showSelectedText/bundle.js --screw-ie8 --compress --mangle --output dist/showSelectedText/bundle.min.js
cp app/showSelectedText/index.html dist/showSelectedText
mkdir dist/getClassList
node_modules/browserify/bin/cmd.js -s main app/getClassList/main.js > dist/getClassList/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/getClassList/bundle.js --screw-ie8 --compress --mangle --output dist/getClassList/bundle.min.js
cp app/getClassList/index.html dist/getClassList
mkdir dist/detectScrollDirection
node_modules/browserify/bin/cmd.js -s main app/detectScrollDirection/main.js > dist/detectScrollDirection/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/detectScrollDirection/bundle.js --screw-ie8 --compress --mangle --output dist/detectScrollDirection/bundle.min.js
cp app/detectScrollDirection/index.html dist/detectScrollDirection
mkdir dist/checkInputFocus
node_modules/browserify/bin/cmd.js -s main app/checkInputFocus/main.js > dist/checkInputFocus/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/checkInputFocus/bundle.js --screw-ie8 --compress --mangle --output dist/checkInputFocus/bundle.min.js
cp app/checkInputFocus/index.html dist/checkInputFocus
mkdir dist/detectIFrameSrcChange
node_modules/browserify/bin/cmd.js -s main app/detectIFrameSrcChange/main.js > dist/detectIFrameSrcChange/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/detectIFrameSrcChange/bundle.js --screw-ie8 --compress --mangle --output dist/detectIFrameSrcChange/bundle.min.js
cp app/detectIFrameSrcChange/*.html dist/detectIFrameSrcChange
mkdir dist/readCsvData
node_modules/browserify/bin/cmd.js -s main app/readCsvData/main.js > dist/readCsvData/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/readCsvData/bundle.js --screw-ie8 --compress --mangle --output dist/readCsvData/bundle.min.js
cp app/readCsvData/*.html dist/readCsvData
cp app/readCsvData/*.csv dist/readCsvData
mkdir dist/checkDivOverflow
node_modules/browserify/bin/cmd.js -s main app/checkDivOverflow/main.js > dist/checkDivOverflow/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/checkDivOverflow/bundle.js --screw-ie8 --compress --mangle --output dist/checkDivOverflow/bundle.min.js
cp app/checkDivOverflow/*.html dist/checkDivOverflow
mkdir dist/disableWholeDivCont
node_modules/browserify/bin/cmd.js -s main app/disableWholeDivCont/main.js > dist/disableWholeDivCont/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/disableWholeDivCont/bundle.js --screw-ie8 --compress --mangle --output dist/disableWholeDivCont/bundle.min.js
cp app/disableWholeDivCont/*.html dist/disableWholeDivCont
mkdir dist/selectContentOfTextboxOnFocus
node_modules/browserify/bin/cmd.js -s main app/selectContentOfTextboxOnFocus/main.js > dist/selectContentOfTextboxOnFocus/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/selectContentOfTextboxOnFocus/bundle.js --screw-ie8 --compress --mangle --output dist/selectContentOfTextboxOnFocus/bundle.min.js
cp app/selectContentOfTextboxOnFocus/*.html dist/selectContentOfTextboxOnFocus
mkdir dist/detectScrollToBottom
node_modules/browserify/bin/cmd.js -s main app/detectScrollToBottom/main.js > dist/detectScrollToBottom/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/detectScrollToBottom/bundle.js --screw-ie8 --compress --mangle --output dist/detectScrollToBottom/bundle.min.js
cp app/detectScrollToBottom/*.html dist/detectScrollToBottom
mkdir dist/detectBrowserWindowClose
node_modules/browserify/bin/cmd.js -s main app/detectBrowserWindowClose/main.js > dist/detectBrowserWindowClose/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/detectBrowserWindowClose/bundle.js --screw-ie8 --compress --mangle --output dist/detectBrowserWindowClose/bundle.min.js
cp app/detectBrowserWindowClose/*.html dist/detectBrowserWindowClose
mkdir dist/detectScrollStop
node_modules/browserify/bin/cmd.js -s main app/detectScrollStop/main.js > dist/detectScrollStop/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/detectScrollStop/bundle.js --screw-ie8 --compress --mangle --output dist/detectScrollStop/bundle.min.js
cp app/detectScrollStop/*.html dist/detectScrollStop
mkdir dist/eventAfterUserFinishesTyping
node_modules/browserify/bin/cmd.js -s main app/eventAfterUserFinishesTyping/main.js > dist/eventAfterUserFinishesTyping/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/eventAfterUserFinishesTyping/bundle.js --screw-ie8 --compress --mangle --output dist/eventAfterUserFinishesTyping/bundle.min.js
cp app/eventAfterUserFinishesTyping/*.html dist/eventAfterUserFinishesTyping
mkdir dist/contextMenu
node_modules/browserify/bin/cmd.js -s main app/contextMenu/main.js > dist/contextMenu/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/contextMenu/bundle.js --screw-ie8 --compress --mangle --output dist/contextMenu/bundle.min.js
cp app/contextMenu/*.html dist/contextMenu
mkdir dist/shrinkingStickyHeader
node_modules/browserify/bin/cmd.js -s main app/shrinkingStickyHeader/main.js > dist/shrinkingStickyHeader/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/shrinkingStickyHeader/bundle.js --screw-ie8 --compress --mangle --output dist/shrinkingStickyHeader/bundle.min.js
cp app/shrinkingStickyHeader/*.html dist/shrinkingStickyHeader
mkdir dist/CssClassOnSelectedItem
node_modules/browserify/bin/cmd.js -s main app/CssClassOnSelectedItem/main.js > dist/CssClassOnSelectedItem/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/CssClassOnSelectedItem/bundle.js --screw-ie8 --compress --mangle --output dist/CssClassOnSelectedItem/bundle.min.js
cp app/CssClassOnSelectedItem/*.html dist/CssClassOnSelectedItem
mkdir dist/checkUnCheckRadioButton
node_modules/browserify/bin/cmd.js -s main app/checkUnCheckRadioButton/main.js > dist/checkUnCheckRadioButton/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/checkUnCheckRadioButton/bundle.js --screw-ie8 --compress --mangle --output dist/checkUnCheckRadioButton/bundle.min.js
cp app/checkUnCheckRadioButton/*.html dist/checkUnCheckRadioButton
mkdir dist/ng2GifPreview
node_modules/browserify/bin/cmd.js -s main app/ng2GifPreview/main.js > dist/ng2GifPreview/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/ng2GifPreview/bundle.js --screw-ie8 --compress --mangle --output dist/ng2GifPreview/bundle.min.js
cp app/ng2GifPreview/*.html dist/ng2GifPreview
cp app/ng2GifPreview/*.css dist/ng2GifPreview
cp app/ng2GifPreview/*.png dist/ng2GifPreview
cp app/ng2GifPreview/*.gif dist/ng2GifPreview
mkdir dist/mouseWheelDirective
node_modules/browserify/bin/cmd.js -s main app/mouseWheelDirective/main.js > dist/mouseWheelDirective/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/mouseWheelDirective/bundle.js --screw-ie8 --compress --mangle --output dist/mouseWheelDirective/bundle.min.js
cp app/mouseWheelDirective/*.html dist/mouseWheelDirective
mkdir dist/zoomInZoomOutImage
node_modules/browserify/bin/cmd.js -s main app/zoomInZoomOutImage/main.js > dist/zoomInZoomOutImage/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/zoomInZoomOutImage/bundle.js --screw-ie8 --compress --mangle --output dist/zoomInZoomOutImage/bundle.min.js
cp app/zoomInZoomOutImage/*.html dist/zoomInZoomOutImage
cp app/zoomInZoomOutImage/*.png dist/zoomInZoomOutImage
mkdir dist/customEvent
node_modules/browserify/bin/cmd.js -s main app/customEvent/main.js > dist/customEvent/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/customEvent/bundle.js --screw-ie8 --compress --mangle --output dist/customEvent/bundle.min.js
cp app/customEvent/*.html dist/customEvent
mkdir dist/tweetParser
node_modules/browserify/bin/cmd.js -s main app/tweetParser/main.js > dist/tweetParser/bundle.js
node_modules/uglify-js/bin/uglifyjs dist/tweetParser/bundle.js --screw-ie8 --compress --mangle --output dist/tweetParser/bundle.min.js
cp app/tweetParser/*.html dist/tweetParser