A speedy tool for combining and compressing your JavaScript and CoffeeScript source files.

Coyote combines your source files into a single script to reduce HTTP overhead and make development easier. It has built-in support for Sprockets-style dependency syntax (`#= require x`) and a lightning-fast, built-in watch mechanism to detect changes to your source files and recompile on the fly. For increased optimization, you can optionally run the final compilation through the Google Closure Compiler before save.

Installation

$ gem install coyote

Command Line Interface

Syntax:

$ coyote [input_filepath]:[output_filepath]

Example:

$ coyote src/application.coffee:build/application.min.js

Options

Option

Description

-c, --compress

Compress the final compilation with the Google Closure Compiler

-w, --watch

Use the built-in watch mechanism to observe your source files and re-compile when something changes

-q, --quiet

Quiet the command-line output

-v, --version

Get the version of your Coyote gem

Requiring Source Files

Coyote has support for Sprockets-style requires, with one exception. Instead of using `require_tree`, you can simply use `require` and Coyote will automatically detect if the path is a source file or a directory.

Syntax: (JavaScript)

//= require other_file.js//= require some_directory

Syntax: (CoffeeScript)

#= require other_file.coffee#= require some_directory

Paths used in `require` statements are evaluated relative to the file which contains them.