chiunhau / p5-manager

A p5js template builder & sketches manager. Built for p5js enthusiasts.
348 stars 53 forks source link

Download and generate using remote template feature #38

Open ZeroX-DG opened 6 years ago

ZeroX-DG commented 6 years ago

Hey @chiunhau , I have added a download template feature for p5 manager. Here is how to use it:

p5 g <project_name> -t owner/repo

or 

p5 g <project_name> -t owner/repo@develop

The first command will download files from the repo and by default it will take master branch. If you want to change the branch the second command will allow you to pick another branch (develop).

If you want to try then you can use my repo:

p5 g testProject -t ZeroX-DG/CodingTrainP5
alexdmejias commented 6 years ago

@ZeroX-DG I just saw this, it looks like you hardcoded some github creds in your code, you might want to remove them and remove that client from your github API clients.

I also wonder how this could be extended to use other libraries other than P5, it looks like you are mostly there, if you aren't there already

ZeroX-DG commented 6 years ago

@alexdmejias thank you for remind me to remove them :smile: I also think extending for other libraries is a great idea, but I'm not sure when I'll be able to create that feature (I'm currently working on many projects). In the meantime, you can add that feature if you can.