Adds jquery, example, .gitignore ignore dist files.
[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
9         'src/bootstrap/js/*.js',
10         'src/*.js',
11
12         'test/**/*.js'
13       ]
14     },
15     jshint: {
16       options: {
17         "validthis": true,
18         "laxcomma" : true,
19         "laxbreak" : true,
20         "browser"  : true,
21         "eqnull"   : true,
22         "debug"    : true,
23         "devel"    : true,
24         "boss"     : true,
25         "expr"     : true,
26         "asi"      : true
27       }
28     },
29     less: {
30       bootstrap: {
31         files: {
32           'dist/ivi-webui.css': 'src/bootstrap/less/bootstrap.less'
33         }
34       }
35     },
36     concat: {
37       js: {
38         src: [
39           'lib/*.js',
40           // Bootstrap files must preserve order.
41           'bootstrap-transition.js',
42           'bootstrap-alert.js',
43           'bootstrap-button.js',
44           'bootstrap-carousel.js',
45           'bootstrap-collapse.js',
46           'bootstrap-dropdown.js',
47           'bootstrap-modal.js',
48           'bootstrap-tooltip.js',
49           'bootstrap-popover.js',
50           'bootstrap-scrollspy.js',
51           'bootstrap-tab.js',
52           'bootstrap-typeahead.js',
53           'bootstrap-affix.js'
54         ],
55         dest: 'dist/ivi-webui.js'
56       }
57     },
58     min: {
59       all: {
60         src: ['dist/ivi-webui.js'],
61         dest: 'dist/ivi-webui.min.js'
62       }
63     },
64     cssmin: {
65       all: {
66         src: ['dist/ivi-webui.css'],
67         dest: 'dist/ivi-webui.min.css'
68       }
69     }
70   });
71
72   // Default task.
73   grunt.loadNpmTasks('grunt-contrib-less');
74   grunt.loadNpmTasks('grunt-css');
75   grunt.registerTask('default', 'lint less concat min cssmin');
76 };