Add clean task

This commit is contained in:
Kevin Sawicki
2013-05-29 16:39:37 -07:00
parent b15f0b0805
commit 3e10fac5d0
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
BUILD_DIR = '/tmp/atom-build'
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
@@ -23,5 +25,16 @@ module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-coffeelint')
grunt.loadNpmTasks('grunt-contrib-csslint')
grunt.registerTask 'clean', 'Delete all build files', ->
rm = require('rimraf').sync
rm BUILD_DIR
rm '/tmp/atom-coffee-cache'
rm '/tmp/atom-cached-atom-shells'
rm 'node_modules'
rm 'atom-shell'
rm 'cef'
rm 'node'
rm 'prebuilt-cef'
grunt.registerTask('lint', ['coffeelint:src', 'coffeelint:test', 'csslint:src'])
grunt.registerTask('default', 'lint')

View File

@@ -65,7 +65,8 @@
"grunt": "~0.4.1",
"grunt-cli": "~0.1.9",
"grunt-coffeelint": "0.0.6",
"grunt-contrib-csslint": "~0.1.2"
"grunt-contrib-csslint": "~0.1.2",
"rimraf": "~2.1.4"
},
"private": true,
"scripts": {