jwmerrill / connect-assets-jsprimer

An NPM module for forcing javascript file assets to be compiled without being referenced in views.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

connect-assets-jsprimer Build Status

An NPM module that forces compilation of your javascript connect-assets without referencing them in a view.

Problems This Helps With

  • You are using requireJS and don't want to reference all your javascript files in the view.
  • You have a javascript file that is dynamically loaded on your page but not in the view.

Installation

npm install connect-assets-jsprimer

  • There is a dependency on CoffeeScript. If you want a straight javascript version, you can compile it easily yourself.

Usage

assets = require 'connect-assets'
jsPrimer = require 'connect-assets-jsprimer'

# Snip ...

app.use assets()
jsPrimer assets

# Optionally, you can pass in a log function to see progress
# jsPrimer assets, console.log

Contributors

Jacob Gable

Adrien Antoine

Jonathan Chapman

Copyright

Created by Jacob Gable. MIT License; no attribution required.

About

An NPM module for forcing javascript file assets to be compiled without being referenced in views.


Languages

Language:CoffeeScript 97.5%Language:JavaScript 2.5%