middleman/middleman-core
kematzy 95339dad23 Added :js_assets_paths for external JS repositories
Please Note!

This fix depends upon support in the 'middleman-sprockets' gem, where the following code must be present:

    # lib/middleman-sprockets/extension.rb
    <snip…>
    append_path app.css_dir

    # add custom assets paths to the scope
    app.js_assets_paths.each do |p|
      append_path p
    end

The purpose of this addition is to support including JS files from external (global) repositories.

Example usage:

    # in config.rb

    set :js_assets_path, [ "#{root}/assets/js/", "~/.js-repo/"]

Using symlinks or copying files to the Middleman project can get messy quickly. This fix reduces some of those issues.
2012-07-17 09:21:46 -07:00
..
bin Use plain Dir.chdir instead of enclosing middleman in a Dir.chdir-block. 2012-07-14 14:46:46 +02:00
features Tests and a small bug fix to make them pass 2012-07-13 16:00:53 +09:30
fixtures Tests and a small bug fix to make them pass 2012-07-13 16:00:53 +09:30
lib Added :js_assets_paths for external JS repositories 2012-07-17 09:21:46 -07:00
.gemtest enable gemtest at a per-gem level 2012-01-02 14:48:47 -08:00
middleman-core.gemspec Update some gem requirements, lock Padrino 2012-07-02 16:35:53 -07:00
Rakefile switch to guard/listen 2012-02-25 15:53:23 -08:00