mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-11 18:32:50 +00:00
plenty o changes
This commit is contained in:
11
metadata.js
11
metadata.js
@@ -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');
|
||||
});
|
||||
Reference in New Issue
Block a user