summaryrefslogtreecommitdiff
path: root/tools/run
Commit message (Collapse)AuthorAge
* Prevent race conditions between `cargo run` and `npx vite build` in `tools/run`.Owen Jacobson2025-07-15
| | | | | | | | | | | | | | | | | | | To reproduce: * Make any change (even just `touch`) to a file in `ui`. * Run `tools/run`. There's a decent chance that the script will fail, with esoteric and variable errors: ``` failed to load config from .../pilcrow/vite.config.js_api(buil... error when starting dev server: Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@sveltejs/kit' imported from .../pilcrow/vite.config.js.timestamp-1752608239248-52b6b8965ad28.mjs ``` is one such exmple. These errors are due to the `npm ci` carried out by `cargo` at build time (see `build.rs`), which deletes and re-creates `node_modules`. Vite and Svelte do not like having `node_modules` deleted out from under them. As `cargo` will rerun `build.rs` any time `ui` changes, this means that `tools/run` effectively requires a complete build _first_, before it can be run.
* Call `vite` directly to build the frontend.Owen Jacobson2025-05-27
| | | | | | Calling through `npm` wasn't adding anything other than complexity, and it made it somewhat harder to follow what tools did what. I'm also pretty sure `tools/build-ui` was totally unused.
* Add separate runners for a freestanding frontend and the (debug version of) ↵Owen Jacobson2024-11-28
| | | | the unified build.
* Dedicate `tools/run` to running the development server(s).Owen Jacobson2024-11-22
| | | | | | | * It now _always_ runs both the backend and the frontend. * The frontend is now _always_ exposed on both `localhost` and on the machine's local network interfaces. The role of running a consolidated server is now handled by `cargo run` (this has been possible since e7d4b6d7ddbcd0128e47476e6cd1d824a1929f3c anyways).
* Patch out --host again; npm run formatOwen Jacobson2024-11-19
|
* Merge branch 'main' into wip/touch-eventsKit La Touche2024-11-09
|\
| * Rename the project to `pilcrow`.Owen Jacobson2024-11-08
| |
* | Set up framework for testing touch eventsKit La Touche2024-11-04
|/ | | | | | | | | | This includes a change to tools/run that exposes the dev server on my local network. This change should not make it into the final form of this branch. This is so I can use actual for real touch events on my actual for real phone, hooked up for remote debugging to my computer so I can see console events etc.
* Do a big mobile app design thingKit La Touche2024-10-23
| | | | | | Mobile-friendly anyway. Thanks to [Miriam](https://www.miriamsuzanne.com/) for the CSS that enables a sliding menu on mobile size, constant menu on larger.
* Render the UI at /.Owen Jacobson2024-10-05
|
* Tools scripts; `run` to run the server in fewer keystrokesOwen Jacobson2024-08-30