Skip to content

Commit

Permalink
Add an Express example
Browse files Browse the repository at this point in the history
  • Loading branch information
sstephenson committed Dec 27, 2010
1 parent 59f5fa8 commit 8d00487
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -3,3 +3,13 @@ width=432 height=329>

Develop and test your JavaScript applications as CommonJS modules in
Node.js. Then __Stitch__ them together to run in the browser.

var stitch = require('stitch');
var express = require('express');

var package = stitch.createPackage({
paths: [__dirname + '/lib', __dirname + '/vendor']
});

var app = express.createServer();
app.get('/application.js', package.createServer());

0 comments on commit 8d00487

Please sign in to comment.