Jump to content

Phaser 3 BOILERPLATES, STARTERS - List, discussion and features


Ppozniak
 Share

Recommended Posts

So guys, I've been studying create-react-app for a while: https://github.com/facebook/create-react-app/blob/next/packages/create-react-app/createReactApp.js
 

Quote

And I think it would be good for create-phaser-app to work in the same way. As someone mentioned earlier that's how I could see it:

create-phaser-app will not be updated, because it is installed globally, so it will only create new directory and init in it, then install stuff based on user's settings (what lanaguage, and what examples).

Every template could've been lying as separate repository which will be normally updated and curated, also I think we could maybe use branches to create different examples for each templates? We could decide what examples should/could be available and then create branches for each repository. Master branches would be the smallest example possible.

Or  - one single repo and each branch as a langauge (plain js, ts, coffee?) - if so, I'm not sure about different examples.

As create-react-app is MIT, and the CLI seems to be a little complicated maybe we could use it as a base?

Let me know what do you guys think about it.

Link to comment
Share on other sites

Quote

Every template could've been lying as separate repository which will be normally updated and curated, also I think we could maybe use branches to create different examples for each templates? We could decide what examples should/could be available and then create branches for each repository. Master branches would be the smallest example possible.

Or  - one single repo and each branch as a langauge (plain js, ts, coffee?) - if so, I'm not sure about different examples.

What about different "packages" (or even a single "package" with multiple templates) similar to how create-react-app divides out its cli tool, scripts, dev utils, etc? I feel like we could easily lose track of separate repositories and branches and end up with a bunch of unmaintained templates.

At the moment I'm looking at using create-react-app to upgrade phaser-cli, it definitely seems like a good base for this sort of thing from what I've seen so far.

Link to comment
Share on other sites

I've been playing around with CRA and the beta vue-cli over the weekend and it seems to be easy enough to follow. At the moment I'm just remaking https://github.com/phaser-cli/phaser-cli to follow what CRA does, and it's working quite well so far: build/start scripts work although they're a bit rudimentary at the moment. Hopefully gonna have eject over the next couple of days, and also some workflow for CI/CD through travis because manual releases are pretty tedious. Feel free to use any of it for create-phaser-app as well. Any contributions to the code/suggestions/discussions appreciated too ?.

Link to comment
Share on other sites

1 hour ago, nerdenough said:

I've been playing around with CRA and the beta vue-cli over the weekend and it seems to be easy enough to follow. At the moment I'm just remaking https://github.com/phaser-cli/phaser-cli to follow what CRA does, and it's working quite well so far: build/start scripts work although they're a bit rudimentary at the moment. Hopefully gonna have eject over the next couple of days, and also some workflow for CI/CD through travis because manual releases are pretty tedious. Feel free to use any of it for create-phaser-app as well. Any contributions to the code/suggestions/discussions appreciated too ?.

Great, I went through this and it will help for sure. Thanks.

Is 

  fs.moveSync(path.join(appPath, 'gitignore'), path.join(appPath, '.gitignore'))

used because `fs.copySync` ignores files starting with dot?

Link to comment
Share on other sites

  • 8 months later...

Just stumbled across this thread.
I've been independently working on a create-phaser-app implementation for about 7-8 months or so here: https://github.com/simiancraft/create-phaser-app

I think my goals are a bit different than other scaffolds here. I'm not looking for something minimal, and I am intentionally leaning on using Tiled as a level editor with this as well. Nonetheless, I wanted to post here so anyone who wanted to could see my progress. I also gave a small talk about it in Oklahoma City earlier this month as well.
Here are the slides from that talk: https://slides.com/jesseharlin/set-phasers-to-javascript
 I also talked about it some for al lightning talk many months ago here: 


this is all on an outdated version of Phaser 3 at this point, but this might still be a useful resource to people reading the forum.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...