Browse Source

Replace negative .gitignores with build script

Vite deletes the `dist` directory on re-builds. That will also delete
the gitignore which makes the generated files show up in Git.
We need those directories to exist otherwise `rust-embed` fails.

Use a build-script to create them when we compile the daemons.
fix-bad-api-calls
Thomas Eizinger 3 years ago
parent
commit
e7774dc29f
No known key found for this signature in database GPG Key ID: 651AC83A6C6C8B96
  1. 6
      daemon/build.rs
  2. 1
      frontend/.gitignore
  3. 4
      frontend/dist/maker/.gitignore
  4. 4
      frontend/dist/taker/.gitignore

6
daemon/build.rs

@ -0,0 +1,6 @@
fn main() -> std::io::Result<()> {
std::fs::create_dir_all("../frontend/dist/maker")?;
std::fs::create_dir_all("../frontend/dist/taker")?;
Ok(())
}

1
frontend/.gitignore

@ -2,3 +2,4 @@ node_modules
.DS_Store
dist-ssr
*.local
dist/

4
frontend/dist/maker/.gitignore

@ -1,4 +0,0 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

4
frontend/dist/taker/.gitignore

@ -1,4 +0,0 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
Loading…
Cancel
Save