WordPress plugin intelligence profile

WP CoffeeScript

Allows developers to easily use CoffeeScript in WordPress. Simply use enqueue_coffeescript(); the compilation is done automatically behind the scenes.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.3
Current version1.0
WordPress coverageTested up to WordPress 3.3
Minimum stackWP 3.0 · PHP —
Directory statusactive
Last directory update9 Jan 201214y ago
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records WP CoffeeScript version 1.0 as active, updated 14y ago and tested up to WordPress 3.3.

Overview

About this plugin

WP CoffeeScript is a WordPress plugin that makes enqueueing CoffeeScript as easy as enqueueing JavaScript. Instead of using wp_enqueue_script(), as you would for JS, you just use enqueue_coffeescript(), which takes almost exactly the same arguments. The only difference is that the second argument should be the file path instead of the URL.

If you’d like to compile multiple CS files into a single JS file, you can use an array of file paths as the second argument.

Please note that the CoffeeScript executable must be installed on the server. You can also set a custom path to the executable (see the examples ).

If you’d like to grab development releases, see what new features are being added, or browse the source code please visit the GitHub repo.

Examples

Enqueue a CoffeeScript file that’s in the theme directory:

coffee');

Enqueue multiple CS files, compiling them into a single output file:

coffee'; enqueue_coffeescript('my-handle', array($script1, $script2));

Enqueue a CS file in the footer with dependencies (the arguments are exactly the same as in wp_enqueue_script() ):

coffee', array('dep1', 'dep2'), false, true);

Set a custom path to the CS executable (the default value is coffeescript ):

add_filter('wpcs_executable', 'set_wpcs_executable'); function set_wpcs_executable($path) { return '/my/path/to/coffeescript'; }

Compile the CS on every page load (the default behavior is to only compile when the JS has been modified):

add_filter('wpcs_caching_enabled', 'disable_wpcs_caching'); function disable_wpcs_caching($is_enabled) { return false; }

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • coffeescript
  • cs
  • development
  • javascript
  • js
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.3

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.3.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.3
Minimum requirementsWordPress 3.0 · PHP not listed
Update activity9 Jan 201214y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.