mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Don't clean node_modules when building
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user