Skip to content

Comments

Add start.sh for unified WASM build and frontend dev server launch#44

Merged
Yaketh (Kushmanmb) merged 7 commits intomasterfrom
copilot/start-shell-script-process
Feb 19, 2026
Merged

Add start.sh for unified WASM build and frontend dev server launch#44
Yaketh (Kushmanmb) merged 7 commits intomasterfrom
copilot/start-shell-script-process

Conversation

Copy link

Copilot AI commented Feb 15, 2026

Adds ./start.sh as single-command entrypoint to build and run the application.

Implementation

  • Prerequisites validation: Checks Node.js, npm/yarn, Rust, wasm-pack with version reporting
  • WASM build: Invokes pdf-utils/wasm/generate_wasm.sh if toolchain available, degrades gracefully if not
  • Dependency management: Prefers yarn over npm, installs frontend deps automatically
  • Dev server: Launches Vite on localhost:3000

Technical Details

  • Uses set -euo pipefail for fail-fast execution
  • Color-coded log levels (INFO/WARN/ERROR/STEP) for output clarity
  • Resolves script directory dynamically for path independence
  • Shellcheck compliant (SC2155 addressed via separate declare/assign)

Usage

./start.sh
# Validates prerequisites → builds WASM → installs deps → starts dev server

Script auto-detects missing tools and provides installation guidance rather than failing silently.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 4 commits February 15, 2026 21:21
Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
Copilot AI changed the title [WIP] Add script to start the application Add start.sh for unified WASM build and frontend dev server launch Feb 15, 2026
@Kushmanmb Yaketh (Kushmanmb) marked this pull request as ready for review February 15, 2026 22:18
@Kushmanmb Yaketh (Kushmanmb) merged commit ec3be43 into master Feb 19, 2026
19 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants