1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-11 18:32:50 +00:00

plenty o changes

This commit is contained in:
2016-08-18 20:32:54 +00:00
parent 2cfda4bb4f
commit 3e6ffc206a
11 changed files with 175 additions and 30 deletions

View File

@@ -8,6 +8,7 @@
*/
import fs from 'fs';
import ncp from 'ncp';
import marked from 'marked';
import highlight from 'highlight.js';
@@ -60,4 +61,12 @@ json.posts.sort((a, b) => {
fs.writeFile('./dist/metadata.json', JSON.stringify(json,null,4), (err) => {
if (err) throw err;
console.log("Saved metadata.json");
})
})
//copy posts folder to dist
ncp('./posts', './dist/posts', (err) => {
if (err) {
return console.error(err);
}
console.log('copied');
});