Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coyote

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coyote

  • 1.2.2.rc2
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

COYOTE

##A speedy tool for combining and compressing your JavaScript, CoffeeScript, CSS and LESS source files.

Coyote combines your source files into a single script or stylesheet 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.

Build Status

###Installation

$ gem install coyote

###Command Line Interface

Syntax:

$ coyote [input_filepath]:[output_filepath]

Example

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

###Options

OptionDescription
-c, --compressCompress the final compilation with the Google Closure Compiler
-w, --watchUse the built-in watch mechanism to observe your source files and re-compile when something changes
-q, --quietQuiet the command-line output
-v, --versionGet 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.

###Using with Rake

Coyote ships with convenience methods for neatly defining tasks in your Rakefile:

require 'coyote/rake'

coyote :build do |config|
  config.input = "src/application.coffee"
  config.output = "build/application.min.js"
  config.options = { :compress => true }
end

This will create two Rake tasks, build and watch, which you can run as standard tasks: rake build and rake watch.

$ rake build
$ rake watch

###Contribute We'd love your help. Fork us so we can make Coyote better.

$ git clone git://github.com/imulus/coyote

###Download

You can download this project in either zip or tar formats.

or get the source code on GitHub : imulus/coyote

FAQs

Package last updated on 26 Sep 2012

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