Close #842 - Move version task to a grunt plugin
This commit is contained in:
11
Gruntfile.js
11
Gruntfile.js
@@ -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', [
|
||||
|
||||
Reference in New Issue
Block a user