Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

bump coffee-script #154

Closed
wants to merge 2 commits into from

1 participant

@gabehayes

Version 1.7.x of CoffeeScript requires that you register it before requiring .coffee files in node.

When requiring CoffeeScript files in Node you must now explicitly register the compiler. This can be done with require 'coffee-script/register' or CoffeeScript.register(). Also for configuration such as Mocha's, use coffee-script/register.

So, I have added the register method to the initialize method of support code loading and the error described in #153 goes away.

@jbpros jbpros closed this pull request from a commit
@gabehayes gabehayes Bump CoffeeScript (close #154)
Squashed commit of the following:

commit 7a658f5
Author: Gabe Hayes <gabriel.hayes@gmail.com>
Date:   Fri Feb 7 00:20:03 2014 -0800

    register coffee-script at initialize for 1.7.x support

commit d9b155a
Author: Gabe Hayes <gabriel.hayes@gmail.com>
Date:   Thu Feb 6 23:45:07 2014 -0800

    bump coffee-script
98a2725
@jbpros jbpros closed this in 98a2725
@kaaelhaa kaaelhaa referenced this pull request from a commit in justfone/cucumber-js
@gabehayes gabehayes Bump CoffeeScript (close #154)
Squashed commit of the following:

commit 7a658f5
Author: Gabe Hayes <gabriel.hayes@gmail.com>
Date:   Fri Feb 7 00:20:03 2014 -0800

    register coffee-script at initialize for 1.7.x support

commit d9b155a
Author: Gabe Hayes <gabriel.hayes@gmail.com>
Date:   Thu Feb 6 23:45:07 2014 -0800

    bump coffee-script
ac33f6e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +2 −0  lib/cucumber/cli/support_code_loader.js
  2. +1 −1  package.json
View
2  lib/cucumber/cli/support_code_loader.js
@@ -1,5 +1,6 @@
var SupportCodeLoader = function(supportCodeFilePaths) {
var Cucumber = require('../../cucumber');
+ var CoffeeScript = require('coffee-script');
var self = {
getSupportCodeLibrary: function getSupportCodeLibrary() {
@@ -13,6 +14,7 @@ var SupportCodeLoader = function(supportCodeFilePaths) {
var secondarySupportCodeInitializer = self.getSecondarySupportCodeInitializer();
var initializer = function() {
var supportCodeHelper = this;
+ CoffeeScript.register();
primeSupportCodeInitializer.call(supportCodeHelper);
secondarySupportCodeInitializer.call(supportCodeHelper);
};
View
2  package.json
@@ -59,7 +59,7 @@
"underscore": "1.5.2",
"cucumber-html": "0.2.3",
"walkdir": "0.0.7",
- "coffee-script": "1.6.3",
+ "coffee-script": "1.7.1",
"pogo": "0.5.1"
},
"devDependencies": {
Something went wrong with that request. Please try again.