+/*
+ * 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.
'src/javascripts/*.js',
'src/bootstrap/**/*.{js,less}',
+ 'src/stylesheets/**/*.less',
'src/themes/**/*.less',
- 'examples/**/*.*',
-
'tests/**/*.js'
],
tasks: 'default'
'src/bootstrap/js/*.js',
'src/javascripts/*.js',
- 'examples/calf/javascripts/*.js',
- 'examples/calf/javascripts/app/*.js',
- 'examples/calf/javascripts/app/**/*.js',
-
- 'examples/calf-ng/javascripts/*.js',
- 'examples/calf-ng/javascripts/app/*.js',
- 'examples/calf-ng/javascripts/app/**/*.js',
-
- 'examples/widget-gallery/javascripts/*.js',
-
- 'examples/hoofbeats/javascripts/*.js',
-
'test/**/*.js'
]
},
"devel" : true,
"boss" : true,
"expr" : true,
- "asi" : true
+ "asi" : true,
+ "es5" : true
}
},
less: {
concat: {
cowhide_js: {
src: [
- 'lib/jquery-1.8.3.js',
- 'lib/jquery-ui-1.9.2.custom.js',
- 'lib/jquery.ui.slider.js',
- 'lib/jquery.mCustomScrollbar.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',
'src/javascripts/cowhide-select.js',
'src/javascripts/cowhide-page.js',
'src/javascripts/cowhide-header.js',
- 'src/javascripts/cowhide-scrollable.js'
+ 'src/javascripts/cowhide-scrollable.js',
+ 'src/javascripts/cowhide-simple-scrollable.js'
], dest: 'dist/cowhide.js'
},
- cowhide_ng_js: {
- src: [
- 'lib/angular.js',
-
- 'src/javascripts/cowhide-ng-core.js',
- 'src/javascripts/cowhide-ng-page.js',
- 'src/javascripts/cowhide-ng-header.js',
- 'src/javascripts/cowhide-ng-button.js',
- 'src/javascripts/cowhide-ng-slider.js',
- 'src/javascripts/cowhide-ng-scrollable.js'
- ], dest: 'dist/cowhide-ng.js'
- },
css_default: {
src: [
'dist/cowhide-default.css',
- 'lib/jquery.ui.slider.css',
- 'lib/jquery.mCustomScrollbar.css'
], dest: 'dist/cowhide-default.css'
},
css_default_night: {
src: [
'dist/cowhide-default-night.css',
- 'lib/jquery.ui.slider.css',
- 'lib/jquery.mCustomScrollbar.css'
], dest: 'dist/cowhide-default-night.css'
},
css_amelia: {
src: [
'dist/cowhide-amelia.css',
- 'lib/jquery.ui.slider.css',
- 'lib/jquery.mCustomScrollbar.css'
], dest: 'dist/cowhide-amelia.css'
},
css_amelia_night: {
src: [
'dist/cowhide-amelia-night.css',
- 'lib/jquery.ui.slider.css',
- 'lib/jquery.mCustomScrollbar.css'
], dest: 'dist/cowhide-amelia-night.css'
},
css_spruce: {
src: [
'dist/cowhide-spruce.css',
- 'lib/jquery.ui.slider.css',
- 'lib/jquery.mCustomScrollbar.css'
], dest: 'dist/cowhide-spruce.css'
},
css_spruce_night: {
src: [
'dist/cowhide-spruce-night.css',
- 'lib/jquery.ui.slider.css',
- 'lib/jquery.mCustomScrollbar.css'
], dest: 'dist/cowhide-spruce-night.css'
}
},
cowhide: {
src: ['dist/cowhide.js'],
dest: 'dist/cowhide.min.js'
- },
- cowhide_ng: {
- src: ['fist/cowhide-ng.js'],
- dest: 'dist/cowhide-ng.min.js'
}
},
cssmin: {
files: {
'dist/images/': 'images/**',
'dist/README.md': 'README.md',
- 'dist/examples/calf/': 'examples/calf/**',
- 'dist/examples/calf-ng/': 'examples/calf-ng/**',
- 'dist/examples/widget-gallery/': 'examples/widget-gallery/**',
'dist/docs/': 'docs/**'
}
- }
+ },
},
exec: {
build_docs: {