LeoVasanko
c9557d4308
Prefer npm over deno/bun and validate Node.js version, matching template buildutil
...
Auto-detect now tries npm, deno, bun (was deno-first), and npm is only
accepted when the adjacent node is v20+. Same checks apply to JS_RUNTIME,
which maps node to npm as before.
2026-10-27 22:39:56 +00:00
LeoVasanko
372d249a85
Fix setup for new uv init layouts; use backend/ package dir for new projects
2026-10-27 22:19:22 +00:00
LeoVasanko
22d9fe350b
Migrate pre-1.6 DEVMODE to fastapi_vue.env with in-place patching, run uv sync after dependency changes.
2026-09-14 04:22:24 +00:00
LeoVasanko
dec5191157
Add fastapi_vue.env accessor with FASTAPI_VUE prefix
2026-09-13 21:24:51 +00:00
LeoVasanko
02b3890cd3
Proper error messages on npm and port check failures, avoid leaking asyncio tasks.
2026-09-12 05:50:52 +00:00
LeoVasanko
4c0be1bfa7
Forward extra args to create-vue, e.g. for no-interactive use.
2026-09-12 05:15:50 +00:00
LeoVasanko
372d91bf49
Pin fastapi-vue minimum patch version to that of fastapi-vue-setup when ran, to force upgrades.
2026-08-31 21:14:04 +00:00
LeoVasanko
475a2cdc3c
Cleaner and non-deprecated typing for template app module. Avoids ruff errors with strict configurations.
2026-08-31 20:14:39 +00:00
LeoVasanko
c65d8eaa12
Target project no longer depends on httpx but depends on ~matching fastapi-vue version. Ruff cleanup.
2026-08-31 17:07:49 +00:00
LeoVasanko
5dbe9a0dcd
Ignore executable flag of the temporary file being used to build devserver script.
2026-08-31 15:52:56 +00:00
LeoVasanko
ebc13c0ee4
Add ruff ignores for the check phase to avoid useless diagnostics.
2026-08-26 01:07:24 +00:00
LeoVasanko
ec6a084969
Fix hardcoded project dir in template __main__.py (regression in commit 1b24a7).
2026-06-29 18:18:04 +00:00
LeoVasanko
79316eebd4
Rename build-frontend.py to buildhook.py.
2026-03-08 15:40:49 +00:00
LeoVasanko
682d70cb23
Cleanup for ALL ruff checks, and re-ruff to target project settings when installing templates, avoiding formatting errors after patching.
2026-03-08 15:25:52 +00:00
LeoVasanko
1aaf040db7
Make devserver backend health check endpoint configurable, preserved in upgrades and optional.
2026-03-07 23:55:10 +00:00
LeoVasanko
8b8a24a6b2
Determine app module path correctly even when in a submodule. A bit cleaner dev options.
2026-02-11 20:41:36 +00:00
LeoVasanko
cb6017cedf
Find custom CLI main before looking up existing DEFAULT_PORT. Cleaner messages when Vue doesn't need patching.
2026-02-11 20:27:35 +00:00
LeoVasanko
637f737d4c
Restore app module isort by reusing the full format function.
2026-02-11 19:48:45 +00:00
LeoVasanko
0b986717eb
Cleaner message
2026-02-11 18:40:58 +00:00
LeoVasanko
9469d57f90
Better patching with existing custom main modules. Print all .new.py needing migration at the end.
2026-02-11 18:35:28 +00:00
LeoVasanko
f483cf978c
Ruff format
2026-02-10 20:56:06 +00:00
LeoVasanko
a05c8236f6
Format Python modules installed with ruff to target project style.
2026-02-10 19:34:35 +00:00
LeoVasanko
c63a375ab2
Use ## to allow command be pasted as a whole.
2026-02-10 17:14:14 +00:00
LeoVasanko
c98994fd1a
Dry run cleanup, also allow --dry-run.
2026-02-10 17:06:42 +00:00
LeoVasanko
6beaa88418
Improved setup complete message.
2026-02-10 17:00:24 +00:00
LeoVasanko
26a77dcf84
Cleaner messages while running the setup.
2026-02-10 16:39:45 +00:00
LeoVasanko
38c9ffe00b
Add --version, rename --dry-run to just --dry.
2026-02-10 16:29:30 +00:00
LeoVasanko
b87984af9a
Consistent form of CLI arguments.
2026-02-10 16:16:32 +00:00
LeoVasanko
d2ee7395c5
health?from=frontend for logs
2026-02-10 16:01:06 +00:00
LeoVasanko
b94608ffe3
Run ruff within local venv (otherwise required system path which did not include the venv with uv tool install).
2026-02-09 16:03:30 +00:00
LeoVasanko
ca85c2fcfb
Ruff
2026-02-06 22:37:03 +00:00
LeoVasanko
440808361a
Patch existing projects better.
2026-02-06 20:09:17 +00:00
LeoVasanko
5f0e74713f
Improved dry mode message.
2026-02-06 19:17:06 +00:00
LeoVasanko
2d117a9d5e
Improved messages.
2026-02-06 19:07:50 +00:00
LeoVasanko
4bf102579a
Added automatic handling of FastAPI debug mode. Use templating more completely to enable project name as env prefix etc.
2026-02-06 19:05:36 +00:00
LeoVasanko
093b83737e
Improved status messages, added a note of not installing main CLI entry point.
2026-02-02 20:35:30 +00:00
LeoVasanko
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.
2026-02-02 19:56:31 +00:00
LeoVasanko
c23401de88
Avoid external venv or of fastapi-vue-setup itself leaking into target project. Cleaner and faster uv processing.
2026-02-02 13:46:34 +00:00
LeoVasanko
c271f66615
Work around some Microsoft idiocy to attain Windows compatibility.
2026-02-02 13:28:36 +00:00
LeoVasanko
458d798022
Refactored scripts to remove any extra code from build-frontend.py and devserver.py (for better user editability). Individual helper functions can still be imported from scripts/fastapi-vue/ for any customization needs. Removed devmode support from CLI entry point simplifying it. Instead running via FastAPI CLI in dev mode (but it is still easy to modify to use a custom CLI entry).
2026-01-30 18:15:52 +00:00
LeoVasanko
f5fcd626e8
Update templates for fastapi_vue 0.5.0 catch-all toggle.
2026-01-25 01:07:56 +00:00
LeoVasanko
1d9ddf7dc5
Update target project python version requirement if needed.
2026-01-24 21:31:07 +00:00
LeoVasanko
b189ae66e7
Smarter .gitignore patching.
2026-01-24 21:16:05 +00:00
LeoVasanko
4156eb2db3
Better handling of upgrades, an option to avoid overwriting main and devserver scripts, writing .new.py instead. Error out on unix socket in devserver.
2026-01-21 21:13:23 +00:00
LeoVasanko
3f6559b2db
Simplify devserver script and remove its duplicated parse_endpoint function.
2026-01-18 01:15:34 +00:00
LeoVasanko
71d4e053a7
Strictly correct indent and formatting on Vue demo patches.
2026-01-17 23:21:01 +00:00
LeoVasanko
2dec331afb
Setup script cleanup. Use discovered app module and var names when creating __main__.py from template. README updates.
2026-01-17 23:04:07 +00:00
LeoVasanko
a2983a62a0
Simplified templating, backend port config on devserver.py, simplified Vue app patches.
2026-01-17 19:51:47 +00:00
LeoVasanko
a6ef9b7c8f
Better handling of dependencies. Display FastAPI status in Vue demo apps.
2026-01-17 03:28:41 +00:00
LeoVasanko
44e06df66c
Initial commit
2026-01-17 01:53:02 +00:00