chore(signin): jade renamed to pug

This commit is contained in:
Julien Fontanet 2016-05-04 16:00:28 +02:00
parent bae3122bb5
commit df60784b51
3 changed files with 4 additions and 4 deletions

View File

@ -64,7 +64,6 @@
"http-server-plus": "^0.6.4", "http-server-plus": "^0.6.4",
"human-format": "^0.6.0", "human-format": "^0.6.0",
"is-my-json-valid": "^2.12.2", "is-my-json-valid": "^2.12.2",
"jade": "^1.11.0",
"js-yaml": "^3.2.7", "js-yaml": "^3.2.7",
"json-rpc-peer": "^0.11.0", "json-rpc-peer": "^0.11.0",
"json5": "^0.4.0", "json5": "^0.4.0",
@ -115,6 +114,7 @@
"passport-local": "^1.0.0", "passport-local": "^1.0.0",
"promise-toolbox": "^0.3.2", "promise-toolbox": "^0.3.2",
"proxy-agent": "^2.0.0", "proxy-agent": "^2.0.0",
"pug": "^2.0.0-alpha6",
"redis": "^2.0.1", "redis": "^2.0.1",
"schema-inspector": "^1.5.1", "schema-inspector": "^1.5.1",
"semver": "^5.1.0", "semver": "^5.1.0",

View File

@ -14,9 +14,9 @@ import proxyConsole from './proxy-console'
import serveStatic from 'serve-static' import serveStatic from 'serve-static'
import startsWith from 'lodash.startswith' import startsWith from 'lodash.startswith'
import WebSocket from 'ws' import WebSocket from 'ws'
import { compile as compilePug } from 'pug'
import { createServer as createProxyServer } from 'http-proxy' import { createServer as createProxyServer } from 'http-proxy'
import { join as joinPath } from 'path' import { join as joinPath } from 'path'
import {compile as compileJade} from 'jade'
import { import {
AlreadyAuthenticated, AlreadyAuthenticated,
@ -129,8 +129,8 @@ async function setUpPassport (express, xo) {
} }
// Registers the sign in form. // Registers the sign in form.
const signInPage = compileJade( const signInPage = compilePug(
await readFile(joinPath(__dirname, '..', 'signin.jade')) await readFile(joinPath(__dirname, '..', 'signin.pug'))
) )
express.get('/signin', (req, res, next) => { express.get('/signin', (req, res, next) => {
res.send(signInPage({ res.send(signInPage({