From 4bb2ab97a913c2e920a6442cefcc61725df75d1f Mon Sep 17 00:00:00 2001 From: Vlad Date: Wed, 8 Jun 2016 22:13:53 +0300 Subject: [PATCH] dependencies update (jade renamed to pug) --- example/socketsio-auth0-sample/index.js | 9 ++++----- example/socketsio-auth0-sample/package.json | 8 ++++---- .../views/{index.jade => index.pug} | 4 ++-- .../views/{layout.jade => layout.pug} | 0 4 files changed, 10 insertions(+), 11 deletions(-) rename example/socketsio-auth0-sample/views/{index.jade => index.pug} (94%) rename example/socketsio-auth0-sample/views/{layout.jade => layout.pug} (100%) diff --git a/example/socketsio-auth0-sample/index.js b/example/socketsio-auth0-sample/index.js index 4079ab9..a7c4e83 100644 --- a/example/socketsio-auth0-sample/index.js +++ b/example/socketsio-auth0-sample/index.js @@ -1,5 +1,5 @@ var express = require('express'); -var app=express(); +var app = express(); var http = require('http').Server(app); var io = require('socket.io')(http); var socketioJwt = require('socketio-jwt'); @@ -13,7 +13,7 @@ var env = { }; app.set('views', __dirname + '/views'); -app.set('view engine', 'jade'); +app.set('view engine', 'pug'); io .on('connection', socketioJwt.authorize({ @@ -27,9 +27,9 @@ io io.emit('chat message', msg); }); }); - + app.use(express.static(__dirname + '/public')); - + app.get('/', function (req, res) { res.render('index', { env: env }); }); @@ -37,4 +37,3 @@ app.get('/', function (req, res) { http.listen(3001, function(){ console.log('listening on *:3001'); }); - diff --git a/example/socketsio-auth0-sample/package.json b/example/socketsio-auth0-sample/package.json index c7b9d64..f037e4e 100644 --- a/example/socketsio-auth0-sample/package.json +++ b/example/socketsio-auth0-sample/package.json @@ -6,10 +6,10 @@ "author": "Auth0", "license": "MIT", "dependencies": { - "dotenv": "^1.2.0", - "express": "^4.13.3", - "jade": "^1.11.0", - "socket.io": "^1.3.7", + "dotenv": "^2.0.0", + "express": "^4.13.4", + "pug": "^2.0.0-beta2", + "socket.io": "^1.4.6", "socketio-jwt": "^4.3.3" } } diff --git a/example/socketsio-auth0-sample/views/index.jade b/example/socketsio-auth0-sample/views/index.pug similarity index 94% rename from example/socketsio-auth0-sample/views/index.jade rename to example/socketsio-auth0-sample/views/index.pug index fb90db1..05f5516 100644 --- a/example/socketsio-auth0-sample/views/index.jade +++ b/example/socketsio-auth0-sample/views/index.pug @@ -1,9 +1,9 @@ extends layout block content - script(src="https://cdn.auth0.com/js/lock-9.0.min.js") + script(src="https://cdn.auth0.com/js/lock-9.2.min.js") script(src="/socket.io/socket.io.js") - script(src="http://code.jquery.com/jquery-1.11.3.js") + script(src="http://code.jquery.com/jquery-1.12.4.js") div#login diff --git a/example/socketsio-auth0-sample/views/layout.jade b/example/socketsio-auth0-sample/views/layout.pug similarity index 100% rename from example/socketsio-auth0-sample/views/layout.jade rename to example/socketsio-auth0-sample/views/layout.pug