Remove mCSB_buttons.png.
[profile/ivi/cowhide.git] / grunt.js
index 642f6ef..94abb44 100644 (file)
--- a/grunt.js
+++ b/grunt.js
@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2012, Intel Corporation.
+ *
+ * This program is licensed under the terms and conditions of the
+ * Apache License, version 2.0.  The full text of the Apache License is at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ */
+
 module.exports = function(grunt) {
 
   // Project configuration.
@@ -8,10 +17,9 @@ module.exports = function(grunt) {
 
         'src/javascripts/*.js',
         'src/bootstrap/**/*.{js,less}',
+        'src/stylesheets/**/*.less',
         'src/themes/**/*.less',
 
-        'examples/**/*.*',
-
         'tests/**/*.js'
       ],
       tasks: 'default'
@@ -26,12 +34,6 @@ module.exports = function(grunt) {
         'src/bootstrap/js/*.js',
         'src/javascripts/*.js',
 
-        'examples/calf/javascripts/*.js',
-        'examples/calf/javascripts/app/*.js',
-        'examples/calf/javascripts/app/**/*.js',
-
-        'examples/widget-gallery/javascripts/*.js',
-
         'test/**/*.js'
       ]
     },
@@ -46,7 +48,8 @@ module.exports = function(grunt) {
         "devel"    : true,
         "boss"     : true,
         "expr"     : true,
-        "asi"      : true
+        "asi"      : true,
+        "es5"      : true
       }
     },
     less: {
@@ -85,14 +88,11 @@ module.exports = function(grunt) {
       }
     },
     concat: {
-      js: {
+      cowhide_js: {
         src: [
-          'lib/jquery-1.8.2.js',
-          'lib/jquery.ui.core.js',
-          'lib/jquery.ui.widget.js',
-          'lib/jquery.ui.mouse.js',
-          'lib/jquery.ui.slider.js',
-          'lib/underscore-min.js',
+          'lib/jquery/dist/jquery.js',
+          'lib/jquery-ui/dist/jquery-ui.js',
+          'lib/underscore/underscore.js',
 
           // Bootstrap files must preserve order.
           'src/bootstrap/js/bootstrap-transition.js',
@@ -109,6 +109,8 @@ module.exports = function(grunt) {
           'src/bootstrap/js/bootstrap-typeahead.js',
           'src/bootstrap/js/bootstrap-affix.js',
 
+          'src/javascripts/api.js',
+
           'src/javascripts/cowhide-core.js',
           'src/javascripts/cowhide-widget.js',
           'src/javascripts/cowhide-button.js',
@@ -116,48 +118,47 @@ module.exports = function(grunt) {
           'src/javascripts/cowhide-slider.js',
           'src/javascripts/cowhide-text-input.js',
           'src/javascripts/cowhide-radio-input.js',
-          'src/javascripts/cowhide-page.js'
+          'src/javascripts/cowhide-checkbox-input.js',
+          'src/javascripts/cowhide-select.js',
+          'src/javascripts/cowhide-page.js',
+          'src/javascripts/cowhide-header.js',
+          'src/javascripts/cowhide-scrollable.js',
+          'src/javascripts/cowhide-simple-scrollable.js'
         ], dest: 'dist/cowhide.js'
       },
       css_default: {
         src: [
           'dist/cowhide-default.css',
-          'lib/jquery.ui.slider.css'
         ], dest: 'dist/cowhide-default.css'
       },
       css_default_night: {
         src: [
           'dist/cowhide-default-night.css',
-          'lib/jquery.ui.slider.css'
         ], dest: 'dist/cowhide-default-night.css'
       },
       css_amelia: {
         src: [
           'dist/cowhide-amelia.css',
-          'lib/jquery.ui.slider.css'
         ], dest: 'dist/cowhide-amelia.css'
       },
       css_amelia_night: {
         src: [
           'dist/cowhide-amelia-night.css',
-          'lib/jquery.ui.slider.css'
         ], dest: 'dist/cowhide-amelia-night.css'
       },
       css_spruce: {
         src: [
           'dist/cowhide-spruce.css',
-          'lib/jquery.ui.slider.css'
         ], dest: 'dist/cowhide-spruce.css'
       },
       css_spruce_night: {
         src: [
           'dist/cowhide-spruce-night.css',
-          'lib/jquery.ui.slider.css'
         ], dest: 'dist/cowhide-spruce-night.css'
       }
     },
     min: {
-      all: {
+      cowhide: {
         src: ['dist/cowhide.js'],
         dest: 'dist/cowhide.min.js'
       }
@@ -197,11 +198,9 @@ module.exports = function(grunt) {
         files: {
           'dist/images/': 'images/**',
           'dist/README.md': 'README.md',
-          'dist/examples/calf/': 'examples/calf/**',
-          'dist/examples/widget-gallery/': 'examples/widget-gallery/**',
           'dist/docs/': 'docs/**'
         }
-      }
+      },
     },
     exec: {
       build_docs: {
@@ -237,4 +236,4 @@ module.exports = function(grunt) {
   grunt.loadNpmTasks('grunt-exec');
 
   grunt.registerTask('default', 'growl:started clean lint less concat min cssmin copy exec:build_docs compress growl:finished');
-};
\ No newline at end of file
+};