Commit Graph

  • c869783b0b Build/dev emoji logging improved. Restored old plain lines, using intentionally different emoji than the main package. main v1.7.2 LeoVasanko 2026-09-18 17:36:17 +00:00
  • c7577e9ff7 Guard access log lines against unreset injected colors LeoVasanko 2026-09-18 11:07:36 +00:00
  • fa287eba20 Make buildutil logging use same emojis as the main fastapi-vue logging. v1.7.1 LeoVasanko 2026-09-18 02:52:52 +00:00
  • 0f5b526df6 Add public setup_logging() for standalone pretty logging LeoVasanko 2026-09-18 02:19:46 +00:00
  • 1d4a0a5422 Add env() config binding with teleport() for CLI-to-worker config passing v1.7.0 LeoVasanko 2026-09-17 02:54:08 +00:00
  • 69a1ba3239 Clean up README LeoVasanko 2026-09-17 00:25:53 +00:00
  • d1e82b5955 Treat dict log_config without a version key as an overlay on uvicorn defaults. v1.6.2 LeoVasanko 2026-09-16 03:47:48 +00:00
  • 5730e5dd01 Document logging principles under the server section. LeoVasanko 2026-09-16 02:52:46 +00:00
  • 3a9c5d1674 Set root logger level by dev mode, drop kanta logging config. LeoVasanko 2026-09-16 02:22:35 +00:00
  • 22d9fe350b Migrate pre-1.6 DEVMODE to fastapi_vue.env with in-place patching, run uv sync after dependency changes. v1.6.1 LeoVasanko 2026-09-14 04:22:24 +00:00
  • 42adf6120d Replace startupbox in code box with an actual screenshot. LeoVasanko 2026-09-14 03:09:28 +00:00
  • 5ab12187bd Add new screenshot of a simulated My App run. LeoVasanko 2026-09-14 03:05:17 +00:00
  • 5d1ba2f58c Add README images. v1.6.0 LeoVasanko 2026-09-14 02:26:50 +00:00
  • cf2957ab8d Add images for docs. LeoVasanko 2026-09-14 02:19:03 +00:00
  • fbfd2ba1bb Rewritten fastapi-vue-setup README. LeoVasanko 2026-09-14 01:48:26 +00:00
  • ff33df0ebc Rewritten fastapi-vue README. Add listen URLs on startup box default template. LeoVasanko 2026-09-13 22:59:06 +00:00
  • dec5191157 Add fastapi_vue.env accessor with FASTAPI_VUE prefix LeoVasanko 2026-09-13 21:24:51 +00:00
  • baab37ae2d Startup box improvements. LeoVasanko 2026-09-13 06:04:10 +00:00
  • ab2d721723 Devutil ready() now logs and raises RuntimeError on timeout. LeoVasanko 2026-09-13 05:25:25 +00:00
  • 2d7e119161 server: listen on both loopback families for localhost. LeoVasanko 2026-09-13 05:25:25 +00:00
  • d4f835428b Update vite-plugin-fastapi.js formatting to match modern vue/prettier/biome defaults. LeoVasanko 2026-09-13 04:29:33 +00:00
  • 1a22ec9dce devutil template made fully compatible and ruff-clean across python 3.11-3.14 target projects. LeoVasanko 2026-09-13 04:12:13 +00:00
  • 02b3890cd3 Proper error messages on npm and port check failures, avoid leaking asyncio tasks. v1.5.0 LeoVasanko 2026-09-12 05:50:52 +00:00
  • 4c0be1bfa7 Forward extra args to create-vue, e.g. for no-interactive use. LeoVasanko 2026-09-12 05:15:50 +00:00
  • beca6806ef Tidy up HTTP client; nowadays we have UTF-8 headers. LeoVasanko 2026-09-12 04:56:18 +00:00
  • c25835f467 Rewritten devutil.ProcessGroup with proper handling of subprocess deaths LeoVasanko 2026-09-08 02:14:26 +00:00
  • 38d5402045 Enable colored access log, tracerite and other software when running under systemd/journald which support colors (journalctl -ocat) and can strip them off (any other output mode). Sets environment FORCE_COLOR to full color if conditions are met. This is intended to affect all other modules and child processes alike (set NO_COLOR or FORCE_COLOR to override). v1.4.2 LeoVasanko 2026-09-03 17:27:48 +00:00
  • 4f09622241 Suppress watchfiles "INFO: 1 change detected" which is useless given we already get a WARNING about which file and Reloading... v1.4.1 LeoVasanko 2026-09-02 13:56:25 +00:00
  • 372d91bf49 Pin fastapi-vue minimum patch version to that of fastapi-vue-setup when ran, to force upgrades. LeoVasanko 2026-08-31 21:14:04 +00:00
  • b0b216b784 Run backend as module (python -m) in devserver instead of PATH-installed CLI. v1.4.0 LeoVasanko 2026-08-31 20:26:30 +00:00
  • 475a2cdc3c Cleaner and non-deprecated typing for template app module. Avoids ruff errors with strict configurations. LeoVasanko 2026-08-31 20:14:39 +00:00
  • 8774224545 Apply lifespan error logging patch in reload/worker subprocesses too. LeoVasanko 2026-08-31 20:04:25 +00:00
  • cb742000a8 Render debug-mode HTTP errors with tracerite, replacing Starlette's formatter. LeoVasanko 2026-08-31 20:00:39 +00:00
  • be8dc0c513 Don't clear screen on vite startup as that hides our own startup banner. LeoVasanko 2026-08-31 19:53:05 +00:00
  • e4c21109d9 Prettier logging of errors in lifespan startup/shutdown. LeoVasanko 2026-08-31 19:23:59 +00:00
  • 1287ba4077 Load tracerite for devserver script too. LeoVasanko 2026-08-31 19:23:07 +00:00
  • 9c51b89226 Make missing frontend files non-fatal: log an error and serve the placeholder page instead of raising during lifespan startup LeoVasanko 2026-08-31 18:48:27 +00:00
  • d5e94a2186 Startup box: server.run() prints app name, version and connect URL in a rounded unicode box on stderr. Shared termwidth module for ANSI-aware unicode display width and padding. LeoVasanko 2026-08-31 17:57:27 +00:00
  • c65d8eaa12 Target project no longer depends on httpx but depends on ~matching fastapi-vue version. Ruff cleanup. LeoVasanko 2026-08-31 17:06:35 +00:00
  • cb0b1f067d A hack to silence INFO level log chatter from uvicorn, while still doing this via log config. LeoVasanko 2026-08-31 16:22:16 +00:00
  • 5dbe9a0dcd Ignore executable flag of the temporary file being used to build devserver script. LeoVasanko 2026-08-31 15:52:56 +00:00
  • 0bba199376 Implement a pretty logging config by default. Emoji levels. Fixes root logger info being lost and warning+ printing with lastResort without any formatting. Replaces uvicorn's default formatter and log config that the author is not willing to fix (any time soon). LeoVasanko 2026-08-31 15:52:23 +00:00
  • 4232304a00 Added TraceRite CLI error logging. Simplified logging setup. LeoVasanko 2026-08-31 05:34:33 +00:00
  • 77a34753d9 Add colored HTTP/WebSocket access logging to fastapi_vue.server. LeoVasanko 2026-08-31 04:16:43 +00:00
  • 52ca3f4f49 Update project URLs. LeoVasanko 2026-08-31 02:18:08 +00:00
  • ebc13c0ee4 Add ruff ignores for the check phase to avoid useless diagnostics. v1.3.2 LeoVasanko 2026-08-26 01:07:24 +00:00
  • 7a64d8f73b Disable server: uvicorn header. LeoVasanko 2026-08-25 23:42:21 +00:00
  • a5b7d88a89 Fix typo in devserver.py comment LeoVasanko 2026-08-25 23:41:46 +00:00
  • 03aa31cedb Implement smarter reload handing on fastapi_vue.server(), simplify __main__, reload the main folder regardless of CWD. LeoVasanko 2026-06-29 18:49:18 +00:00
  • ec6a084969 Fix hardcoded project dir in template __main__.py (regression in commit 1b24a7). LeoVasanko 2026-06-29 18:18:04 +00:00
  • 15a6710c17 [lint] Format template after change. LeoVasanko 2026-03-08 17:35:02 +00:00
  • dcaf415032 Fix a typing issue with the fastapi-vue staticfiles module causing problems with SPA mode handler. v1.3.1 LeoVasanko 2026-03-08 17:30:42 +00:00
  • 79316eebd4 Rename build-frontend.py to buildhook.py. v1.3.0 LeoVasanko 2026-03-08 15:40:49 +00:00
  • 682d70cb23 Cleanup for ALL ruff checks, and re-ruff to target project settings when installing templates, avoiding formatting errors after patching. LeoVasanko 2026-03-08 15:25:52 +00:00
  • 1aaf040db7 Make devserver backend health check endpoint configurable, preserved in upgrades and optional. v1.2.0 LeoVasanko 2026-03-07 23:55:10 +00:00
  • aac27da67c Suppress CancelledError along with KeyboardInterrupt as a normal exit from server.run(). v1.1.1 LeoVasanko 2026-02-18 17:50:34 +00:00
  • 79e645a263 Add parse_endpoints helper function that handles complicated listen structures alike server.run() already did, returning a simple list of every endpoint. v1.1.0 LeoVasanko 2026-02-18 17:05:10 +00:00
  • 8b8a24a6b2 Determine app module path correctly even when in a submodule. A bit cleaner dev options. v1.0.2 LeoVasanko 2026-02-11 20:41:36 +00:00
  • cb6017cedf Find custom CLI main before looking up existing DEFAULT_PORT. Cleaner messages when Vue doesn't need patching. LeoVasanko 2026-02-11 20:27:35 +00:00
  • fab4108e92 Cleaner devserver help message. LeoVasanko 2026-02-11 20:06:36 +00:00
  • 637f737d4c Restore app module isort by reusing the full format function. LeoVasanko 2026-02-11 19:48:45 +00:00
  • 0b986717eb Cleaner message LeoVasanko 2026-02-11 18:40:58 +00:00
  • 9469d57f90 Better patching with existing custom main modules. Print all .new.py needing migration at the end. v1.0.1 LeoVasanko 2026-02-11 18:35:28 +00:00
  • 1ce0fffe3e Use dev port as default fallback in vite-plugin-fastapi, instead of default port. No effect on invocations via devserver script. v1.0.0 LeoVasanko 2026-02-11 18:15:57 +00:00
  • f483cf978c Ruff format v0.9.3 LeoVasanko 2026-02-10 20:56:06 +00:00
  • 0e12e3a531 Improved error message. LeoVasanko 2026-02-10 19:51:05 +00:00
  • 67bea9a2a7 Remove unnecessary bool() LeoVasanko 2026-02-10 19:46:32 +00:00
  • a05c8236f6 Format Python modules installed with ruff to target project style. v0.9.2 LeoVasanko 2026-02-10 19:34:35 +00:00
  • fc3d6dc912 README v0.9.1 LeoVasanko 2026-02-10 19:00:41 +00:00
  • c63a375ab2 Use ## to allow command be pasted as a whole. v0.9.0 LeoVasanko 2026-02-10 17:14:14 +00:00
  • c98994fd1a Dry run cleanup, also allow --dry-run. LeoVasanko 2026-02-10 17:06:42 +00:00
  • 6beaa88418 Improved setup complete message. LeoVasanko 2026-02-10 17:00:24 +00:00
  • 26a77dcf84 Cleaner messages while running the setup. LeoVasanko 2026-02-10 16:39:45 +00:00
  • 38c9ffe00b Add --version, rename --dry-run to just --dry. LeoVasanko 2026-02-10 16:29:30 +00:00
  • b87984af9a Consistent form of CLI arguments. LeoVasanko 2026-02-10 16:16:32 +00:00
  • d3b6fccce0 The devserver now takes --listen for vite endpoint rather than a positional argument. Changed FRONTEND_URL to VITE_URL and streamlined terminology elsewhere. LeoVasanko 2026-02-10 16:09:07 +00:00
  • d2ee7395c5 health?from=frontend for logs LeoVasanko 2026-02-10 16:01:06 +00:00
  • b94608ffe3 Run ruff within local venv (otherwise required system path which did not include the venv with uv tool install). v0.8.3 LeoVasanko 2026-02-09 16:03:30 +00:00
  • ef6bce8f3f Use the CLI script rather than python -m for running the main app from devserver. LeoVasanko 2026-02-09 15:55:08 +00:00
  • b8bf46132a Reload arguments passed differently to avoid uvicorn warning in prod mode. v0.8.2 LeoVasanko 2026-02-06 22:43:00 +00:00
  • ca85c2fcfb Ruff LeoVasanko 2026-02-06 22:37:03 +00:00
  • 440808361a Patch existing projects better. v0.8.1 LeoVasanko 2026-02-06 20:09:17 +00:00
  • 05fd5c562e Missing import v0.8.0 LeoVasanko 2026-02-06 19:35:04 +00:00
  • 5f0e74713f Improved dry mode message. LeoVasanko 2026-02-06 19:17:06 +00:00
  • 2d117a9d5e Improved messages. LeoVasanko 2026-02-06 19:07:50 +00:00
  • 4bf102579a Added automatic handling of FastAPI debug mode. Use templating more completely to enable project name as env prefix etc. LeoVasanko 2026-02-06 19:05:36 +00:00
  • fbed7873e5 [fastapi_vue] Further cleanup, wildcards for favicon. LeoVasanko 2026-02-06 18:09:22 +00:00
  • 008b3593db [fastapi_vue] StaticFiles cleanup: use app.debug rather than env variables; default assets caching. LeoVasanko 2026-02-06 17:21:40 +00:00
  • 3820c6f3c1 Fix argument passing to vite under deno. v0.7.2 LeoVasanko 2026-02-05 20:11:22 +00:00
  • c300a1a291 Simplified uvicorn running in multiprocess mode, avoiding a crash on Windows when it couldn't setup threads (running from a worker thread). v0.7.1 LeoVasanko 2026-02-02 21:02:34 +00:00
  • bdfaa22b0c Another file extension showing, swapping to stem for logging. LeoVasanko 2026-02-02 20:47:32 +00:00
  • 47e5ec279c Hide tool.CMD .EXE etc. from logs, makes Windows cleaner. LeoVasanko 2026-02-02 20:42:18 +00:00
  • 093b83737e Improved status messages, added a note of not installing main CLI entry point. LeoVasanko 2026-02-02 20:35:30 +00:00
  • a84041a923 Refactor with new fastapi-vue utility module to run the server, used in CLI main and devserver to run the main app. Default ports made part of templating, so that --ports can be easily specified to fastapi-vue-setup to customize (respects earlier choices when no --ports is specified). New overall default ports 3100, 3200. v0.7.0 LeoVasanko 2026-02-02 19:56:31 +00:00
  • 9a9a00380f Add a release script to simplify building both. LeoVasanko 2026-02-02 19:53:06 +00:00
  • 0e4f8f65f2 Moved fastapi-vue project to fastapi-vue-setup repository, using common version numbering (starting with v0.7.0). LeoVasanko 2026-02-02 19:51:45 +00:00
  • 5391c81e8b Cleanup fixes, and-- cleanup. LeoVasanko 2026-02-02 16:43:39 +00:00
  • c106ce1a44 Add missing files. v0.6.2 LeoVasanko 2026-02-02 16:27:34 +00:00
  • b7b1920846 Make devserver verify that no servers are already running before starting them. LeoVasanko 2026-02-02 16:26:19 +00:00
  • 8ccfa1f658 Simplified devserver script, fixed termination on failed npm install. LeoVasanko 2026-02-02 15:56:19 +00:00