Skip to content

Commit cb2120e

Browse files
authored
fix!: re-structure (#62)
1 parent 0bcf954 commit cb2120e

File tree

612 files changed

+4274
-11192
lines changed

Some content is hidden

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

612 files changed

+4274
-11192
lines changed

.github/workflows/release-dev.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ jobs:
1313
- uses: actions/checkout@v4
1414

1515
- name: Setup Dagger
16-
uses: dagger/dagger-for-github@v5
16+
uses: dagger/dagger-for-github@v7
1717
with:
1818
verb: functions
19+
workdir: ./etc/runner
1920

2021
- name: Setup Node.js
2122
uses: actions/setup-node@v4
@@ -26,8 +27,8 @@ jobs:
2627
run: yarn install
2728

2829
- name: Call script
29-
working-directory: ./scripts/pipelines
30+
working-directory: ./etc/scripts/pipelines
3031
run: ./release.ts
3132
env:
32-
MODE: "dev"
33+
MODE: dev
3334
GH_TOKEN: ${{ secrets.GH_TOKEN_DEV }}

.github/workflows/release-prod.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ jobs:
1313
- uses: actions/checkout@v4
1414

1515
- name: Setup Dagger
16-
uses: dagger/dagger-for-github@v5
16+
uses: dagger/dagger-for-github@v7
1717
with:
1818
verb: functions
19+
workdir: ./etc/runner
1920

2021
- name: Setup Node.js
2122
uses: actions/setup-node@v4
@@ -26,8 +27,8 @@ jobs:
2627
run: yarn install
2728

2829
- name: Call script
29-
working-directory: ./scripts/pipelines
30+
working-directory: ./etc/scripts/pipelines
3031
run: ./release.ts
3132
env:
32-
MODE: "prod"
33+
MODE: prod
3334
GH_TOKEN: ${{ secrets.GH_TOKEN_PROD }}

.github/workflows/release-stg.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ jobs:
1313
- uses: actions/checkout@v4
1414

1515
- name: Setup Dagger
16-
uses: dagger/dagger-for-github@v5
16+
uses: dagger/dagger-for-github@v7
1717
with:
1818
verb: functions
19+
workdir: ./etc/runner
1920

2021
- name: Setup Node.js
2122
uses: actions/setup-node@v4
@@ -26,8 +27,8 @@ jobs:
2627
run: yarn install
2728

2829
- name: Call script
29-
working-directory: ./scripts/pipelines
30+
working-directory: ./etc/scripts/pipelines
3031
run: ./release.ts
3132
env:
32-
MODE: "stg"
33+
MODE: stg
3334
GH_TOKEN: ${{ secrets.GH_TOKEN_STG }}

.github/workflows/validate-pr.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ jobs:
1313
- uses: actions/checkout@v4
1414

1515
- name: Setup Dagger
16-
uses: dagger/dagger-for-github@v5
16+
uses: dagger/dagger-for-github@v7
1717
with:
1818
verb: functions
19+
workdir: ./etc/runner
1920

2021
- name: Setup Node.js
2122
uses: actions/setup-node@v4
@@ -26,5 +27,5 @@ jobs:
2627
run: yarn install
2728

2829
- name: Call script
29-
working-directory: ./scripts/pipelines
30+
working-directory: ./etc/scripts/pipelines
3031
run: ./validate-pr.ts

.lintstagedrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"*.{ts,tsx}":
1+
"*.{js,jsx,ts,tsx,json,jsonc,yml,yaml}":
22
- eslint --fix
33
"*.{js,jsx,ts,tsx,md,mdx,json,jsonc,html,graphql,yml,yaml}":
44
- prettier --write

.moon/tasks.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.moon/toolchain.yml

Lines changed: 5 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -6,76 +6,16 @@ $schema: "https://moonrepo.dev/schemas/toolchain.json"
66

77
# Configures how moon integrates with TypeScript.
88
typescript:
9-
# When `syncProjectReferences` is enabled and a dependent project reference
10-
# *does not* have a `tsconfig.json`, automatically create one.
11-
createMissingConfig: false
12-
13-
# Append the sources of each project reference to the `include` field
14-
# of each applicable project's `tsconfig.json`.
15-
includeProjectReferenceSources: false
16-
17-
# Append shared types (from the TypeScript root) to the `include` field
18-
# of every project's `tsconfig.json`.
19-
includeSharedTypes: false
20-
21-
# Name of `tsconfig.json` file in each project root.
22-
# projectConfigFileName: 'tsconfig.json'
23-
24-
# Path to the TypeScript root, relative from the workspace root.
25-
# root: '.'
26-
27-
# Name of `tsconfig.json` file in the TypeScript root.
28-
# rootConfigFileName: 'tsconfig.json'
29-
30-
# Name of the config file in the workspace root that defines shared compiler
31-
# options for all project reference based config files.
32-
# rootOptionsConfigFileName: 'tsconfig.options.json'
33-
34-
# Update a project's `tsconfig.json` to route the `outDir` compiler option
35-
# to moon's `.moon/cache` directory.
36-
routeOutDirToCache: false
37-
38-
# Sync a project's dependencies as project references within the
39-
# project's `tsconfig.json` and the workspace root `tsconfig.json`.
40-
syncProjectReferences: false
41-
42-
# Sync a project's project references as import aliases to the `paths`
43-
# compiler option in each applicable project.
44-
syncProjectReferencesToPaths: false
9+
routeOutDirToCache: true
10+
syncProjectReferencesToPaths: true
4511

4612
# Configures Node.js within the toolchain.
4713
node:
48-
# The version to use. Must be a semantic version that includes major, minor, and patch.
49-
# We suggest using the latest active LTS version: https://nodejs.org/en/about/releases
50-
version: "22.2.0"
51-
52-
# The package manager to use when managing dependencies.
53-
# Accepts "npm" (default), "pnpm", "yarn", or "bun".
54-
packageManager: "yarn"
55-
56-
# The version of the package manager (above) to use.
14+
version: 22.12.0
15+
packageManager: yarn
5716
yarn:
58-
version: "4.2.2"
59-
60-
# Add `node.version` as a constraint in the root `package.json` `engines`.
17+
version: 4.5.3
6118
addEnginesConstraint: true
62-
63-
# Dedupe dependencies after the lockfile has changed.
6419
dedupeOnLockfileChange: true
65-
66-
# Version format to use when syncing dependencies within the project's `package.json`.
67-
# dependencyVersionFormat: 'workspace'
68-
69-
# Infer and automatically create moon tasks from `package.json` scripts, per project.
70-
# BEWARE: Tasks and scripts are not 1:1 in functionality, so please refer to the documentation.
7120
inferTasksFromScripts: false
72-
73-
# Support the "one version policy" by only declaring dependencies in the root `package.json`.
74-
# rootPackageOnly: true
75-
76-
# Sync a project's relationships as `dependencies` within the project's `package.json`.
7721
syncProjectWorkspaceDependencies: true
78-
79-
# Sync `node.version` to a 3rd-party version manager's config file.
80-
# Accepts "nodenv" (.node-version), "nvm" (.nvmrc), or none.
81-
# syncVersionManagerConfig: 'nvm'

.moon/workspace.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,17 @@ $schema: "https://moonrepo.dev/schemas/workspace.json"
1414
projects:
1515
- "apps/*"
1616
- "packages/*"
17-
- app
18-
- scripts
19-
- dagger
17+
- "etc/*"
2018

2119
# Configures the version control system to utilize within the workspace. A VCS
2220
# is required for determining touched (added, modified, etc) files, calculating file hashes,
2321
# computing affected files, and much more.
2422
vcs:
2523
# The client to use when managing the repository.
2624
# Accepts "git". Defaults to "git".
27-
manager: "git"
25+
manager: git
2826

2927
# The default branch (master/main/trunk) in the repository for comparing the
3028
# local branch against. For git, this is is typically "master" or "main",
3129
# and must include the remote prefix (before /).
32-
defaultBranch: "main"
30+
defaultBranch: main

.prototools

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
dagger = "^0.11.5"
2-
go = "~1.21.10"
3-
moon = "^1.25.1"
4-
node = "^22.2.0"
5-
yarn = "^1.22.22"
1+
dagger = "^0.15.1"
2+
go = "^1.23.4"
3+
moon = "^1.30.5"
64

75
[plugins]
86
dagger = "source:https://raw.githubusercontent.com/Phault/proto-toml-plugins/main/dagger/plugin.toml"
97
moon = "source:https://raw.githubusercontent.com/moonrepo/moon/master/proto-plugin.toml"
8+
9+
[settings]
10+
auto-install = true
11+
auto-clean = true
Binary file not shown.

0 commit comments

Comments
 (0)