From 0715000eec8a5ffe51204abb50ea9247088f941e Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Mon, 23 Dec 2019 12:35:10 +0200 Subject: [PATCH] Extract data from blog posts --- blog_data/snippetList.json | 29 +++++++++++++++++++++++++++++ blog_data/snippets.json | 38 ++++++++++++++++++++++++++++++++++++++ config.js | 1 + 3 files changed, 68 insertions(+) create mode 100644 blog_data/snippetList.json create mode 100644 blog_data/snippets.json diff --git a/blog_data/snippetList.json b/blog_data/snippetList.json new file mode 100644 index 000000000..fac4e9b60 --- /dev/null +++ b/blog_data/snippetList.json @@ -0,0 +1,29 @@ +{ + "data": [ + { + "id": "10-vs-code-extensions-for-js-developers", + "type": "snippetListing", + "title": "10 must-have VS Code extensions for JavaScript developers", + "attributes": { + "text": "Developers will most likely argue for the rest of eternity about the most productive code editor and the best extensions. Here are my personal extension preferences for VS Code as a JavaScript developer:\n\n1. ESLint\n[ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) turns the popular JavaScrpt linter into an extension of VS Code. It automatically reads your linting configuration, identifies problems and even fixes them for you, if you want.\n\n2. GitLens\n[GitLens](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens) is a very powerful collaboration tool for VS Code. It provides many useful tools for git such as blame, code authorship, activity heatmaps, recent changes, file history and even commit search.\n \n3. Debugger for Chrome\n[Debugger for Chrome](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome) allows you to debug your JavaScript code in Chrome or Chromium. Breakpoints, call stack inspection and stepping inside a function are only some of its features.\n\n4. Bracket Pair Colorizer 2\n[Bracket Pair Colorizer 2](https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer-2) makes reading code faster as it makes matching brackets the same color. This extension for VS Code improves upon its predecessor by providing improved performance.\n\n5. Bookmarks\n[Bookmarks](https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks) is one of those extensions that will significantly reduce your time jumping between different files, as it allows you to save important positions and navigate back to them easily and quickly.\n\n6. TODO Highlight\n[TODO Highlight](https://marketplace.visualstudio.com/items?itemName=wayou.vscode-todo-highlight) simplifies tracking leftover tasks by allowing you to list all of your TODO annotations, as well as adding a handy background highlight to them to make them pop out immediately. \n\n7. Live Server\n[Live Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) gives you an easy way to serve web pages from VS Code, making previewing and debugging a lot easier. One of the core features is the live reload support that many developers are used to.\n\n8. REST Client\n[REST Client](https://marketplace.visualstudio.com/items?itemName=humao.rest-client) allows you to send HTTP requests and view the responses directly in VS Code. This extension supports a wide range of formats and authorization and should work with most setups.\n\n9. One Dark Pro\n[One Dark Pro](https://marketplace.visualstudio.com/items?itemName=zhuangtongfa.Material-theme) is one of the most popular VS Code themes and with very good reason. It provides a clean theme with a nice palette that has great contrast and is very comfortable to use on a daily basis.\n \n10. Fira Code\n[Fira Code](https://github.com/tonsky/FiraCode) is not a traditional VS Code extension and might take a couple more steps to set up, but it's a superb programming font with ligatures that will help you scan code faster once you get used to it.\n", + "tags": [ + "devtools", + "vscode", + "extension", + "javascript" + ] + }, + "meta": { + "hash": "5c4c8746f4aa253e9e3f53f049e28146152190e9f1ed50cbced7b3ee3561187b" + } + } + ], + "meta": { + "specification": "http://jsonapi.org/format/", + "type": "snippetListingArray", + "language": { + "short": "", + "long": "" + } + } +} \ No newline at end of file diff --git a/blog_data/snippets.json b/blog_data/snippets.json new file mode 100644 index 000000000..59ee4ae1e --- /dev/null +++ b/blog_data/snippets.json @@ -0,0 +1,38 @@ +{ + "data": [ + { + "id": "10-vs-code-extensions-for-js-developers", + "title": "10 must-have VS Code extensions for JavaScript developers", + "type": "blog.list", + "attributes": { + "fileName": "10-vs-code-extensions-for-js-developers.md", + "cover": "../blog_images/10-vs-code-extensions-for-js-developers.png", + "authors": [ + "chalarangelo" + ], + "text": "Developers will most likely argue for the rest of eternity about the most productive code editor and the best extensions. Here are my personal extension preferences for VS Code as a JavaScript developer:\n\n1. ESLint\n[ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) turns the popular JavaScrpt linter into an extension of VS Code. It automatically reads your linting configuration, identifies problems and even fixes them for you, if you want.\n\n2. GitLens\n[GitLens](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens) is a very powerful collaboration tool for VS Code. It provides many useful tools for git such as blame, code authorship, activity heatmaps, recent changes, file history and even commit search.\n \n3. Debugger for Chrome\n[Debugger for Chrome](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome) allows you to debug your JavaScript code in Chrome or Chromium. Breakpoints, call stack inspection and stepping inside a function are only some of its features.\n\n4. Bracket Pair Colorizer 2\n[Bracket Pair Colorizer 2](https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer-2) makes reading code faster as it makes matching brackets the same color. This extension for VS Code improves upon its predecessor by providing improved performance.\n\n5. Bookmarks\n[Bookmarks](https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks) is one of those extensions that will significantly reduce your time jumping between different files, as it allows you to save important positions and navigate back to them easily and quickly.\n\n6. TODO Highlight\n[TODO Highlight](https://marketplace.visualstudio.com/items?itemName=wayou.vscode-todo-highlight) simplifies tracking leftover tasks by allowing you to list all of your TODO annotations, as well as adding a handy background highlight to them to make them pop out immediately. \n\n7. Live Server\n[Live Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) gives you an easy way to serve web pages from VS Code, making previewing and debugging a lot easier. One of the core features is the live reload support that many developers are used to.\n\n8. REST Client\n[REST Client](https://marketplace.visualstudio.com/items?itemName=humao.rest-client) allows you to send HTTP requests and view the responses directly in VS Code. This extension supports a wide range of formats and authorization and should work with most setups.\n\n9. One Dark Pro\n[One Dark Pro](https://marketplace.visualstudio.com/items?itemName=zhuangtongfa.Material-theme) is one of the most popular VS Code themes and with very good reason. It provides a clean theme with a nice palette that has great contrast and is very comfortable to use on a daily basis.\n \n10. Fira Code\n[Fira Code](https://github.com/tonsky/FiraCode) is not a traditional VS Code extension and might take a couple more steps to set up, but it's a superb programming font with ligatures that will help you scan code faster once you get used to it.\n", + "tags": [ + "devtools", + "vscode", + "extension", + "javascript" + ] + }, + "meta": { + "hash": "5c4c8746f4aa253e9e3f53f049e28146152190e9f1ed50cbced7b3ee3561187b", + "firstSeen": "1577090516", + "lastUpdated": "1577090516", + "updateCount": 2, + "authorCount": 2 + } + } + ], + "meta": { + "specification": "http://jsonapi.org/format/", + "type": "snippetArray", + "language": { + "short": "", + "long": "" + } + } +} \ No newline at end of file diff --git a/config.js b/config.js index 8629f0928..bfac67c69 100644 --- a/config.js +++ b/config.js @@ -4,4 +4,5 @@ module.exports = { "repositoryUrl": "https://github.com/30-seconds/30-seconds-blog", "snippetPath": "blog_posts", "snippetDataPath": "blog_data", + "parser": "_30blogParser", };