kadamwhite / p5-cli

An NPM-based CLI for creating and running P5.js projects.
MIT License
30 stars 3 forks source link

Define CLI functionality #1

Open kadamwhite opened 9 years ago

kadamwhite commented 9 years ago

@brysonian Tagging you and anybody else from the p5 team to help brainstorm: I'm making enough progress mocking up a quick, node-based CLI that I think it's worth defining what functionality I should add for an MVP.

My initial instincts are to define these commands:

What else is essential for the first round?

brysonian commented 9 years ago

This is great news! i think those two are the most important. As much as I prefer server, is run more inline with processing and therefore a better option?

I'm not sure how useful the --create flag would be, i guess i can't think of a case where it would be too useful. I do think that serve could work with a single js file (ala famous) or a normal directory that includes and index and all that. Maybe that would be a useful distinction for separate serve and run commands?

kadamwhite commented 9 years ago

Thanks for the input, @brysonian. I began working on p5 serve last night, I'm hoping to have it set up to work in the two ways you indicate. I'm going to start by making it one command that will do both things as I experiment, but we should revisit whether serve and run should be two sep. commands later!

brysonian commented 9 years ago

So excited about this. I poked around with electron this morning and pretty quickly got a p5 app packaged as a mac app https://dl.dropboxusercontent.com/u/57593/reactive-spokes.zip I'll take a look at maybe integrating this into the cli, and perhaps building an electron app to provide a GUI version of all this wonderfulness.