@@ -14,16 +14,14 @@ module.exports = function(grunt) {
14
14
'* Copyright (c) <%= grunt.template.today("yyyy") %> ' +
15
15
'Authored by Filament Group, Inc. */' ,
16
16
clean : {
17
- dist : [ "_dist/" ] ,
18
- grunticon : [ ".grunticon-temp" ]
17
+ dist : [ "_dist/" ]
19
18
} ,
20
19
concat : {
21
20
options : {
22
21
banner : '<%= banner %>'
23
22
} ,
24
23
js_initial : {
25
24
src : [
26
- '_tmpl/_js/_lib/modernizr.js' ,
27
25
'_tmpl/_js/app-globals.js' ,
28
26
'_tmpl/_js/initial.config.js'
29
27
] ,
@@ -32,6 +30,8 @@ module.exports = function(grunt) {
32
30
js_main : {
33
31
src : [
34
32
// keep this globalenhance file last!
33
+ '_tmpl/_js/_lib/jquery.js' ,
34
+ '_tmpl/_js/_lib/*' ,
35
35
'_tmpl/_js/globalenhance.js'
36
36
] ,
37
37
dest : '_dist/_js/main.js'
@@ -53,18 +53,12 @@ module.exports = function(grunt) {
53
53
copy : {
54
54
dist : {
55
55
files : [
56
- { expand : true , cwd : '_tmpl/docs/' , src : [ "*.html" ] , dest : "_dist/docs/" } ,
57
56
{ expand : true , cwd : '_tmpl/_includes/' , src : [ "**" ] , dest : "_dist/_includes/" } ,
58
57
{ expand : true , cwd : "_tmpl/_img/" , src : [ "**" ] , dest : "_dist/_img/" } ,
59
58
{ expand : true , cwd : "_tmpl/_img/svg/" , src : [ "*.png" ] , dest : "_dist/_img/_svg/" } ,
60
- { expand : true , cwd : "_tmpl/_css/_img/ " , src : [ "**" ] , dest : "_dist/_css/_img /" } ,
59
+ { expand : true , cwd : "_tmpl/_css/" , src : [ "**" ] , dest : "_dist/_css/" } ,
61
60
{ expand : true , cwd : "_tmpl/" , src : [ "*.html" , "*.php" , "*.json" ] , dest : "_dist/" } ,
62
61
{ expand : true , cwd : "_tmpl/" , src : [ ".htaccess" ] , dest : "_dist/" } ]
63
- } ,
64
- grunticon : {
65
- files : [
66
- { expand : true , cwd : "_tmpl/_css/_svg/" , src : [ "**" ] , dest : ".grunticon-temp" }
67
- ]
68
62
}
69
63
} ,
70
64
watch : {
@@ -85,10 +79,6 @@ module.exports = function(grunt) {
85
79
js : {
86
80
files : [ '_tmpl/_js/**/*' ] ,
87
81
tasks : 'watch-js'
88
- } ,
89
- grunticon : {
90
- files : [ '_tmpl/_css/_svg/*' ] ,
91
- tasks : 'watch-grunticon'
92
82
}
93
83
} ,
94
84
cssmin : {
@@ -127,37 +117,6 @@ module.exports = function(grunt) {
127
117
dest : '<%= concat.js_respond.dest %>'
128
118
}
129
119
} ,
130
- svgmin : { // Task
131
- options : { // Configuration that will be passed directly to SVGO
132
- plugins : [ {
133
- removeViewBox : false
134
- } ]
135
- } ,
136
- tmpl : {
137
- files : [
138
- {
139
- expand : true ,
140
- cwd : '.grunticon-temp/' ,
141
- src : [ '**/*.svg' ] ,
142
- dest : '.grunticon-temp/'
143
- }
144
- ]
145
- }
146
- } ,
147
- grunticon : {
148
- all : {
149
- options : {
150
- src : ".grunticon-temp/" ,
151
- dest : "_dist/_css/_grunticon/" ,
152
- svgo : true ,
153
- pngcrush : false ,
154
- cssbasepath : "/" ,
155
- colors : {
156
- "green" : "#0C756D"
157
- }
158
- }
159
- }
160
- } ,
161
120
criticalcss : {
162
121
custom_options : {
163
122
options : {
@@ -198,21 +157,10 @@ module.exports = function(grunt) {
198
157
'qunit' ,
199
158
'concat' ,
200
159
'copy' ,
201
- 'svgmin' ,
202
- 'grunticon' ,
203
160
'criticalcss' ,
204
161
'chmod:readonly'
205
162
] ) ;
206
163
207
- grunt . registerTask ( 'icons' , [
208
- 'chmod:writeable' ,
209
- 'clean:grunticon' ,
210
- 'copy:grunticon' ,
211
- 'svgmin' ,
212
- 'grunticon' ,
213
- 'chmod:readonly'
214
- ] ) ;
215
-
216
164
// NOTE these watch tasks try to run only relevant tasks per file save
217
165
218
166
grunt . registerTask ( 'watch-endpoints' , [
@@ -225,12 +173,12 @@ module.exports = function(grunt) {
225
173
'chmod:writeable' ,
226
174
'qunit' ,
227
175
'copy' ,
228
- 'svgmin' ,
229
176
'chmod:readonly'
230
177
] ) ;
231
178
232
179
grunt . registerTask ( 'watch-css' , [
233
180
'chmod:writeable' ,
181
+ 'copy' ,
234
182
'concat:css_main' ,
235
183
'chmod:readonly'
236
184
] ) ;
@@ -240,27 +188,15 @@ module.exports = function(grunt) {
240
188
'concat:js_initial' ,
241
189
'concat:js_main' ,
242
190
'concat:js_respond' ,
243
- 'concat:js_docs' ,
244
- 'chmod:readonly'
245
- ] ) ;
246
-
247
- grunt . registerTask ( 'watch-grunticon' , [
248
- 'chmod:writeable' ,
249
- 'clean:grunticon' ,
250
- 'copy:grunticon' ,
251
- 'svgmin' ,
252
- 'grunticon' ,
253
191
'chmod:readonly'
254
192
] ) ;
255
193
256
194
grunt . registerTask ( 'stage' , [
257
195
'clean' ,
258
196
'qunit' ,
197
+ 'copy' ,
259
198
'concat' ,
260
199
'cssmin' ,
261
- 'uglify' ,
262
- 'copy' ,
263
- 'svgmin' ,
264
- 'grunticon'
200
+ 'uglify'
265
201
] ) ;
266
202
} ;
0 commit comments