grunt cleanup.

This commit is contained in:
kay.one 2013-03-23 17:14:55 -07:00
parent 1f794e0203
commit b22bcf4947
3 changed files with 9 additions and 9 deletions

1
.gitignore vendored
View File

@ -139,3 +139,4 @@ NzbDrone.Web/*
siaqodb.lic
node_modules/
NzbDrone.Backbone/templates.js
NzbDrone.Backbone/Content/bootstrap.css

View File

@ -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']);
};

View File

@ -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": "*"
}
}