Permalink
Browse files

added clean task

  • Loading branch information...
aponxi committed Mar 3, 2013
1 parent 7bf4b73 commit e965a8e25b9cab3d5bd76ef1c5b7d7b7e4b76d67
Showing with 15 additions and 20 deletions.
  1. +15 −14 Gruntfile.coffee
  2. +0 −6 components/bootstrap/bootstrap/js/bootstrap.min.js
View
@@ -10,14 +10,10 @@ module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
- # Before generating any new files, remove any previously-created files.
- clean:
- tests: ["tmp"]
-
# Configuration to be run (and then tested).
wxi_shell:
- one:
+ make:
options:
cwd: 'components/bootstrap'
returnOutput: on
@@ -29,18 +25,23 @@ module.exports = (grunt) ->
,
"make bootstrap"
]
-
-
+ clean:
+ options:
+ cwd: 'components/bootstrap'
+ returnOutput: on
+ chained: on
+ exitSuccess: [0, 2]
+ commands:
+ [
+ "make clean"
+ ]
# Actually load this plugin's task(s).
grunt.loadTasks "tasks"
- # These plugins provide necessary tasks.
- grunt.loadNpmTasks "grunt-contrib-clean"
-
- # Whenever the "test" task is run, first clean the "tmp" dir, then run this
# plugin's task(s), then test the result.
- grunt.registerTask "test", ["clean","wxi_shell"]
-
- # By default, lint and run all tests.
+
+ grunt.registerTask "clean", ["wxi_shell:clean"]
+ grunt.registerTask "test", ["clean", "wxi_shell:make"]
+ # By default
grunt.registerTask "default", ["test"]
Oops, something went wrong.

0 comments on commit e965a8e

Please sign in to comment.