Permalink
Browse files

remove middleware example

  • Loading branch information...
1 parent 6849f32 commit da0e807ef5daa4b590799f078082331651374e24 @substack committed Nov 9, 2012
@@ -1,9 +0,0 @@
-<html>
-<head>
- <script type="text/javascript" src="/browserify.js"></script>
-</head>
-<body>
- foo =
- <span style='font-family: monospace' id="result"></span>
-</body>
-</html>
@@ -1,3 +0,0 @@
-exports.coeff = function (x) {
- return Math.log(x) / Math.log(2) + 1;
-};
@@ -1,5 +0,0 @@
-var foo = require('./foo');
-
-window.onload = function () {
- document.getElementById('result').innerHTML = foo(100);
-};
@@ -1,5 +0,0 @@
-var bar = require('./bar');
-
-module.exports = function (x) {
- return x * bar.coeff(x) + (x * 3 - 2)
-};
@@ -1,11 +0,0 @@
-var connect = require('connect');
-var server = connect.createServer();
-server.use(connect.static(__dirname));
-
-var browserify = require('browserify');
-var bundle = browserify(__dirname + '/js/entry.js');
-server.use(bundle);
-
-var port = parseInt(process.argv[2] || 8080, 10);
-server.listen(port);
-console.log('Listening on :' + port);

0 comments on commit da0e807

Please sign in to comment.