Closed daun closed 2 years ago
Looks great!!
I've just tested it locally and the process already is pretty painless. Keeping the front matter automatically would still be an improvement, I think.
Added your proposed changes. Keeping the frontmatter would indeed be great, but would be much more complicated then the 'dumb' version used here. Not too motivated to keep exploring here 🤡
I have done some refactoring on the script, see above. I hope it's ok that I'm chiming in with own commits to the PR :)
...I noticed that http.get
doesn't error if the response.statusCode
is 404
, that's why I added the check for it. Otherwise, the script would create a file for the non-existing plugin with contents of "404: Not Found".
Perfect! Feel free to review and merge.