26b47aaaad79ef8f9382ec9b2a22f546d82bec86
[profile/ivi/cowhide.git] / grunt.js
1 module.exports = function(grunt) {
2
3   // Project configuration.
4   grunt.initConfig({
5     lint: {
6       all: [
7         'grunt.js',
8         'lib/**/*.js',
9
10         'src/bootstrap/js/*.js',
11         'src/*.js',
12
13         'test/**/*.js'
14       ]
15     },
16     jshint: {
17       options: {
18         "validthis": true,
19         "laxcomma" : true,
20         "laxbreak" : true,
21         "browser"  : true,
22         "eqnull"   : true,
23         "debug"    : true,
24         "devel"    : true,
25         "boss"     : true,
26         "expr"     : true,
27         "asi"      : true
28       }
29     },
30     less: {
31       bootstrap: {
32         files: {
33           'dist/ivi-webui.css': 'src/bootstrap/less/bootstrap.less'
34         }
35       }
36     },
37     concat: {
38       js: {
39         src: ['src/bootstrap/js/*.js'],
40         dest: 'dist/ivi-webui.js'
41       }
42     },
43     min: {
44       all: {
45         src: ['dist/ivi-webui.js'],
46         dest: 'dist/ivi-webui.min.js'
47       }
48     },
49     cssmin: {
50       all: {
51         src: ['dist/ivi-webui.css'],
52         dest: 'dist/ivi-webui.min.css'
53       }
54     }
55   });
56
57   // Default task.
58   grunt.loadNpmTasks('grunt-contrib-less');
59   grunt.loadNpmTasks('grunt-css');
60   grunt.registerTask('default', 'lint less concat min cssmin');
61 };