Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions pages/common/pygbag.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# pygbag

> Build and serve Python projects for the web (WebAssembly) using Emscripten.
> Used mainly with pygame-based applications.
> More information: <https://pygame-web.github.io/wiki/pygbag/>.

- Build the current Python project into a web bundle:
`pygbag build`

- Serve the web bundle locally on port 8000:
`pygbag serve --port {{8000}}`

- Specify a different directory to serve:
`pygbag serve {{path/to/build_directory}}`

- Clean previously generated build artifacts:
`pygbag clean`

- Enable debug mode while serving:
`pygbag serve --debug`

- Export a project to a distributable zip file:
`pygbag export`

- Show available templates for web packaging:
`pygbag --template`

- Display help for all commands:
`pygbag --help`
Loading