Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .moon/tasks/tag-trunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ tasks:
serve:
command: trunk serve
local: true
mkDist:
command: mkdir -p dist/apps
mkTarget:
command: mkdir -p target/apps
build:
command: trunk
args:
Expand All @@ -19,4 +19,4 @@ tasks:
- "*.html"
- "*.toml"
deps:
- mkDist
- mkTarget
2 changes: 1 addition & 1 deletion .moon/toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ node:
rust:
syncToolchainConfig: true
bins:
- [email protected].5
- [email protected].14
targets:
- wasm32-unknown-unknown
components:
Expand Down
2 changes: 1 addition & 1 deletion .prototools
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ go = "^1"
moon = "^1"
node = "^22"
yarn = "^4"
rust = "^1"
rust = "^1.88"

[plugins]
dagger = "source:https://raw.githubusercontent.com/Phault/proto-toml-plugins/main/dagger/plugin.toml"
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[workspace]
resolver = "3"
members = ["apps/counter"]
[workspace.package]
edition = "2024"
6 changes: 6 additions & 0 deletions apps/app/src/hooks/use-apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ export const useProjects = () =>
title: "Wasm Counter",
url: "/apps/counter",
},
{
description:
"An MCP Server that enables AI assistants to interact with your local browsers.",
title: "MCP Browser Kit",
url: "https://github.com/ndthanhdev/mcp-browser-kit",
},
] satisfies Project[],
[],
);
2 changes: 1 addition & 1 deletion apps/counter/Trunk.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[build]
filehash = false
public_url = "/apps/counter/"
dist = "dist/apps/counter/"
dist = "target/apps/counter/"
2 changes: 1 addition & 1 deletion apps/counter/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl Counter {
fn view(&self) -> Column<Message> {
column![row![
button("Decrement").on_press(Message::Decrement),
text(self.value).size(50),
text(self.value).size(50).align_x(iced::alignment::Horizontal::Center).width(100),
button("Increment").on_press(Message::Increment)
]
.spacing(20)
Expand Down
2 changes: 1 addition & 1 deletion etc/scripts/actions/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ await $`moon run app:build`;

await $`moon run counter:build`;

await fs.copy(workDirs.apps.counter.dist.path, workDirs.apps.app.public.path);
await fs.copy(workDirs.apps.counter.target.path, workDirs.apps.app.public.path);
8 changes: 4 additions & 4 deletions etc/scripts/utils/work-dirs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ export const workDirs = {
},
},
counter: {
dist: {
path: counter,
target: {
apps: {
path: path.resolve(counter, "dist/apps"),
path: path.resolve(counter, "target/apps"),
},
path: path.resolve(counter, "dist"),
path: path.resolve(counter, "target"),
},
path: counter,
},
path: apps,
},
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
"zustand": "^4.5.6",
"zx": "^8.3.0"
},
"packageManager": "[email protected]",
"engines": {
"node": "22.12.0"
}
Expand Down