Skip to content

Commit 4af9827

Browse files
chore: keep template_api in the monorepo, drop the subtree wiring
Remove the template_api subtree recipes and their publish hooks. template_api stays an in-repo, workspace-excluded example that still tracks the published api version through the bump recipes.
1 parent cfb9606 commit 4af9827

2 files changed

Lines changed: 2 additions & 29 deletions

File tree

justfile

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export RUST_BACKTRACE := "1"
44

55
template_repo := "https://github.com/matthewjberger/nightshade-template.git"
66
template_leptos_repo := "https://github.com/matthewjberger/nightshade-template-leptos.git"
7-
template_api_repo := "https://github.com/matthewjberger/nightshade-api-template.git"
87

98
# Displays the list of available commands
109
@just:
@@ -115,20 +114,6 @@ sync-template-leptos:
115114
pull-template-leptos:
116115
git subtree pull --prefix=template_leptos {{template_leptos_repo}} main --squash
117116

118-
# Pushes template_api changes to nightshade-api-template repo
119-
push-template-api:
120-
git subtree push --prefix=template_api {{template_api_repo}} main
121-
122-
# Force syncs template_api to nightshade-api-template repo (overwrites remote)
123-
sync-template-api:
124-
git subtree split --prefix=template_api -b template-api-branch
125-
git push --force {{template_api_repo}} template-api-branch:main
126-
git branch -D template-api-branch
127-
128-
# Pulls updates from nightshade-api-template repo
129-
pull-template-api:
130-
git subtree pull --prefix=template_api {{template_api_repo}} main --squash
131-
132117
# Publishes the nightshade and nightshade-api crates to crates.io
133118
publish-crate:
134119
cargo publish -p nightshade
@@ -483,7 +468,6 @@ publish-patch:
483468
just publish-editor
484469
just push-template
485470
just push-template-leptos
486-
just push-template-api
487471

488472
# Bumps patch version, pushes, publishes to crates.io, creates the GitHub release, and publishes the editor (Unix)
489473
[unix]
@@ -495,7 +479,6 @@ publish-patch:
495479
just publish-editor
496480
just push-template
497481
just push-template-leptos
498-
just push-template-api
499482

500483
# Bumps minor version, pushes, publishes to crates.io, creates the GitHub release, and publishes the editor (Windows)
501484
[windows]
@@ -507,7 +490,6 @@ publish-minor:
507490
just publish-editor
508491
just push-template
509492
just push-template-leptos
510-
just push-template-api
511493

512494
# Bumps minor version, pushes, publishes to crates.io, creates the GitHub release, and publishes the editor (Unix)
513495
[unix]
@@ -519,7 +501,6 @@ publish-minor:
519501
just publish-editor
520502
just push-template
521503
just push-template-leptos
522-
just push-template-api
523504

524505
# Bumps major version, pushes, publishes to crates.io, creates the GitHub release, and publishes the editor (Windows)
525506
[windows]
@@ -531,7 +512,6 @@ publish-major:
531512
just publish-editor
532513
just push-template
533514
just push-template-leptos
534-
just push-template-api
535515

536516
# Bumps major version, pushes, publishes to crates.io, creates the GitHub release, and publishes the editor (Unix)
537517
[unix]
@@ -543,7 +523,6 @@ publish-major:
543523
just publish-editor
544524
just push-template
545525
just push-template-leptos
546-
just push-template-api
547526

548527
# Builds the project for Steam Deck using cross
549528
build-steamdeck $project="sandbox":

template_api/README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
# nightshade-api-template
1+
# template_api
22

3-
A minimal starting point for a [nightshade-api](https://crates.io/crates/nightshade-api) program. Procedural, single file, runs natively and in the browser from the same code.
4-
5-
Click **Use this template** on GitHub, or clone it, to start a project.
3+
A minimal starting point for a [nightshade-api](https://crates.io/crates/nightshade-api) program. Procedural, single file, runs natively and in the browser from the same code. Copy this directory to start a project.
64

75
## Run
86

@@ -34,7 +32,3 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
3432
`index.html` and `Trunk.toml` are the web setup: trunk compiles the crate to wasm and serves the page, which carries the `id="canvas"` the engine renders into. Keep that id.
3533

3634
Grow it by adding more systems to `run!` and more `spawn_` and per-frame calls. The full surface is in the [nightshade-api docs](https://docs.rs/nightshade-api).
37-
38-
---
39-
40-
This repository is synced from the [nightshade](https://github.com/matthewjberger/nightshade) monorepo, so changes land there.

0 commit comments

Comments
 (0)