Socket
Socket
Sign inDemoInstall

buster-coffee

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buster-coffee

Buster.JS extension: Automatically compile CoffeeScript files before running tests


Version published
Weekly downloads
2
Maintainers
3
Weekly downloads
 
Created
Source

buster-coffee

Build status

An extension for Buster.JS to automatically compile your CoffeeScript files before running tests.

Installation

Install from npm:

npm install buster-coffee

Then add it to your buster.js config file:

config["My tests"] = {
  // ...
  extensions: [require("buster-coffee")]
  // ...
};

Configuration

The extension has no configuration options.

Example web project

See the demo/ dir for an example project using Buster.JS and buster-coffee to test a function that is implemented in CoffeeScript, using tests written in CoffeeScript.

Example web project using AMD/RequireJS

If you are using buster-amd, you don't need buster-coffee to compile your CoffeeScript files, but can instead use e.g. the require-cs AMD loader plugin. See the demo-amd/ dir for an extensive example project, using Buster.JS to test AMD modules written in CoffeeScript and loaded with RequireJS.

Node.js and require()

Currently, buster-coffee does not work with files that are to be included using require(). buster-coffee never writes any files to disk, while require() explictly looks for the files it will include on disk. Because of this, buster-coffee has limited use for Node.js development in CoffeeScript.

Changelog

0.1.6 (2015-07-15)

  • Add license declaration to package.json.

0.1.5 (2014-09-11)

  • Update links after repo move.

0.1.4 (2013-01-06)

  • Set the ETag on the generated JavaScript resource to the same as the original CoffeeScript resource. This ensures that any generated JavaScript cached by Buster.JS will be invalidated when the CoffeeScript source changes.

0.1.3 (2012-05-24)

  • Leave .coffee files untouched if the environment setting is set to node. Contributed by Stephen Moore.

0.1.2 (2012-05-21)

  • Remove unused dependency on when.

0.1.1 (2012-05-20)

  • Use the coffee-script module's API instead of executing the coffee command.

0.1.0 (2012-05-20)

  • Initial release.

License

Copyright 2012, Stein Magnus Jodal.

Released under the Simplified BSD license. See the LICENSE file for details.

FAQs

Package last updated on 15 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc