No commit activity in last 3 years
No release in over 3 years
Nanoc JavaScript concatenator filter
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

>= 3.3.0
 Project Readme

Nanoc JavaScript Concatenator

Build Status

A simple way to concatenate JavaScript files in Nanoc.

Installation

1. Install the gem

Add this line to your application's Gemfile:

gem 'nanoc-javascript-concatenator'

And then execute:

$ bundle

Or install it yourself as:

$ gem install nanoc-javascript-concatenator

2. Require the gem

Add this line to your site's lib/default.rb:

require 'nanoc/filters/javascript_concatenator'

Usage

Add a file to concatenate any JavaScript files together, e.g., js/all.js:

//= require include/first.js
//= require include/second.js
//= require include/third.js

Compile it with the concat_js filter in Rules:

compile '/js/all/' do
  filter :concat_js
end

Ignore any included JavaScript in Rules:

route '/js/include/*/' do
  nil
end