Skip to content

ahabio/ahab.rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AHAB Client

Client Library for the AHAB asset packaging system: ahab.io.

Includes

  • Command-Line Interface
  • Ahab::Client Ruby API
  • Ahab::Task Rake task to fetch assets

Will Include

  • Ahab::Guard Guard recipe to fetch assets
  • Asset registries
  • Optimistic version matching

ahab.js

Ahab depends on an ahab.json file in your project's root directory. Its structure looks like this:

{
  "assets": [
    {
      "url": "http://cdnjs.cloudflare.com/ajax/libs/960gs/0/960.css"
    },
    {
      "url": "http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js",
      "filename": "jQuery.js"
    }
  ]
}

Command-Line Interface

Run ahab fetch once you have your ahab.json set up.

Rake Task

Usage:

namespace :assets do
  Ahab::FetchTask.new(:fetch)
end
rake assets:fetch

About

Ruby Client for the AHAB asset packaging system

Resources

License

Stars

Watchers

Forks

Packages

No packages published