Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,13 @@ jobs:
#
# After the tests rather than before them, because it is this job's most
# expensive step and a failing test should not pay for it first.
# Remap the runner's home out of the shipped artefact: Rust embeds
# `#[track_caller]` source paths in the data section, and the static
# prefix keeps those paths from identifying the build machine. The
# release opt-level override itself lives in `build:wasm`.
- name: Build the release WASM package
env:
RUSTFLAGS: "--remap-path-prefix=/home/runner=/U"
run: bun run build:wasm

# `src/wasm/pkg` only exists here, so this is the one place the JS/WASM
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,16 @@ jobs:
- name: Add wasm target
run: rustup target add wasm32-unknown-unknown

# Prebuilt binary, matching CI. `cargo install wasm-pack --locked`
# compiled binaryen and the whole tool from source on every release.
- name: Install wasm-pack
run: cargo install wasm-pack --locked
uses: taiki-e/install-action@v2
with:
tool: wasm-pack

- name: Build web (WASM + Vite)
env:
RUSTFLAGS: "--remap-path-prefix=/home/runner=/U"
run: bun run build:web

- name: Package web bundle
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ Ascent Flash is a desktop flash-mental-math trainer. It shows a sequence of numb
## Features

- Fast, consistent flashing: on desktop, timing is driven by the Rust backend; the browser build uses the same fixed schedule
- Configurable session settings: digits per number (1–15), flash duration, count, optional negative numbers; numbers are separated by a fixed 100ms blank
- Configurable session settings: digits per number (1–15), flash duration, count, optional negative numbers; numbers replace one another continuously with no blank frame between them
- Audio cues: beep during flashes, applause/buzzer on validation (toggleable)
- Auto-repeat: optionally run multiple rounds with a countdown between sessions
- Theme + color schemes
- Theme + color schemes carried consistently from the interface through every
flashing session; large tabular lining numerals at regular weight, sized for
children

## Install (from Release)

Expand Down
68 changes: 34 additions & 34 deletions bun.lock

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "flashspan",
"private": true,
"version": "2.8.2",
"version": "2.9.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand All @@ -10,26 +10,26 @@
"lint:check": "biome check",
"typecheck": "tsc --noEmit",
"format": "biome format --write",
"build:wasm": "wasm-pack build ./src-tauri --release --target web --out-dir ../src/wasm/pkg --out-name flashspan_core",
"build:wasm": "CARGO_PROFILE_RELEASE_OPT_LEVEL=3 wasm-pack build ./src-tauri --release --target web --out-dir ../src/wasm/pkg --out-name flashspan_core",
"build:web": "bun run build:wasm && bun run build",
"preview": "vite preview",
"test": "vitest --run"
},
"dependencies": {
"@tauri-apps/api": "^2.12.5",
"solid-js": "^1.9.19"
"solid-js": "1.9.20"
},
"devDependencies": {
"@biomejs/biome": "^2.6.8",
"@solidjs/testing-library": "^0.8.10",
"@testing-library/dom": "^10.4.2",
"@testing-library/user-event": "^14.6.12",
"@testing-library/user-event": "^14.6.13",
"@types/node": "^26.6.6",
"@vitest/coverage-v8": "5.1.0",
"@vitest/coverage-v8": "5.1.1",
"jsdom": "^31.0.1",
"typescript": "^7.0.2",
"vite": "^8.3.8",
"vite-plugin-solid": "^2.11.16",
"vitest": "^5.1.0"
"vite-plugin-solid": "^2.11.17",
"vitest": "^5.1.1"
}
}
Loading
Loading