Commit graph

211 commits

Author SHA1 Message Date
Evan Almloff
7f32809a96 use out_dir in a few more places 2024-02-06 10:27:26 -06:00
Andrew Voynov
ea9622a75c
fix(serve): fixed long rebuilds with dx serve 2024-02-06 00:27:45 +03:00
Evan Almloff
417cea7569
Merge pull request #1898 from Andrew15-5/fix-fullstack-cli-build
Now fullstack client uses correct config via `dx build`
2024-02-05 09:28:45 -06:00
Andrew Voynov
009238b068
feat(cli): added short release build option
Same as `cargo build` has `-r` now `dx build` and `dx bundle` also have
it. Since user probably wants to use these commands for production-ready
artifacts, the `--release` option is probably used often, same as with
`cargo build`. This allow users to use the same `build -r` "pattern".
2024-02-04 23:36:43 +03:00
Andrew Voynov
62b0f876f2
fix(build): now fullstack client uses correct config 2024-02-04 18:56:59 +03:00
ealmloff
d5c17af13c
Merge pull request #1882 from Andrew15-5/refactor-crateconfig-struct
Converted `out_dir` and `asset_dir` fields to methods in `CrateConfig` (cli-config refactor)
2024-01-30 16:24:14 -06: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
Andrew Voynov
c22014571e
refactor(cli): added multiple nested errors support
Before the top-level error message would print the dependent error
message. Now multiple nested errors can be shown (with anyhow context).
2024-01-30 18:09:21 +03:00
YuKun Liu
37e5f53f9e
Merge branch 'master' into master 2024-01-28 11:57:38 -08:00
YuKun Liu
492f49700a fix: cargo fmt 2024-01-28 11:52:42 -08:00
YuKun Liu
a0508861bc fix: upgrade crates & fixed repeat build error 2024-01-28 11:51:02 -08:00
ealmloff
df74e4c2fc
Merge pull request #1874 from marc2332/feat/reduce-cli-deps
feat: Reduce cli deps
2024-01-27 20:22:22 -06:00
ealmloff
d83a6d683f
use the workspace version of futures utils 2024-01-27 20:07:16 -06:00
marc2332
63b82b279b
ok 2024-01-27 22:29:28 +01:00
marc2332
fad0607667
feat: Reduce CLI deps 2024-01-27 22:27:23 +01:00
Andrew Voynov
f7041b118d
chore(deps): bump cargo-generate from 0.18 to 0.19
When building the `dx` CLI there is 1 less dependency (from 710 to 709).
2024-01-27 21:52:52 +03:00
Ege Gungordu
91e378fc5e mark hot-reload flag incompatible with release 2024-01-20 20:49:45 +03:00
Granville Schmidt
b372701d30
fix wording in CLI building waiting message 2024-01-17 18:13:58 -07:00
hem1t
c6e1b0f728
init subcommand (#1840)
* `init` subcommand

* clippy
2024-01-16 10:25:07 -06:00
hem1t
1db8bd7edd
Minor fixes in cli (#1837)
* not using bin, until needed

also removes an unnecessary warning!

* removed redundant line

maybe, it was readability?

* using same `if let` pattern as below

* to `get_bin(args.bin)?` with `Ok(())` at last

* unreachable!
2024-01-16 07:21:01 -06:00
Hampus Lidin
011116b83d
Fix panic when using dev profile (#1824) 2024-01-13 13:07:38 -06:00
Jonathan Kelley
f7bf156422
Merge pull request #1810 from DioxusLabs/jk/disambiguate-exprs-in-rsx
Disambiguate if expressions in rsx by requiring curlies, allow shorthand component/element initialization
2024-01-11 12:25:59 -08:00
Jonathan Kelley
3ef15577eb
Merge pull request #1807 from ealmloff/assets-optional
Only support manganis in the CLI
2024-01-11 12:18:24 -08:00
hem1t
8be9a7192b
using cargo.toml version (#1813)
- Replaced `CFG_RELEASE` with `CARGO_PKG_VERSION`
- No rerun on `CFG_RELEASE`
2024-01-11 13:50:23 -06:00
Jonathan Kelley
c5dfbd7913
fix test 2024-01-10 22:52:41 -08:00
Evan Almloff
e004c1722f set the required environment variable for manganis support 2024-01-10 11:19:51 -06:00
Evan Almloff
663296ae45 make collect-assets not optional in dioxus fullstack 2024-01-09 13:58:28 -06:00
TKirishima
48e413a4f3
fix: no project-name in argument of dx create (#1803) 2024-01-09 13:22:38 -06:00
Jonathan Kelley
2876a7deb2
Merge branch 'master' into feat/inline-attributes-fmt 2024-01-08 20:00:14 -08:00
Jonathan Kelley
28a9dc6805
Pin assets sha to keep CI in check 2024-01-08 14:54:02 -08:00
Evan Almloff
2cc6f2f51f fix merge and reorganize the CLI a bit 2024-01-08 13:39:12 -06:00
Evan Almloff
23509ada9f Merge branch 'master' into cli-config-library 2024-01-08 13:24:16 -06:00
Jonathan Kelley
fb40e72520
Merge pull request #1603 from divinerapier/master
Bump tauri bundler for using proxy to fetch resources
2024-01-08 10:38:05 -08:00
Jonathan Kelley
785b61a05e
Merge branch 'master' into intigrate-collect-assets 2024-01-05 12:13:31 -08:00
Evan Almloff
4f654d61b7 fix cargo check 2024-01-04 19:05:36 -06:00
Evan Almloff
b1de7d850c Merge branch 'master' into intigrate-collect-assets 2024-01-04 18:44:29 -06:00
Teague Lasser
334e7e6f22
Updated packages and comments referencing old CLI location (#1786) 2024-01-04 18:41:05 -06:00
ealmloff
f913b2ce53
don't cache assets in the CLI (#1742) 2024-01-04 09:06:57 -06:00
Bennett-Petzold
80a8e1f512
Add Cargo Arguments and Cross-Architecture Support (#1777)
* Add passthrough to cargo build

* Add platform_triple flag

* Add handling to bundle and serve commands

* Show full stacked error from Tauri in bundling

Previously only the top-level error was shown, giving only vague data
for debugging the build process

* Adjust bundle platform triple when cross compiling

* Rename --platform-triple to --target

* restore some deleted docs on CLI commands

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-01-02 15:19:29 -06:00
Evan Almloff
15dff7ad55 delete a leftover dioxusin file on all unix operating systems, not just mac 2023-12-30 11:58:09 -06:00
Evan Almloff
ab79c00cd8 kill the fullstack server before starting another one 2023-12-29 16:07:44 -06:00
Evan Almloff
49be972507 make dx clean clean the new .dioxus directory 2023-12-29 15:20:30 -06:00
Evan Almloff
1683ec8a72 introduce RAIIChild to drop the child process for desktop even when the exit is not planned 2023-12-29 14:36:18 -06:00
Evan Almloff
d88a662877 Rename --debug to --force-debug and improve docs 2023-12-29 11:11:39 -06:00
Evan Almloff
1acfd46b0b fix formatting 2023-12-29 10:08:10 -06:00
Evan Almloff
f7881aa1f0 fix some merge conflicts 2023-12-29 09:46:58 -06:00
Evan Almloff
601c63b67f manually apply debug assertions flag for fullstack debug mode 2023-12-22 09:25:35 -06:00
Evan Almloff
0914298bea Merge branch 'intigrate-collect-assets' of https://github.com/Demonthos/dioxus into intigrate-collect-assets 2023-12-21 18:05:02 -06:00
Evan Almloff
8b125231f0 make backend and frontend builds happen in parallel 2023-12-21 18:04:35 -06:00
ealmloff
2853b16cd6
Merge branch 'DioxusLabs:master' into intigrate-collect-assets 2023-12-21 14:00:35 -06:00