From 2683a3ca121366d9004cd71872e4af19999dfbc1 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Wed, 1 May 2013 00:01:17 -0700 Subject: [PATCH] added folder clean up to grunt removed unused tasks --- Gruntfile.js | 20 ++++++-------------- package.json | 6 ++---- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 2314d0e74..cbb1366c3 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -29,15 +29,10 @@ module.exports = function (grunt) { 'UI/Content/messenger.future.css' : 'http://raw.github.com/HubSpot/messenger/master/build/css/messenger-theme-future.css' }, - uglify: { - files: { - expand: true, // Enable dynamic expansion. - cwd : 'UI/', // Src matches are relative to this path. - src : ['**/*.js'], // Actual pattern(s) to match. - dest : 'build/', // Destination path prefix. - ext : '.min.js' - } + clean: { + folder: "_output/UI/" }, + less : { bootstrap: { src : "UI/Content/bootstrap/bootstrap.less", @@ -131,19 +126,16 @@ module.exports = function (grunt) { } }); - // Load the plugin that provides the "uglify" task. - grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-handlebars'); grunt.loadNpmTasks('grunt-contrib-less'); grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-copy'); - grunt.loadNpmTasks('grunt-wrap'); grunt.loadNpmTasks('grunt-notify'); grunt.loadNpmTasks('grunt-curl'); + grunt.loadNpmTasks('grunt-clean'); // Default task(s). - grunt.registerTask('default', ['copy', 'less', 'handlebars', 'watch']); - grunt.registerTask('package', ['copy', 'less', 'handlebars']); + grunt.registerTask('package', ['clean', 'copy', 'less', 'handlebars']); + grunt.registerTask('default', ['package', 'watch']); grunt.registerTask('update', ['curl']); }; \ No newline at end of file diff --git a/package.json b/package.json index ec5024b1c..da6d3b3a5 100644 --- a/package.json +++ b/package.json @@ -16,14 +16,12 @@ "readmeFilename": "readme.md", "dependencies": { "grunt": "*", - "grunt-contrib-uglify": "*", "grunt-contrib-handlebars": "*", "grunt-contrib-watch": "*", "grunt-contrib-less": "*", - "grunt-contrib-concat": "*", "grunt-contrib-copy": "*", - "grunt-wrap": "*", "grunt-curl": "*", - "grunt-notify": "*" + "grunt-notify": "*", + "grunt-clean": "*" } }