GitHub Plugin for Pinegrow: Part 1
Namaste!
So this tutorial is going to be a little different. I’m only going to give a brief outline of what I have done so far in putting together this GitHub plugin for Pinegrow, plus I’ll embed the YouTube live stream.
As I outlined in my last post, I’m putting together a new plugin for Pinegrow that will allow the user to access GitHub for versioning directly from Pinegrow. In my first live stream I outlined starting a new local project from an existing GitHub repo from within Visual Studio Code. I then accessed the Pinegrow GitHub plugin boilerplate repo. Then I finished up by initiating npm within the local repo, adding the @octokit/rest
package, and then pushing it all to the GitHub repo for this project as ‘tutorial-one’.
NPM
Just a quick side-note about npm. I have been using npm for a long time, so I usually default to it since I have it all set-up on my system. However, I think in the future I’m going to push myself to use the yarn package manager a little more. It has most of the same features as npm, but is a lot faster and seems to be better at dependency updating.
The other thing that I want to mention is that even though I’ve been using npm extensively I still sometimes forget the npm init
step! There was actually a blooper reel of this live stream that thankfully didn’t stream of me swearing at my computer because the npm i @octokit/rest
command didn’t seem to be working. This is because there wasn’t a package.json
file in the local directory since I hadn’t run the init. Instead, npm was searching up the directory tree and installing it in a parent directory!
I hope everyone doesn’t mind this format. I will likely start writing a more extensive blog when I get into the actual code.
As always, if there are any questions, criticisms, general comments, please send me an email or comment on this post. I’ll try to respond to everyone.