migrate from Jade to Pug

This commit is contained in:
Libor M 2019-05-04 13:22:09 +02:00
parent 5426f6d0c5
commit b890ab482b
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
const jade = require('jade');
const pug = require('pug');
const { markdown } = require('markdown');
const fs = require('fs');
const vm = require('vm');
@ -132,6 +132,6 @@ for (let index = 0; index < pages.length; index++) {
const page = pages[index];
page.pages = pages;
page.index = index;
const html = jade.renderFile('template.jade', page);
const html = pug.renderFile('template.pug', page);
fs.writeFileSync(page.file + '.html', html, 'utf8');
}

View File

@ -33,10 +33,10 @@
"codemirror": "~3.20.0",
"eslint": "^5.3.0",
"iconv-lite": "^0.4.13",
"jade": "~1.1.5",
"jest": "^24.7.1",
"markdown": "~0.5.0",
"prettier": "1.15.3",
"pug": "^2.0.3",
"rollup": "^1.11.0",
"rollup-plugin-babel": "^4.0.1",
"rollup-plugin-cpy": "^1.0.0"