A template for a Phaser app.
- create a new repository using this template
- edit
package.jsonas needed - execute
npm installto install the project dependencies - execute
npm run serveto start a development server on port 8000 - create your app
Note: If you want to create a README.md file for your project, rename this one to something like README-template.md and create a new README.md file.
- create a
gh-pagesbranch - goto the Settings page for your project
- click the Actions > General tab
- check the Read and write permissions option under Workflow permissions
- open
src/ghp-index.htmland change the base URL tohttps://<your_github_username>.github.io/<repository_name>/ - your project will be automatically built and deployed to GitHub Pages whenever you push to the
mainbranch - visit
https://<your_github_username>.github.io/<repository_name>/to view your live project
Note: The dist folder must remain excluded from .gitignore in order for the deployment workflow to succeed.
- execute
npm run build - copy the contents of
dist/to a web server