From 9d23e05691e3d9f1632e6498698a5b4c40b416b9 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Sat, 4 Feb 2012 13:44:39 -0800 Subject: [PATCH] Clean the Debug and Release dirs on Windows. --- lib/clean.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/clean.js b/lib/clean.js index ed8272d..a348a37 100644 --- a/lib/clean.js +++ b/lib/clean.js @@ -9,7 +9,7 @@ exports.usage = 'Removes any generated build files and the "out" dir' var rm = require('rimraf') , glob = require('glob') - , targets = [ 'out' ] + , targets = [] /** * Add the platform-specific targets to remove. @@ -17,10 +17,13 @@ var rm = require('rimraf') if (process.platform == 'win32') { // Remove MSVC project files + targets.push('Debug') + targets.push('Release') targets.push('*.sln') targets.push('*.vcxproj*') } else { // Remove Makefile project files + targets.push('out') targets.push('Makefile') targets.push('*.Makefile') targets.push('*.target.mk')