From 16f575a9b63e65029ccff07f73399b5a1970e96d Mon Sep 17 00:00:00 2001 From: amrbashir Date: Tue, 26 Mar 2024 04:48:37 +0200 Subject: [PATCH] fix: fix .gitignore files formatting closes #289 --- .changes/gitingore-invalid-formatting.md | 5 +++++ templates/apps/bevy-demo/.gitignore.hbs | 11 ++++++++++- templates/apps/egui/.gitignore.hbs | 4 ++-- templates/apps/wgpu/.gitignore.hbs | 11 ++++++++++- templates/apps/winit/.gitignore.hbs | 11 ++++++++++- templates/apps/wry/.gitignore.hbs | 11 ++++++++++- 6 files changed, 47 insertions(+), 6 deletions(-) create mode 100644 .changes/gitingore-invalid-formatting.md diff --git a/.changes/gitingore-invalid-formatting.md b/.changes/gitingore-invalid-formatting.md new file mode 100644 index 00000000..c2ff1d72 --- /dev/null +++ b/.changes/gitingore-invalid-formatting.md @@ -0,0 +1,5 @@ +--- +"cargo-mobile2": "patch" +--- + +Fix `.gitignore` generated with wrong formatting. diff --git a/templates/apps/bevy-demo/.gitignore.hbs b/templates/apps/bevy-demo/.gitignore.hbs index 8d1bbe02..461a5a91 100644 --- a/templates/apps/bevy-demo/.gitignore.hbs +++ b/templates/apps/bevy-demo/.gitignore.hbs @@ -1 +1,10 @@ -# Rust target/ **/*.rs.bk # cargo-mobile2 .cargo/ /gen # macOS .DS_Store \ No newline at end of file +# Rust +target/ +**/*.rs.bk + +# cargo-mobile2 +.cargo/ +/gen + +# macOS +.DS_Store \ No newline at end of file diff --git a/templates/apps/egui/.gitignore.hbs b/templates/apps/egui/.gitignore.hbs index c3cb0ce4..461a5a91 100644 --- a/templates/apps/egui/.gitignore.hbs +++ b/templates/apps/egui/.gitignore.hbs @@ -2,9 +2,9 @@ target/ **/*.rs.bk -# cargo-mobile +# cargo-mobile2 .cargo/ /gen # macOS -.DS_Store +.DS_Store \ No newline at end of file diff --git a/templates/apps/wgpu/.gitignore.hbs b/templates/apps/wgpu/.gitignore.hbs index 8d1bbe02..461a5a91 100644 --- a/templates/apps/wgpu/.gitignore.hbs +++ b/templates/apps/wgpu/.gitignore.hbs @@ -1 +1,10 @@ -# Rust target/ **/*.rs.bk # cargo-mobile2 .cargo/ /gen # macOS .DS_Store \ No newline at end of file +# Rust +target/ +**/*.rs.bk + +# cargo-mobile2 +.cargo/ +/gen + +# macOS +.DS_Store \ No newline at end of file diff --git a/templates/apps/winit/.gitignore.hbs b/templates/apps/winit/.gitignore.hbs index 8d1bbe02..461a5a91 100644 --- a/templates/apps/winit/.gitignore.hbs +++ b/templates/apps/winit/.gitignore.hbs @@ -1 +1,10 @@ -# Rust target/ **/*.rs.bk # cargo-mobile2 .cargo/ /gen # macOS .DS_Store \ No newline at end of file +# Rust +target/ +**/*.rs.bk + +# cargo-mobile2 +.cargo/ +/gen + +# macOS +.DS_Store \ No newline at end of file diff --git a/templates/apps/wry/.gitignore.hbs b/templates/apps/wry/.gitignore.hbs index 8d1bbe02..461a5a91 100644 --- a/templates/apps/wry/.gitignore.hbs +++ b/templates/apps/wry/.gitignore.hbs @@ -1 +1,10 @@ -# Rust target/ **/*.rs.bk # cargo-mobile2 .cargo/ /gen # macOS .DS_Store \ No newline at end of file +# Rust +target/ +**/*.rs.bk + +# cargo-mobile2 +.cargo/ +/gen + +# macOS +.DS_Store \ No newline at end of file