From fb02e4042393bf40c4fe6c6078afbdbcaaeb235f Mon Sep 17 00:00:00 2001 From: James Allen Date: Fri, 14 Feb 2014 16:46:08 +0000 Subject: [PATCH] Standardize grunt file --- .../{GruntFile.coffee => Gruntfile.coffee} | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) rename services/filestore/{GruntFile.coffee => Gruntfile.coffee} (77%) diff --git a/services/filestore/GruntFile.coffee b/services/filestore/Gruntfile.coffee similarity index 77% rename from services/filestore/GruntFile.coffee rename to services/filestore/Gruntfile.coffee index 27d4adc86c..6534dedc09 100644 --- a/services/filestore/GruntFile.coffee +++ b/services/filestore/Gruntfile.coffee @@ -45,10 +45,12 @@ module.exports = (grunt) -> logConcurrentOutput: true mochaTest: - test: + unit: + src: ["test/unit/js/#{grunt.option('feature') or '**'}/*.js"] options: - reporter: process.env.MOCHA_RUNNER || "spec" - src: ['test/*.js', 'test/**/*.js'] + reporter: grunt.option('reporter') or 'spec' + grep: grunt.option("grep") + grunt.loadNpmTasks 'grunt-contrib-coffee' grunt.loadNpmTasks 'grunt-contrib-watch' @@ -57,8 +59,10 @@ module.exports = (grunt) -> grunt.loadNpmTasks 'grunt-concurrent' grunt.loadNpmTasks 'grunt-mocha-test' - grunt.registerTask "ci", ["coffee", "mochaTest"] + grunt.registerTask "test:unit", ["coffee", "mochaTest:unit"] + grunt.registerTask "ci", "test:unit" grunt.registerTask 'default', ['coffee', 'concurrent'] - grunt.registerTask "install", "coffee" + grunt.registerTask "compile", "coffee" + grunt.registerTask "install", "compile"