Skip to content

Commit

Permalink
Compile tailwind automatically as part of just watch (or `nix build…
Browse files Browse the repository at this point in the history
…/run`) (#92)

* Add build.rs to compile tailwind

* remove tailwind.css

* update dioxus-desktop-template flake-parts module
  • Loading branch information
srid authored Oct 21, 2023
1 parent 5ae1bf3 commit 9209fff
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 1,156 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
/result-lib
/dist
.direnv

/assets/tailwind.css
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ edition = "2021"
name = "nix-browser"
version = "0.1.0"
homepage = "https://github.com/juspay/nix-browser"
build = "build.rs"

[package.metadata.docs.rs]
all-features = true
Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,10 @@ This will automatically activate the nix develop shell. Open VSCode and install
## Running locally

We should run two watchers: one for generating Tailwind CSS (`just tw`) and another running the cargo package (`just watch`). In nix shell,
In nix shell,

```
# In one terminal,
just watch
# In another,
just tw
```

`just watch` runs `dx serve` (with hot reload disabled) that will restart the desktop app after compilation.
Expand Down
Loading

0 comments on commit 9209fff

Please sign in to comment.