Permalink
Browse files

[clean-up] do not dev-depend on express

  • Loading branch information...
1 parent a4c0a29 commit 80df136f0e83ce8c3aa38aa49382b120243ed44d @agnat committed Jan 31, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −2 examples/express_app.js
  2. +0 −1 package.json
View
@@ -1,9 +1,14 @@
#!/usr/bin/env node
-var express = require('express')
- , mdns = require('../lib/mdns')
+var mdns = require('../lib/mdns')
, app = express.createServer()
;
+
+try {
+ var express = require('express');
+} catch (e) {
+ console.log('please install express manualy: npm install express');
+}
app.get('/', function() { return "Hello World"; });
app.on('listening', function() {
View
@@ -7,7 +7,6 @@
, "devDependencies":
{ "ejs": "*"
, "less": "*"
- , "express": "*"
, "step": "*"
, "mkdirp": "*"
, "nopt": "*"

0 comments on commit 80df136

Please sign in to comment.