From 57be53ccc68c9b47a308fb39211616cc485f51a4 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Tue, 13 Aug 2019 14:38:10 +0300 Subject: [PATCH] Delete migrator.js --- migrator.js | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 migrator.js diff --git a/migrator.js b/migrator.js deleted file mode 100644 index e9244a033..000000000 --- a/migrator.js +++ /dev/null @@ -1,24 +0,0 @@ -const snippets = require('./snippet_data/snippets.json'); -const fs = require('fs-extra'); -const path = require('path'); - -snippets.data.forEach(snippet => { - fs.writeFileSync( - path.join( - snippet.meta.archived ? './snippets_archive' : './snippets', - `${snippet.attributes.fileName}`), -`--- -title: ${snippet.id} -tags: ${snippet.attributes.tags.join(',')} ---- - -${snippet.attributes.text} - -\`\`\`js -${snippet.attributes.codeBlocks.es6} -\`\`\` - -\`\`\`js -${snippet.attributes.codeBlocks.example} -\`\`\``); -}); \ No newline at end of file