https://github.com/peterhellberg/ff-init
Initialize a Zig ⚡ Firefly Zero app project
https://github.com/peterhellberg/ff-init
Last synced: 9 months ago
JSON representation
Initialize a Zig ⚡ Firefly Zero app project
- Host: GitHub
- URL: https://github.com/peterhellberg/ff-init
- Owner: peterhellberg
- License: mit
- Created: 2025-02-15T01:02:55.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-03-04T15:16:30.000Z (11 months ago)
- Last Synced: 2025-05-09T01:49:12.907Z (9 months ago)
- Language: Go
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ff-init :sparkles:
This is a command line tool that acts as a companion to my
[ff](https://github.com/peterhellberg/ff) module
for [Zig](https://ziglang.org/) :zap:
`ff-init` is used to create a directory containing code that
allows you to promptly get started coding on an app (or game) for the
lovely little WebAssembly console [Firefly Zero](https://fireflyzero.com/).
The Zig build `.target` is declared as `.{ .cpu_arch = .wasm32, .os_tag = .freestanding }`
and `.optimize` is set to `.ReleaseSmall`
> [!Important]
> No need to specify `-Doptimize=ReleaseSmall`
## Installation
(Requires you to have [Go](https://go.dev/) installed)
```sh
go install github.com/peterhellberg/ff-init@latest
```
## Usage
(Requires you to have an up to date (_nightly_) version of
[Zig](https://ziglang.org/download/#release-master) installed.
```sh
ff-init myapp
cd myapp
zig build run
```
> [!Note]
> There is also a `zig build spy` command.
> [!Tip]
> If you want minimal output then you can use the `-minimal` flag.
>
> _(List all of the available flags with `-help`)_
:seedling:
## Screenshot
