mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Add clean task
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user