diff --git a/package.json b/package.json index 8b852e362..719a14c5d 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,6 @@ "http-server-plus": "^0.6.4", "human-format": "^0.6.0", "is-my-json-valid": "^2.12.2", - "jade": "^1.11.0", "js-yaml": "^3.2.7", "json-rpc-peer": "^0.11.0", "json5": "^0.4.0", @@ -115,6 +114,7 @@ "passport-local": "^1.0.0", "promise-toolbox": "^0.3.2", "proxy-agent": "^2.0.0", + "pug": "^2.0.0-alpha6", "redis": "^2.0.1", "schema-inspector": "^1.5.1", "semver": "^5.1.0", diff --git a/signin.jade b/signin.pug similarity index 100% rename from signin.jade rename to signin.pug diff --git a/src/index.js b/src/index.js index 4ae32067e..dd2ede84d 100644 --- a/src/index.js +++ b/src/index.js @@ -14,9 +14,9 @@ import proxyConsole from './proxy-console' import serveStatic from 'serve-static' import startsWith from 'lodash.startswith' import WebSocket from 'ws' +import { compile as compilePug } from 'pug' import { createServer as createProxyServer } from 'http-proxy' import { join as joinPath } from 'path' -import {compile as compileJade} from 'jade' import { AlreadyAuthenticated, @@ -129,8 +129,8 @@ async function setUpPassport (express, xo) { } // Registers the sign in form. - const signInPage = compileJade( - await readFile(joinPath(__dirname, '..', 'signin.jade')) + const signInPage = compilePug( + await readFile(joinPath(__dirname, '..', 'signin.pug')) ) express.get('/signin', (req, res, next) => { res.send(signInPage({