Commit graph

31 commits

Author SHA1 Message Date
Evan Almloff
b3cd4fac10
set up example scaping for docs.rs (#2450) 2024-05-28 13:05:55 -07:00
Evan Almloff
245003a5d4
Create a Static Site Generation platform; Deduplicate hot reloading code (#2226)
* create static site generation helpers in the router crate

* work on integrating static site generation into fullstack

* move ssg into a separate crate

* integrate ssg with the launch builder

* simplify ssg example

* fix static_routes for child routes

* move CLI hot reloading websocket code into dioxus-hot-reload

* fix some unused imports

* use the same hot reloading websocket code for fullstack

* fix fullstack hot reloading

* move cli hot reloading logic into the hot reload crate

* ssg example working with dx serve

* add more examples

* fix clippy

* fix formatting

* fix hot reload doctest imports

* fix axum imports

* don't run server doc tests

* Fix hot reload websocket doc examples
2024-05-22 07:24:15 -05:00
Wojciech Niedźwiedź
1b82ad4ddd
cli: disable opening the tab by default, add some trace logging for config resolution (#2377) 2024-05-01 08:32:04 -05:00
Evan Almloff
a27d4e71ed
Only compress web assets in the CLI (#2329)
* only compress web assets in the CLI

* precompressed -> pre-compressed

* only enable pre-compression in release builds
2024-04-26 00:47:04 -04:00
Zan Pan
bd852c68fd
Use tracing::warn when the dioxus CLI is not used (#2250) 2024-04-05 12:36:05 -07:00
Miles Murgaw
3cbe6ff96e
Fix Outdated README.md (#2147)
* fix: outdated readme

* Fix missing readme

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-03-26 19:17:02 -07:00
Evan Almloff
dadbab5d72
make some enums non-exhaustive (#2140) 2024-03-26 19:14:48 -07:00
Evan Almloff
460a685fa3
Warn if cli-config is not available at compile time (#2135)
* warn if a package relies on the CLI config, but it is not built with the CLI

* fix default features

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-03-26 19:10:26 -07:00
Jonathan Kelley
bb8b4dc2fb
FIx:
- asset hotreloading for desktop,
- asset dir for dxserve on desktop,
- extend features with platform
2024-03-13 17:15:49 -07:00
Jonathan Kelley
1bdc9d132e
Load tracked assets 2024-03-13 14:35:28 -07:00
Jonathan Kelley
ad7a350d2e
fix hotreloading issues in the CLI 2024-03-12 13:39:42 -07:00
Evan Almloff
6b84f284c9 fix manganis assets overlapping between examples 2024-03-11 17:11:52 -05:00
Robin Tretter
8eda67ecb2
added hot-reload as config option with default to true (#2024) 2024-03-08 14:54:03 -06:00
rtretter
f62c81ea0d added automatic platform detection to cli if none is passed 2024-03-06 21:16:51 +01:00
Jonathan Kelley
be29c1fdaa
chore: move all packages onto workspace versions 2024-02-21 14:30:13 -08:00
Jonathan Kelley
214a907adc
Upgrade to axum 0.7, drop 3rd party adapters 2024-02-15 18:05:30 -08:00
Evan Almloff
1909b05412 Merge branch 'master' into pr/Andrew15-5/1903 2024-02-06 10:28:49 -06:00
Andrew Voynov
ea9622a75c
fix(serve): fixed long rebuilds with dx serve 2024-02-06 00:27:45 +03:00
Evan Almloff
356497df4e fix some clippy lints 2024-02-05 08:17:25 -06:00
Jonathan Kelley
eff1dd6c90
Merge branch 'master' into breaking 2024-01-30 16:20:19 -08:00
Andrew Voynov
48957b11d8
refactor(cli-config): modified CrateConfig struct
`out_dir` and `asset_dir` are now methods, because they derive from
`crate_dir` and `dioxus_config`.
2024-01-30 23:23:00 +03:00
Jonathan Kelley
d8af9b7ed1
Fix compile checks on numerous packages using --all --all-features 2024-01-18 16:27:43 -08:00
Evan Almloff
2cc6f2f51f fix merge and reorganize the CLI a bit 2024-01-08 13:39:12 -06:00
Evan Almloff
0269a59c95 add fullstack platform 2024-01-08 13:24:23 -06:00
Evan Almloff
4ff86d9763 make some extra dependencies only enabled for the CLI 2023-11-21 13:11:49 -06:00
Evan Almloff
d51e9b60df make WebDevResourceConfig optional 2023-11-19 11:16:15 -06:00
Evan Almloff
e11f3fdc48 fix clippy 2023-11-15 09:30:15 -06:00
Evan Almloff
1ed66a54cc fix cli configuration environment variable 2023-11-14 15:50:04 -06:00
Evan Almloff
06be18a591 export lazy current config 2023-11-14 15:34:06 -06:00
Evan Almloff
1b7017f67b fix formatting 2023-11-09 08:36:14 -06:00
Evan Almloff
8a2d170d96 pull out the CLI config data into a separate library 2023-11-08 12:48:25 -06:00