Skip to content

Commit b9b779b

Browse files
authored
feat: add rust (#64)
1 parent e8d45d7 commit b9b779b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+4926
-47
lines changed

.github/workflows/release-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Node.js
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: 20
24+
node-version: 22
2525

2626
- name: Install dependencies
2727
run: yarn install

.github/workflows/release-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Node.js
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: 20
24+
node-version: 22
2525

2626
- name: Install dependencies
2727
run: yarn install

.github/workflows/release-stg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Node.js
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: 20
24+
node-version: 22
2525

2626
- name: Install dependencies
2727
run: yarn install

.github/workflows/validate-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Node.js
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: 20
24+
node-version: 22
2525

2626
- name: Install dependencies
2727
run: yarn install

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ node_modules/
1414
.moon/cache
1515
.moon/docker
1616

17-
public/
17+
public/
18+
19+
target/
20+
21+
dist/

.moon/tasks/tag-trunk.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
$schema: "https://moonrepo.dev/schemas/tasks.json"
2+
3+
tasks:
4+
serve:
5+
command: trunk serve
6+
local: true
7+
mkDist:
8+
command: mkdir -p dist/apps
9+
build:
10+
command: trunk
11+
args:
12+
- --no-color
13+
- build
14+
env:
15+
# trunk doesn't support NO_COLOR=1
16+
NO_COLOR: "true"
17+
inputs:
18+
- src/**/*
19+
- "*.html"
20+
- "*.toml"
21+
deps:
22+
- mkDist

.moon/tasks/tag-typescript.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
$schema: "https://moonrepo.dev/schemas/tasks.json"
2+
3+
tasks:
4+
typecheck:
5+
command: tsc --noEmit
6+
inputs:
7+
- src/**/*

.moon/toolchain.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,19 @@ typescript:
1111

1212
# Configures Node.js within the toolchain.
1313
node:
14-
version: 22.12.0
1514
packageManager: yarn
16-
yarn:
17-
version: 4.5.3
15+
yarn: {}
1816
addEnginesConstraint: true
1917
dedupeOnLockfileChange: true
2018
inferTasksFromScripts: false
2119
syncProjectWorkspaceDependencies: true
20+
21+
rust:
22+
syncToolchainConfig: true
23+
bins:
24+
- trunk@0.21.5
25+
targets:
26+
- wasm32-unknown-unknown
27+
components:
28+
- rustfmt
29+
- clippy

.moon/workspace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $schema: "https://moonrepo.dev/schemas/workspace.json"
1313
# and cannot reference projects located outside the workspace boundary.
1414
projects:
1515
- "apps/*"
16-
- "packages/*"
16+
- "libs/*"
1717
- "etc/*"
1818

1919
# Configures the version control system to utilize within the workspace. A VCS

.prototools

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
dagger = "^0.15.1"
22
go = "^1.23.4"
3-
moon = "^1.30.5"
3+
moon = "^1.30.6"
4+
node = "^22.12.0"
5+
yarn = "^4.6.0"
6+
rust = "^1.81.0"
47

58
[plugins]
69
dagger = "source:https://raw.githubusercontent.com/Phault/proto-toml-plugins/main/dagger/plugin.toml"

0 commit comments

Comments
 (0)