|
@@ -4,10 +4,11 @@ module.exports = function(grunt) {
|
|
|
grunt.loadNpmTasks('amber-dev');
|
|
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
|
|
+ grunt.loadNpmTasks('grunt-contrib-clean');
|
|
|
grunt.loadNpmTasks('grunt-execute');
|
|
|
|
|
|
grunt.registerTask('default', ['peg', 'amberc:all']);
|
|
|
- grunt.registerTask('test', ['amberc:test_runner', 'execute:test_runner_run']);
|
|
|
+ grunt.registerTask('test', ['amberc:test_runner', 'execute:test_runner_run', 'clean:test_runner_clean']);
|
|
|
|
|
|
grunt.initConfig({
|
|
|
pkg: grunt.file.readJSON('package.json'),
|
|
@@ -87,6 +88,10 @@ module.exports = function(grunt) {
|
|
|
}
|
|
|
},
|
|
|
|
|
|
+ clean: {
|
|
|
+ test_runner_clean: ['test_runner.js']
|
|
|
+ },
|
|
|
+
|
|
|
jshint: {
|
|
|
amber: ['src/*.js'],
|
|
|
server: ['server/*.js'],
|