{"id":19969088,"url":"https://github.com/pwright/phaser-3-hygen","last_synced_at":"2026-02-11T15:02:05.008Z","repository":{"id":103346643,"uuid":"308881290","full_name":"pwright/phaser-3-hygen","owner":"pwright","description":"A Phaser 3 TypesScript project generator that was built using Hygen.","archived":false,"fork":false,"pushed_at":"2019-12-09T22:13:16.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-12T01:06:10.504Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pwright.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-31T12:53:15.000Z","updated_at":"2021-04-18T00:55:48.000Z","dependencies_parsed_at":"2023-07-07T19:15:17.857Z","dependency_job_id":null,"html_url":"https://github.com/pwright/phaser-3-hygen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pwright/phaser-3-hygen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwright%2Fphaser-3-hygen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwright%2Fphaser-3-hygen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwright%2Fphaser-3-hygen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwright%2Fphaser-3-hygen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pwright","download_url":"https://codeload.github.com/pwright/phaser-3-hygen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwright%2Fphaser-3-hygen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29336015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T14:34:07.188Z","status":"ssl_error","status_checked_at":"2026-02-11T14:34:06.809Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T02:48:39.242Z","updated_at":"2026-02-11T15:02:04.989Z","avatar_url":"https://github.com/pwright.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phaser-3-Hygen\n\nA [Hygen](https://github.com/jondot/hygen) [Phaser 3](https://github.com/photonstorm/phaser) Project Generator. Currently, this generator only supports TypeScript projects.\n\n## Quick Start\n\nThis section provides the basic commands needed to generate a project using this generator. For more detailed instructions and more information, please see relevant section of the `README.md`.\n\n```Bash\nnpx @scottwestover/phaser-3-hygen phaser template\n```\n\nTODO: insert image of generator running in cli\n\nYou should then be prompted for some additional infomation about your project. Once the project is generated, navigate to that generated project folder and run `npm install` and then `npm run dev` to launch the `dev` server with your Phaser 3 game.\n\nTODO: insert image of Phaser 3 game\n\n## Generate a project\n\nIn order to run the generator, you will need to use `npx` to run the generator, or you will need to install the package globally. To install this package, you will need to tell `npm` how to download this package from the GitHub Package repository. To do this, you can create a `.npmrc` file in the same directory as your `package.json` and add the following line to that file:\n\n```\n@scottwestover:registry=https://npm.pkg.github.com\n```\n\nYou can also add the same line to your per-user `~/.npmrc` file if you plan to use this package in many projects. **This is required if you plan to install this package with `npx`**\n\nYou can read more about this process here: [Installing GitHub Pacakges](https://help.github.com/en/github/managing-packages-with-github-packages/configuring-npm-for-use-with-github-packages#installing-a-package)\n\n### Install\n\nTo install the package globally:\n\n```Bash\nnpm install -g @scottwestover/phaser-3-hygen\n```\n\nOr, you can use `npx` to install the package:\n\n```Bash\nnpx @scottwestover/phaser-3-hygen phaser help\n```\n\n### Running the generator\n\nIf you installed the package in your project and not globally, you can run the generator by running:\n\n```Bash\nnode node_modules/.bin/phaser-hygen phaser help\n```\n\nIf you installed the package globally, you can run the generator by running:\n\n```Bash\nphaser-hygen phaser help\n```\n\nIf you use `npx` to install the package, the generator should be ran automatically.\n\n**Note: when you run one of the commands above, you should be shown a list of `actions` that you can run with this template generator.**\n\n### Available Hygen Actions\n\n| Command | Description |\n|---------|-------------|\n| `phaser-hygen phaser help` | Displays the available actions you can take for this generator |\n| `phaser-hygen phaser scene` | Creates a basic Scene Class that extends the `Phaser.Scene` class |\n| `phaser-hygen phaser template` | Creates a basic Phaser 3 TypeScript project |\n\n### Running the project\n\nOnce you have generated your project, you will need to install the required dependencies for that project. To do this just run: `npm install`. Once everything is installed, you can run one of the following commands:\n\n| Command | Description |\n|---------|-------------|\n| `npm run lint` | Lints the project using tslint |\n| `npm run dev` | Builds project and open web server, but do not watch for changes |\n| `npm run build` | Builds code bundle with production settings (minification, no source maps, etc..) |\n\n## Publishing New Version\nIn order to create a new beta version of this package, you can use the `npm version` command. This command will also create a `git` tag with the same version number. Example: `npm version 0.0.2`\n\nOnce you do this, you can run the `npm run package-publish` script.\n\n### Beta\nIn order to create a new beta version of this package, you can use the same command as above, but you will need to append `-beta.0`. Example: `npm version 0.0.2-beta.0`\n\nOnce you do this, you can run the `npm run package-publish:beta` script.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwright%2Fphaser-3-hygen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpwright%2Fphaser-3-hygen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwright%2Fphaser-3-hygen/lists"}