-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
245 lines (206 loc) · 9.62 KB
/
Gruntfile.js
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
module.exports = function(grunt) {
// Project configuration.
var pkg = require('./package.json');
grunt.initConfig({
/* uglify */
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
src: 'assets/src/<%= pkg.name %>.js',
dest: 'assets/build/<%= pkg.name %>.min.js'
},
dist: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
src: 'assets/src/<%= pkg.name %>.js',
dest: 'assets/build/<%= pkg.name %>.min.js'
}
}
},
/* bake */
bake: {
compile: {
options: {
//content: "content.json"
},
files: {
"public/about.html": "src/about.html",
"public/meteor2lxjs.html": "src/meteor2lxjs.html",
"public/code-of-conduct.html": "src/code-of-conduct.html",
"public/conference.html": "src/conference.html",
"public/fringe.html": "src/fringe.html",
"public/guide.html": "src/guide.html",
"public/index.html": "src/index.html",
"public/register.html": "src/register.html",
"public/team-and-contacts.html": "src/team-and-contacts.html",
"public/workshops.html": "src/workshops.html",
"public/speakers/index.html": "src/speakers/index.html",
"public/speakers/mike-brevoort.html": "src/speakers/mike-brevoort.html",
"public/speakers/adam-baldwin.html": "src/speakers/adam-baldwin.html",
"public/speakers/jonathan-lipps.html": "src/speakers/jonathan-lipps.html",
"public/speakers/sara-chipps.html": "src/speakers/sara-chipps.html",
"public/speakers/vyacheslav-egorov.html": "src/speakers/vyacheslav-egorov.html",
"public/speakers/dustin-diaz.html": "src/speakers/dustin-diaz.html",
"public/speakers/brian-leroux.html": "src/speakers/brian-leroux.html",
"public/speakers/laura-kalbag.html": "src/speakers/laura-kalbag.html",
"public/speakers/shane-hudson.html": "src/speakers/shane-hudson.html",
"public/speakers/jed-schmidt.html": "src/speakers/jed-schmidt.html",
"public/speakers/andrew-nesbitt.html": "src/speakers/andrew-nesbitt.html",
"public/speakers/gilles-ruppert.html": "src/speakers/gilles-ruppert.html",
"public/speakers/raquel-velez.html": "src/speakers/raquel-velez.html",
"public/speakers/ivan-babrou.html": "src/speakers/ivan-babrou.html",
"public/speakers/robert-nyman.html": "src/speakers/robert-nyman.html",
"public/speakers/bill-mills.html": "src/speakers/bill-mills.html",
"public/speakers/angelina-fabbro.html": "src/speakers/angelina-fabbro.html",
"public/speakers/charlie-crane.html": "src/speakers/charlie-crane.html",
"public/speakers/mark-boas.html": "src/speakers/mark-boas.html",
"public/speakers/estelle-weyl.html": "src/speakers/estelle-weyl.html",
"public/speakers/domenic-denicola.html": "src/speakers/domenic-denicola.html",
"public/speakers/michal-budzynski.html": "src/speakers/michal-budzynski.html",
"public/speakers/oli-evans.html": "src/speakers/oli-evans.html",
"public/speakers/tim-park.html": "src/speakers/tim-park.html",
"public/speakers/james-halliday.html": "src/speakers/james-halliday.html",
"public/speakers/thorsten-lorenz.html": "src/speakers/thorsten-lorenz.html",
"public/speakers/andre-cruz.html": "src/speakers/andre-cruz.html",
"public/speakers/rod-vagg.html": "src/speakers/rod-vagg.html",
"public/speakers/alex-feyerke.html": "src/speakers/alex-feyerke.html",
"public/speakers/aral-balkan.html": "src/speakers/aral-balkan.html",
"public/speakers/adam-brault.html": "src/speakers/adam-brault.html",
"public/speakers/marco-oliveira.html": "src/speakers/marco-oliveira.html",
"public/speakers/hannah-wolfe.html": "src/speakers/hannah-wolfe.html",
"public/speakers/martin-naumann.html": "src/speakers/martin-naumann.html",
"public/speakers/dominic-tarr.html": "src/speakers/dominic-tarr.html",
"public/speakers/tancredi-trugenberger.html": "src/speakers/tancredi-trugenberger.html",
"public/speakers/caolan-mcmahon.html": "src/speakers/caolan-mcmahon.html",
"public/speakers/peter-johnson.html": "src/speakers/peter-johnson.html",
"public/speakers/chris-bumgardner.html": "src/speakers/chris-bumgardner.html",
"public/speakers/bert-belder.html": "src/speakers/bert-belder.html"
}
},
dist: {
options: {
//content: "content.json"
},
files: {
"public/about.html": "src/about.html",
"public/code-of-conduct.html": "src/code-of-conduct.html",
"public/conference.html": "src/conference.html",
"public/fringe.html": "src/fringe.html",
"public/guide.html": "src/guide.html",
"public/index.html": "src/index.html",
"public/register.html": "src/register.html",
"public/team-and-contacts.html": "src/team-and-contacts.html",
"public/workshops.html": "src/workshops.html",
"public/speakers/index.html": "src/speakers/index.html",
"public/speakers/mike-brevoort.html": "src/speakers/mike-brevoort.html",
"public/speakers/adam-baldwin.html": "src/speakers/adam-baldwin.html",
"public/speakers/jonathan-lipps.html": "src/speakers/jonathan-lipps.html",
"public/speakers/sara-chipps.html": "src/speakers/sara-chipps.html",
"public/speakers/vyacheslav-egorov.html": "src/speakers/vyacheslav-egorov.html",
"public/speakers/dustin-diaz.html": "src/speakers/dustin-diaz.html",
"public/speakers/brian-leroux.html": "src/speakers/brian-leroux.html",
"public/speakers/laura-kalbag.html": "src/speakers/laura-kalbag.html",
"public/speakers/shane-hudson.html": "src/speakers/shane-hudson.html",
"public/speakers/jed-schmidt.html": "src/speakers/jed-schmidt.html",
"public/speakers/andrew-nesbitt.html": "src/speakers/andrew-nesbitt.html",
"public/speakers/gilles-ruppert.html": "src/speakers/gilles-ruppert.html",
"public/speakers/raquel-velez.html": "src/speakers/raquel-velez.html",
"public/speakers/ivan-babrou.html": "src/speakers/ivan-babrou.html",
"public/speakers/robert-nyman.html": "src/speakers/robert-nyman.html",
"public/speakers/bill-mills.html": "src/speakers/bill-mills.html",
"public/speakers/angelina-fabbro.html": "src/speakers/angelina-fabbro.html",
"public/speakers/charlie-crane.html": "src/speakers/charlie-crane.html",
"public/speakers/mark-boas.html": "src/speakers/mark-boas.html",
"public/speakers/estelle-weyl.html": "src/speakers/estelle-weyl.html",
"public/speakers/domenic-denicola.html": "src/speakers/domenic-denicola.html",
"public/speakers/michal-budzynski.html": "src/speakers/michal-budzynski.html",
"public/speakers/oli-evans.html": "src/speakers/oli-evans.html",
"public/speakers/tim-park.html": "src/speakers/tim-park.html",
"public/speakers/james-halliday.html": "src/speakers/james-halliday.html",
"public/speakers/thorsten-lorenz.html": "src/speakers/thorsten-lorenz.html",
"public/speakers/andre-cruz.html": "src/speakers/andre-cruz.html",
"public/speakers/rod-vagg.html": "src/speakers/rod-vagg.html",
"public/speakers/alex-feyerke.html": "src/speakers/alex-feyerke.html",
"public/speakers/aral-balkan.html": "src/speakers/aral-balkan.html",
"public/speakers/adam-brault.html": "src/speakers/adam-brault.html",
"public/speakers/marco-oliveira.html": "src/speakers/marco-oliveira.html",
"public/speakers/hannah-wolfe.html": "src/speakers/hannah-wolfe.html",
"public/speakers/martin-naumann.html": "src/speakers/martin-naumann.html",
"public/speakers/dominic-tarr.html": "src/speakers/dominic-tarr.html",
"public/speakers/tancredi-trugenberger.html": "src/speakers/tancredi-trugenberger.html",
"public/speakers/caolan-mcmahon.html": "src/speakers/caolan-mcmahon.html",
"public/speakers/peter-johnson.html": "src/speakers/peter-johnson.html",
"public/speakers/chris-bumgardner.html": "src/speakers/chris-bumgardner.html",
"public/speakers/bert-belder.html": "src/speakers/bert-belder.html"
}
}
},
/* compass */
compass: {
compile: {
options: {
force: true,
require: ['zurb-foundation'],
sassDir: 'src/sass',
cssDir: 'public/css',
environment: 'production'
}
},
build: {
options: {
force: true,
require: ['zurb-foundation'],
sassDir: 'src/sass',
cssDir: 'public/css',
environment: 'development'
}
}
},
/* concat */
concat: {
dist: {
src: ['assets/src/**/*.js'],
dest: 'public/js/app.js'
}
},
/* uglify */
uglify: {
dist: {
src: ['src/js/main.js'],
dest: 'public/js/main.js'
}
},
/* watch */
watch: {
compass: {
files: ['src/sass/*.sass', 'src/sass/*.scss'],
tasks: 'compass:compile',
options: {
force: true,
require: ['zurb-foundation'],
sassDir: 'src/sass',
cssDir: 'public/css',
}
},
bake: {
files: [ "src/**/*" ],
tasks: ["bake:compile","compass:compile"]
}
}
});
// Dependencies
// ============
for(var name in pkg.devDependencies) {
if(name.substring(0, 6) === 'grunt-') {
grunt.loadNpmTasks(name);
}
}
// Default task(s).
grunt.registerTask('prepare', ['bower:install']);
grunt.registerTask('default', ['compass:compile','bake:compile','watch']);
grunt.registerTask('dist', ['compass:build','concat','uglify','bake:dist']);
};