Close #842 - Move version task to a grunt plugin

This commit is contained in:
Ben Word
2013-09-08 18:05:25 -05:00
parent 3a79ebfb9f
commit c66c20b7f2
3 changed files with 12 additions and 44 deletions

View File

@@ -48,6 +48,15 @@ module.exports = function(grunt) {
}
}
},
version: {
options: {
file: 'lib/scripts.php',
css: 'assets/css/main.min.css',
cssHandle: 'roots_main',
js: 'assets/js/scripts.min.js',
jsHandle: 'roots_scripts'
}
},
watch: {
less: {
files: [
@@ -85,12 +94,12 @@ module.exports = function(grunt) {
});
// Load tasks
grunt.loadTasks('tasks');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-recess');
grunt.loadNpmTasks('grunt-wp-version');
// Register tasks
grunt.registerTask('default', [