-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
51 lines (48 loc) · 1.37 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
module.exports = function (grunt) {
grunt.initConfig({
uglify: {
dist: {
files: {
'assets/javascripts/dist.min.js': [
'./bower_components/jquery/dist/jquery.min.js',
'./bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/tooltip.js',
'./bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/popover.js',
'./bower_components/retina.js/dist/retina.min.js',
'./bower_components/springy/springy.js',
'./bower_components/jquery.scrollTo/jquery.scrollTo.min.js',
'./bower_components/jquery.localScroll/jquery.localScroll.min.js',
'./bower_components/jquery-waypoints/waypoints.min.js',
'./bower_components/ajaxchimp/jquery.ajaxchimp.min.js',
'./assets/javascripts/springyui.js',
'./assets/javascripts/jquery.skOuterClick.js',
'./assets/javascripts/main.js'
]
}
}
},
compass: {
dist: {
options: {
sassDir: '_sass',
cssDir: 'assets/stylesheets',
specify: '_sass/main.scss',
environment: 'production',
outputStyle: 'compressed'
}
},
dev: {
options: {
sassDir: '_sass',
cssDir: 'assets/stylesheets',
specify: '_sass/main.scss',
}
}
},
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.registerTask('default', [
'uglify:dist',
'compass:dist'
]);
};