Skip to content

Commit c6d7cb2

Browse files
authored
chore: update moonrepo (#84)
Co-authored-by: ndthanhdev <>
1 parent 0bb487a commit c6d7cb2

198 files changed

Lines changed: 1972 additions & 2141 deletions

File tree

Some content is hidden

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

.github/workflows/release-dev.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,21 @@ jobs:
1010
name: Run Workflow
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
14+
with:
15+
fetch-depth: 0
1416

1517
- name: Setup Dagger
16-
uses: dagger/dagger-for-github@8.0.0
18+
uses: dagger/dagger-for-github@v8.2.0
1719
with:
18-
version: 0.18.9
20+
version: v0.20.3
1921
verb: functions
2022
workdir: ./etc/workflow-runtime
2123

2224
- name: Setup Node.js
2325
uses: actions/setup-node@v4
2426
with:
25-
node-version: 22
27+
node-version: 24
2628

2729
- name: Install dependencies
2830
run: yarn install

.github/workflows/release-prod.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,21 @@ jobs:
1010
name: Run Workflow
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
14+
with:
15+
fetch-depth: 0
1416

1517
- name: Setup Dagger
16-
uses: dagger/dagger-for-github@8.0.0
18+
uses: dagger/dagger-for-github@v8.2.0
1719
with:
18-
version: 0.18.9
20+
version: v0.20.3
1921
verb: functions
2022
workdir: ./etc/workflow-runtime
2123

2224
- name: Setup Node.js
2325
uses: actions/setup-node@v4
2426
with:
25-
node-version: 22
27+
node-version: 24
2628

2729
- name: Install dependencies
2830
run: yarn install

.github/workflows/release-stg.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,21 @@ jobs:
1010
name: Run Workflow
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
14+
with:
15+
fetch-depth: 0
1416

1517
- name: Setup Dagger
16-
uses: dagger/dagger-for-github@8.0.0
18+
uses: dagger/dagger-for-github@v8.2.0
1719
with:
18-
version: 0.18.9
20+
version: v0.20.3
1921
verb: functions
2022
workdir: ./etc/workflow-runtime
2123

2224
- name: Setup Node.js
2325
uses: actions/setup-node@v4
2426
with:
25-
node-version: 22
27+
node-version: 24
2628

2729
- name: Install dependencies
2830
run: yarn install

.github/workflows/validate-pr.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,21 @@ jobs:
1010
name: Run Workflow
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
14+
with:
15+
fetch-depth: 0
1416

1517
- name: Setup Dagger
16-
uses: dagger/dagger-for-github@8.0.0
18+
uses: dagger/dagger-for-github@v8.2.0
1719
with:
18-
version: 0.18.9
20+
version: v0.20.3
1921
verb: functions
2022
workdir: ./etc/workflow-runtime
2123

2224
- name: Setup Node.js
2325
uses: actions/setup-node@v4
2426
with:
25-
node-version: 22
27+
node-version: 24
2628

2729
- name: Install dependencies
2830
run: yarn install

.moon/tasks/tag-trunk.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
1-
$schema: "https://moonrepo.dev/schemas/tasks.json"
2-
1+
$schema: https://moonrepo.dev/schemas/tasks.json
32
tasks:
43
serve:
54
command: trunk serve
6-
local: true
5+
preset: server
76
mkTarget:
87
command: mkdir -p target/apps
98
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"
9+
script: env -u NO_COLOR trunk build
10+
toolchain: system
1711
inputs:
1812
- src/**/*
1913
- "*.html"
2014
- "*.toml"
2115
deps:
2216
- mkTarget
17+
inheritedBy:
18+
tag: trunk

.moon/tasks/tag-typescript.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
$schema: "https://moonrepo.dev/schemas/tasks.json"
2-
1+
$schema: https://moonrepo.dev/schemas/tasks.json
32
tasks:
43
typecheck:
54
command: tsc --noEmit
65
inputs:
76
- src/**/*
7+
inheritedBy:
8+
tag: typescript

.moon/toolchain.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.moon/toolchains.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/toolchain.json
2+
node:
3+
version: ^24
4+
yarn:
5+
version: 4.10.3
6+
typescript:
7+
routeOutDirToCache: true
8+
syncProjectReferencesToPaths: true
9+
javascript:
10+
packageManager: yarn
11+
dedupeOnLockfileChange: true
12+
inferTasksFromScripts: false
13+
syncProjectWorkspaceDependencies: true
14+
rust:
15+
syncToolchainConfig: true
16+
bins:
17+
- trunk@0.21.14
18+
targets:
19+
- wasm32-unknown-unknown
20+
components:
21+
- rustfmt
22+
- clippy

.moon/workspace.yml

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,11 @@
1-
# yaml-language-server: $schema: 'https://moonrepo.dev/docs/config/workspace.json'
2-
$schema: "https://moonrepo.dev/schemas/workspace.json"
3-
4-
# Require a specific version of moon while running commands, otherwise fail.
5-
# versionConstraint: '>=1.0.0'
6-
7-
# Extend and inherit an external configuration file. Must be a valid HTTPS URL or file system path.
8-
# extends: './shared/workspace.yml'
9-
10-
# REQUIRED: A map of all projects found within the workspace, or a list or file system globs.
11-
# When using a map, each entry requires a unique project ID as the map key, and a file system
12-
# path to the project folder as the map value. File paths are relative from the workspace root,
13-
# and cannot reference projects located outside the workspace boundary.
1+
$schema: https://moonrepo.dev/schemas/workspace.json
142
projects:
15-
- "apps/*"
16-
- "libs/*"
17-
- "etc/*"
18-
19-
# Configures the version control system to utilize within the workspace. A VCS
20-
# is required for determining touched (added, modified, etc) files, calculating file hashes,
21-
# computing affected files, and much more.
3+
- apps/*
4+
- libs/*
5+
- etc/*
226
vcs:
23-
# The client to use when managing the repository.
24-
# Accepts "git". Defaults to "git".
25-
manager: git
26-
27-
# The default branch (master/main/trunk) in the repository for comparing the
28-
# local branch against. For git, this is is typically "master" or "main",
29-
# and must include the remote prefix (before /).
307
defaultBranch: main
31-
8+
client: git
329
generator:
3310
templates:
3411
- ./etc/templates

.prettierrc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@ trailingComma: all
33
useTabs: true
44
semi: true
55
endOfLine: lf
6+
overrides:
7+
- files:
8+
- tsconfig.json
9+
- "apps/*/tsconfig.json"
10+
- "etc/*/tsconfig.json"
11+
- "libs/*/tsconfig.json"
12+
options:
13+
parser: json-stringify

0 commit comments

Comments
 (0)