pulsar/tasks/clean-task.coffee

17 lines
495 B
CoffeeScript
Raw Normal View History

2013-07-03 20:26:04 +04:00
path = require 'path'
2013-06-27 20:07:33 +04:00
module.exports = (grunt) ->
{rm} = require('./task-helpers')(grunt)
2013-06-27 20:07:33 +04:00
grunt.registerTask 'partial-clean', 'Delete some of the build files', ->
rm grunt.config.get('atom.buildDir')
rm require('../src/coffee-cache').cacheDir
2013-06-27 20:07:33 +04:00
rm '/tmp/atom-cached-atom-shells'
rm 'atom-shell'
2013-06-27 20:07:33 +04:00
grunt.registerTask 'clean', 'Delete all the build files', ->
rm 'node_modules'
2013-07-03 20:26:04 +04:00
rm path.join(process.env.HOME, '.atom', '.node-gyp')
2013-06-27 20:07:33 +04:00
grunt.task.run('partial-clean')