From fd78c2a70963296824502b8c3a4bf009d32dca7d Mon Sep 17 00:00:00 2001 From: probablycorey Date: Thu, 20 Jun 2013 16:54:29 -0700 Subject: [PATCH] Don't clean node_modules when building --- Gruntfile.coffee | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 4fb57360f..3318b6a4e 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -111,14 +111,16 @@ module.exports = (grunt) -> grunt.loadNpmTasks('grunt-contrib-coffee') grunt.loadNpmTasks('grunt-contrib-less') - grunt.registerTask 'clean', 'Delete all build files', -> + grunt.registerTask 'partial-clean', 'Delete some of the build files', -> rm BUILD_DIR rm '/tmp/atom-coffee-cache' rm '/tmp/atom-cached-atom-shells' - rm 'node_modules' - rm 'atom-shell' rm 'node' + grunt.registerTask 'clean', 'Delete all the build files', -> + rm 'node_modules' + grunt.task.run('partial-clean') + grunt.registerTask 'build', 'Build the application', -> rm SHELL_APP_DIR mkdir path.dirname(BUILD_DIR) @@ -184,8 +186,8 @@ module.exports = (grunt) -> grunt.registerTask('compile', ['coffee', 'less', 'cson']) grunt.registerTask('lint', ['coffeelint', 'csslint', 'lesslint']) - grunt.registerTask('ci', ['clean', 'update-atom-shell', 'build', 'test']) - grunt.registerTask('deploy', ['clean', 'update-atom-shell', 'build', 'codesign']) + grunt.registerTask('ci', ['partial-clean', 'update-atom-shell', 'build', 'test']) + grunt.registerTask('deploy', ['update-atom-shell', 'build', 'codesign']) grunt.registerTask('default', ['update-atom-shell', 'build', 'set-development-version', 'install']) spawn = (options, callback) ->