forked from szwork2013/webvr-angular-aframe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
82 lines (75 loc) · 4.2 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
'use strict';
// our wrapper function (required by grunt and its plugins)
// all configuration goes inside this function
module.exports = function(grunt) {
// ===========================================================================
// CONFIGURE GRUNT ===========================================================
// ===========================================================================
grunt.initConfig({
responsive_images: {
dev: {
options: {
engine: 'im',
separator: '',
sizes: [{
height: 320,
rename: false
}]
},
files: [{
expand: true,
src: ['flickr/*.{jpg,gif,png}'],
// Use the current working directory
cwd: '',
dest: 'flickr/thumbnails/'
}]
}
},
clean: {
tests: ['flickr/*.jpg', 'flickr/thumbnails/flickr/*.jpg'],
},
downloadfile: {
options: {
dest: 'flickr'
},
files: [
"https://c1.staticflickr.com/1/591/22665222766_07524ca21a_k.jpg",
"https://farm4.staticflickr.com/3746/9503927685_970b5e141b_k_d.jpg",
"https://farm1.staticflickr.com/661/21230969582_33e91e2a9a_o_d.jpg",
"https://c2.staticflickr.com/8/7426/12233323463_57606d8e87_k.jpg",
"https://farm1.staticflickr.com/648/20938457876_4d0924e380_o_d.jpg",
"https://c1.staticflickr.com/9/8820/16523586334_4d22f1754b_k.jpg",
"https://farm6.staticflickr.com/5688/21597873406_d19b851a96_o_d.jpg",
"https://farm4.staticflickr.com/3876/14634078309_f77e77d6b9_o_d.jpg",
"https://farm4.staticflickr.com/3860/14632678619_eb4f89ef85_o_d.jpg",
"https://farm4.staticflickr.com/3844/14626558247_6aaa566397_o_d.jpg",
"https://farm8.staticflickr.com/7425/14182933691_af44ff2a43_o_d.jpg",
"https://farm4.staticflickr.com/3877/14847119920_7e5e9398e9_o_d.jpg",
"https://farm9.staticflickr.com/8526/8546879452_2e097547a6_o_d.jpg",
"https://farm6.staticflickr.com/5578/14847291760_a1945131e6_o_d.jpg",
"https://farm6.staticflickr.com/5595/15030728651_753a31e3ca_o_d.jpg",
"https://farm4.staticflickr.com/3869/14460157987_e0892869e2_o_d.jpg",
"https://farm4.staticflickr.com/3947/15426357418_9976b269b0_o_d.jpg",
"https://farm6.staticflickr.com/5817/21608154473_74bd18c61f_o_d.jpg",
"https://farm6.staticflickr.com/5324/16622294523_67e373a118_o_d.jpg",
"https://farm4.staticflickr.com/3734/11368642323_b4be377644_o_d.jpg",
"https://farm4.staticflickr.com/3912/15030746921_c030b23b2b_o_d.jpg",
"https://farm4.staticflickr.com/3899/14847155059_33ccd392b5_o_d.jpg",
"https://c1.staticflickr.com/1547/24151972210_081aeaf891_o_d.jpg",
"https://c1.staticflickr.com/1585/24339263532_4ddae26189_o_d.jpg",
"https://c1.staticflickr.com/1524/24365150991_39fc7c5b35_o_d.jpg",
"https://c1.staticflickr.com/1659/24079886189_8a475ff9cd_o_d.jpg",
"https://farm4.staticflickr.com/3689/13202443445_00c76d4caa_o_d.jpg",
"https://farm4.staticflickr.com/3679/11829226443_ef2a8482d1_o_d.jpg",
"https://farm3.staticflickr.com/2939/14486898640_a42a82869b_o_d.jpg",
"https://farm8.staticflickr.com/7476/15805694576_e56e29784e_o_d.jpg",
"https://farm3.staticflickr.com/2817/9174896564_88ec346440_o_d.jpg"
]
}
});
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-downloadfile');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-responsive-images');
grunt.registerTask('default', ['clean', 'downloadfile', "responsive_images"]);
};