+/*
+ * 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/widget-gallery/javascripts/*.js',
-
'test/**/*.js'
]
},
"devel" : true,
"boss" : true,
"expr" : true,
- "asi" : true
+ "asi" : true,
+ "es5" : true
}
},
less: {
}
},
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',
'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',
'src/javascripts/cowhide-checkbox-input.js',
'src/javascripts/cowhide-select.js',
'src/javascripts/cowhide-page.js',
- 'src/javascripts/cowhide-header.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'
}
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: {
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
+};