1 | connect-assets-jsprimer [![Build Status](https://secure.travis-ci.org/jgable/connect-assets-jsprimer.png)](http://travis-ci.org/jgable/connect-assets-jsprimer)
|
2 | =======================
|
3 |
|
4 | An NPM module that forces compilation of your javascript [connect-assets](https://github.com/TrevorBurnham/connect-assets) without referencing them in a view.
|
5 |
|
6 | ### Problems This Helps With
|
7 |
|
8 | - You are using [requireJS](http://requirejs.org) and don't want to reference all your javascript files in the view.
|
9 | - You have a javascript file that is dynamically loaded on your page but not in the view.
|
10 |
|
11 | ### Installation
|
12 |
|
13 | `npm install connect-assets-jsprimer`
|
14 |
|
15 | * There is a dependency on [CoffeeScript](http://coffeescript.org). If you want a straight javascript version, you can compile it easily yourself.
|
16 |
|
17 | ### Usage
|
18 |
|
19 | assets = require 'connect-assets'
|
20 | jsPrimer = require 'connect-assets-jsprimer'
|
21 |
|
22 | # Snip ...
|
23 |
|
24 | app.use assets()
|
25 | jsPrimer assets
|
26 |
|
27 | # Optionally, you can pass in a log function to see progress
|
28 | # jsPrimer assets, console.log
|
29 |
|
30 | ### Copyright
|
31 |
|
32 | Created by [Jacob Gable](http://jacobgable.com). MIT License; no attribution required.
|