Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

lt-surge

2.2.1 • Public • Published

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)

Install

npm i lt-surge

DownloadsWeekly Downloads

2

Version

2.2.1

License

MIT

Last publish

Collaborators

  • avatar