From b22bcf494796da255ad36121db3d390ce88e944f Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sat, 23 Mar 2013 17:14:55 -0700 Subject: [PATCH] grunt cleanup. --- .gitignore | 1 + Gruntfile.js | 11 +++++------ package.json | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index b08c9eb6b..223a26d19 100644 --- a/.gitignore +++ b/.gitignore @@ -139,3 +139,4 @@ NzbDrone.Web/* siaqodb.lic node_modules/ NzbDrone.Backbone/templates.js +NzbDrone.Backbone/Content/bootstrap.css diff --git a/Gruntfile.js b/Gruntfile.js index d521d0e23..46f67d419 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -9,14 +9,13 @@ module.exports = function(grunt) { cwd: 'NzbDrone.Backbone/', // Src matches are relative to this path. src: ['**/*.js'], // Actual pattern(s) to match. dest: 'build/', // Destination path prefix. - ext: '.min.js' // Dest filepaths will have this extension. + ext: '.min.js' } }, less:{ bootstrap:{ - files: { - "NzbDrone.Backbone/Content/bootstrap.css": "NzbDrone.Backbone/Content/Bootstrap/bootstrap.less" - } + src: ["NzbDrone.Backbone/Content/Bootstrap/bootstrap.less"], + dest: "NzbDrone.Backbone/Content/bootstrap.css" } }, @@ -38,7 +37,7 @@ module.exports = function(grunt) { watch:{ bootstrap:{ - files: 'NzbDrone.Backbone/Content/Bootstrap/*.less', + files: '<%= less.bootstrap.src %>', tasks: ['less:bootstrap'] }, handlebars:{ @@ -57,6 +56,6 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-concat'); // Default task(s). - grunt.registerTask('default', ['watch']); + grunt.registerTask('default', ['less:bootstrap','handlebars', 'watch']); }; \ No newline at end of file diff --git a/package.json b/package.json index fe28c3b43..8ca638756 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,8 @@ "grunt": "*", "grunt-contrib-uglify": "*", "grunt-contrib-handlebars": "*", - "grunt-contrib-watch": "~0.3.1", - "grunt-contrib-less": "~0.5.0", - "grunt-contrib-concat": "~0.1.3" + "grunt-contrib-watch": "*", + "grunt-contrib-less": "*", + "grunt-contrib-concat": "*" } }