Skip to content

A collection of connect middleware to mimic to Harp/Surge serving behaviour

License

Notifications You must be signed in to change notification settings

fffunction/lt-surge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lt. Surge

A collection of connect middleware to mimic to Harp/Surge serving behaviour, shamelessly ripped from Harp

Build Status Coverage Status

Usage

var middleware = require('lt-surge');
var projectDir = 'path/to/project';

// browser-sync example
middleware: [
    middleware.regProjectFinder(projectDir),
    middleware.underscore,
    middleware.mwl,
    middleware.static,
    middleware.fallback,
]

// using the convenience method
middleware: middleware.all(projectDir),

// connect example
var app = connect()
app.use(middleware.regProjectFinder(projectDir))
app.use(middleware.underscore)
app.use(middleware.mwl)
app.use(middleware.static)
app.use(middleware.fallback)

About

A collection of connect middleware to mimic to Harp/Surge serving behaviour

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •