From bdeb688459d90fe6460e1774847340be93a24e95 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 18 Feb 2014 17:53:56 +0200 Subject: [PATCH] Use grunt-exec for the tests. --- Gruntfile.js | 9 ++++++++- package.json | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 2dbd596..b84d6fe 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -28,6 +28,12 @@ module.exports = function(grunt) { } }, + exec: { + test: { + command: 'node ./test.js' + } + }, + concat: { options: { banner: '<%= banner %>' @@ -72,7 +78,8 @@ module.exports = function(grunt) { grunt.registerTask('test', [ 'concat', - 'jshint' + 'jshint', + 'exec' ]); grunt.registerTask('default', 'test'); diff --git a/package.json b/package.json index fddb72d..6e6ed00 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "test": "tests" }, "scripts": { - "test": "grunt test && node test.js" + "test": "grunt test" }, "devDependencies": { "grunt": "0.4.x", @@ -43,6 +43,7 @@ "grunt-contrib-jshint": "0.8.x", "grunt-contrib-qunit": "0.4.x", "grunt-contrib-uglify": "0.3.x", + "grunt-exec": "0.4.x", "load-grunt-tasks": "0.3.x", "qunit": "0.5.x", "time-grunt": "0.2.x" -- 2.34.1