-
Notifications
You must be signed in to change notification settings - Fork 3
/
grunt.js
50 lines (47 loc) · 1.2 KB
/
grunt.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
module.exports = function(grunt){
grunt.initConfig({
compass: {
dist2: {
src: '/assets/stylesheets',
dest: '/public/stylesheets'
}
},
cssmin: {
all: {
src: 'public/stylesheets/style.css',
dest: 'public/stylesheets/style.min.css'
}
},
coffee: {
dist1: {
files: [ 'assets/javascripts/models/*', 'assets/javascripts/collections/*', 'assets/javascripts/views/*', 'assets/javascripts/plugins/*' ],
dest: 'public/javascripts/medibot-client.js'
}
},
concat: {
dist2: {
src: [ 'assets/vendor/javascripts/*' ],
dest: 'public/javascripts/vendor.js'
}
},
min: {
dist1: {
src: [ '<config:coffee.dist1.dest>' ],
dest: 'public/javascripts/medibot-client.min.js'
},
dist2: {
src: [ '<config:concat.dist2.dest>' ],
dest: 'public/javascripts/vendor.min.js'
}
},
watch: {
dist1: {
files: '<config:coffee.dist1.files>',
tasks: 'simple'
}
}
});
grunt.loadTasks('tasks');
grunt.registerTask('default', 'coffee min concat compass cssmin ok');
grunt.registerTask('simple', 'coffee min');
};