mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
0588b0c7eb
Test Plan: edgehill --test Reviewers: bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D1537
21 lines
682 B
CoffeeScript
21 lines
682 B
CoffeeScript
path = require 'path'
|
|
os = require 'os'
|
|
|
|
module.exports = (grunt) ->
|
|
{rm} = require('./task-helpers')(grunt)
|
|
|
|
grunt.registerTask 'partial-clean', 'Delete some of the build files', ->
|
|
tmpdir = os.tmpdir()
|
|
|
|
rm grunt.config.get('atom.buildDir')
|
|
rm require('../src/coffee-cache').cacheDir
|
|
rm require('../src/less-compile-cache').cacheDir
|
|
rm path.join(tmpdir, 'atom-cached-electrons')
|
|
rm 'electron'
|
|
|
|
grunt.registerTask 'clean', 'Delete all the build files', ->
|
|
homeDir = process.env[if process.platform is 'win32' then 'USERPROFILE' else 'HOME']
|
|
|
|
rm 'node_modules'
|
|
rm path.join(homeDir, '.atom', '.node-gyp')
|
|
grunt.task.run('partial-clean')
|