From 284aa9c5a692d2ee136738e3073c1f749c1f0d78 Mon Sep 17 00:00:00 2001 From: MrSaints Date: Sun, 26 Oct 2014 20:45:52 +0000 Subject: [PATCH 1/2] Fixed Mocha for CoffeeScript 1.7+ --- Gruntfile.js | 2 +- generators/script/templates/Gruntfile.js | 2 +- generators/script/templates/script/test | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 9c89b67..a8a05b2 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -9,7 +9,7 @@ module.exports = function(grunt) { test: { options: { reporter: 'spec', - require: 'coffee-script' + require: 'coffee-script/register' }, src: ['test/**/*.coffee'] } diff --git a/generators/script/templates/Gruntfile.js b/generators/script/templates/Gruntfile.js index c79f93f..497b7aa 100644 --- a/generators/script/templates/Gruntfile.js +++ b/generators/script/templates/Gruntfile.js @@ -10,7 +10,7 @@ module.exports = function(grunt) { test: { options: { reporter: 'spec', - require: 'coffee-script' + require: 'coffee-script/register' }, src: ['test/**/*.coffee'] } diff --git a/generators/script/templates/script/test b/generators/script/templates/script/test index e142362..a67a39f 100755 --- a/generators/script/templates/script/test +++ b/generators/script/templates/script/test @@ -3,4 +3,4 @@ # bootstrap environment source script/bootstrap -mocha --compilers coffee:coffee-script \ No newline at end of file +mocha --compilers coffee:coffee-script/register \ No newline at end of file From fc99e6de5037dd2fa815a8a478b328c532856866 Mon Sep 17 00:00:00 2001 From: Ian Lai Date: Sun, 15 Feb 2015 17:39:53 +0000 Subject: [PATCH 2/2] Fixes CoffeeScript and Grunt dependency errors in Travis --- generators/script/templates/.travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/generators/script/templates/.travis.yml b/generators/script/templates/.travis.yml index 3c29566..9b89fab 100644 --- a/generators/script/templates/.travis.yml +++ b/generators/script/templates/.travis.yml @@ -3,4 +3,6 @@ node_js: - "0.11" - "0.10" notifications: - email: false \ No newline at end of file + email: false +before_script: + - npm install coffee-script grunt-cli \ No newline at end of file