cleanup some code
This commit is contained in:
parent
62f3c08aad
commit
928dc48011
@ -1,6 +1,8 @@
|
|||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
|
|
||||||
module.exports = function compile(page, fn){
|
module.exports = compile
|
||||||
|
|
||||||
|
function compile(page, fn){
|
||||||
switch(page.type){
|
switch(page.type){
|
||||||
case 'md':
|
case 'md':
|
||||||
compileMD(page.file, fn)
|
compileMD(page.file, fn)
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"main": "compile.js",
|
"main": "compile.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "nodemon compile.js"
|
"test": "nodemon app.js"
|
||||||
},
|
},
|
||||||
"author": "Mats van Reenen",
|
"author": "Mats van Reenen",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user