Modify spec file so to generate and install widget.
[profile/ivi/cowhide.git] / Gruntfile.js
index f706744..77ac026 100644 (file)
@@ -16,8 +16,7 @@ module.exports = function(grunt) {
         'Gruntfile.js',
 
         'src/javascripts/*.js',
-        'src/bootstrap/**/*.{js,less}',
-        'src/stylesheets/**/*.less',
+        'src/less/**/*.less',
         'src/themes/**/*.less',
 
         'tests/**/*.js'
@@ -43,15 +42,14 @@ module.exports = function(grunt) {
         "devel"    : true,
         "boss"     : true,
         "expr"     : true,
-        "asi"      : true,
-        "es5"      : true
+        "asi"      : true
       }
     },
     less: {
       default_: {
         files: {
           'dist/cowhide-default.css': 'src/themes/default/default.less',
-          'dist/cowhide-responsive.css': 'src/bootstrap/less/responsive.less'
+          'dist/cowhide-responsive.css': 'lib/bootstrap/less/responsive.less'
         }
       },
       default_night: {
@@ -87,22 +85,22 @@ module.exports = function(grunt) {
         src: [
           'lib/jquery/dist/jquery.js',
           'lib/jquery-ui/dist/jquery-ui.js',
-          'lib/underscore/underscore.js',
+          'lib/lodash/lodash.js',
 
           // Bootstrap files must preserve order.
-          'src/bootstrap/js/bootstrap-transition.js',
-          'src/bootstrap/js/bootstrap-alert.js',
-          'src/bootstrap/js/bootstrap-button.js',
-          'src/bootstrap/js/bootstrap-carousel.js',
-          'src/bootstrap/js/bootstrap-collapse.js',
-          'src/bootstrap/js/bootstrap-dropdown.js',
-          'src/bootstrap/js/bootstrap-modal.js',
-          'src/bootstrap/js/bootstrap-tooltip.js',
-          'src/bootstrap/js/bootstrap-popover.js',
-          'src/bootstrap/js/bootstrap-scrollspy.js',
-          'src/bootstrap/js/bootstrap-tab.js',
-          'src/bootstrap/js/bootstrap-typeahead.js',
-          'src/bootstrap/js/bootstrap-affix.js',
+          'lib/bootstrap/js/bootstrap-transition.js',
+          'lib/bootstrap/js/bootstrap-alert.js',
+          'lib/bootstrap/js/bootstrap-button.js',
+          'lib/bootstrap/js/bootstrap-carousel.js',
+          'lib/bootstrap/js/bootstrap-collapse.js',
+          'lib/bootstrap/js/bootstrap-dropdown.js',
+          'lib/bootstrap/js/bootstrap-modal.js',
+          'lib/bootstrap/js/bootstrap-tooltip.js',
+          'lib/bootstrap/js/bootstrap-popover.js',
+          'lib/bootstrap/js/bootstrap-scrollspy.js',
+          'lib/bootstrap/js/bootstrap-tab.js',
+          'lib/bootstrap/js/bootstrap-typeahead.js',
+          'lib/bootstrap/js/bootstrap-affix.js',
 
           'src/javascripts/api.js',
 
@@ -208,6 +206,13 @@ module.exports = function(grunt) {
         ]
       },
     },
+    sed: {
+        images: {
+            path: ['dist/cowhide-default.css', 'dist/cowhide-default.min.css'],
+            pattern: 'img\/glyphicons',
+            replacement: 'images/glyphicons'
+        }
+    },
     exec: {
       build_docs: {
         command: 'node dist/docs/build'
@@ -235,6 +240,7 @@ module.exports = function(grunt) {
   grunt.loadNpmTasks('grunt-contrib-uglify');
   grunt.loadNpmTasks('grunt-contrib-cssmin');
   grunt.loadNpmTasks('grunt-contrib-copy');
+  grunt.loadNpmTasks('grunt-sed');
   grunt.loadNpmTasks('grunt-exec');
   grunt.loadNpmTasks('grunt-contrib-compress');
 
@@ -250,6 +256,7 @@ module.exports = function(grunt) {
     'uglify',
     'cssmin',
     'copy',
+    'sed',
     'exec:build_docs',
     'compress']);
 };