Skip to content

Commit eb63a08

Browse files
committed
Ope
1 parent 543191e commit eb63a08

23 files changed

+19
-5690
lines changed

.windsurf/workflows/prepare-update.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
description: Prepare a MotelyJAML version update - bump version, clean, build all projects, AOT-publish WASM, prepare npm packages, and guide user through npm publish
3+
auto_execution_mode: 3
34
---
45

56
# Prepare Update
@@ -15,6 +16,7 @@ Bumps the MotelyVersion, cleans everything, builds all .NET projects, AOT-publis
1516
Edit `x:\JammySeedFinder\src\MotelyJAML\Directory.Packages.props` — set `<MotelyVersion>` to the new version.
1617

1718
Then update **all three** npm package.json files to match:
19+
1820
- `x:\JammySeedFinder\src\MotelyJAML\Motely.npm\package.json` → set `"version"` to the new version
1921
- `x:\JammySeedFinder\src\MotelyJAML\Motely.npm.singlethread\package.json` → set `"version"` to the new version
2022
- `x:\JammySeedFinder\src\MotelyJAML\Motely.node\package.json` → set `"version"` to the new version
@@ -26,6 +28,7 @@ Print the version you just set so the user can confirm.
2628
## Step 2: Nuke bin/ and obj/
2729

2830
// turbo
31+
2932
```powershell
3033
Get-ChildItem -Path x:\JammySeedFinder\src\MotelyJAML -Include bin,obj -Recurse -Directory | Remove-Item -Recurse -Force
3134
```
@@ -35,6 +38,7 @@ Get-ChildItem -Path x:\JammySeedFinder\src\MotelyJAML -Include bin,obj -Recurse
3538
## Step 3: dotnet clean
3639

3740
// turbo
41+
3842
```powershell
3943
dotnet clean x:\JammySeedFinder\src\MotelyJAML\Motely.sln -c Release
4044
```
@@ -44,6 +48,7 @@ dotnet clean x:\JammySeedFinder\src\MotelyJAML\Motely.sln -c Release
4448
## Step 4: dotnet restore
4549

4650
// turbo
51+
4752
```powershell
4853
dotnet restore x:\JammySeedFinder\src\MotelyJAML\Motely.sln
4954
```
@@ -53,6 +58,7 @@ dotnet restore x:\JammySeedFinder\src\MotelyJAML\Motely.sln
5358
## Step 5: Build all projects
5459

5560
// turbo
61+
5662
```powershell
5763
dotnet build x:\JammySeedFinder\src\MotelyJAML\Motely.sln -c Release
5864
```
@@ -66,6 +72,7 @@ If browser or cross-platform builds fail because of incompatible APIs, do not fo
6672
## Step 6: Clean _framework dirs before AOT publish
6773

6874
// turbo
75+
6976
```powershell
7077
Remove-Item -Recurse -Force x:\JammySeedFinder\src\MotelyJAML\Motely.npm\_framework -ErrorAction SilentlyContinue
7178
Remove-Item -Recurse -Force x:\JammySeedFinder\src\MotelyJAML\Motely.npm\_framework_st -ErrorAction SilentlyContinue
@@ -90,6 +97,7 @@ If this fails, capture the full SDK error and stop before changing other steps.
9097

9198
Verify the output exists:
9299
// turbo
100+
93101
```powershell
94102
@(Get-ChildItem x:\JammySeedFinder\src\MotelyJAML\Motely.npm\_framework\dotnet.native*.wasm -ErrorAction SilentlyContinue).Count -gt 0
95103
```
@@ -99,6 +107,7 @@ Verify the output exists:
99107
## Step 8: AOT Release Publish — Single-thread WASM (Node + browser fallback)
100108

101109
This publishes `Motely.SingleThread` using the same browser publish AOT path and then stages `_framework` into:
110+
102111
- `Motely.node/_framework/`
103112
- `Motely.npm/_framework_st/`
104113
- `Motely.npm.singlethread/_framework/`
@@ -114,6 +123,7 @@ If this fails, capture the full SDK error and stop before npm packaging.
114123

115124
Verify the outputs exist:
116125
// turbo
126+
117127
```powershell
118128
@(Get-ChildItem x:\JammySeedFinder\src\MotelyJAML\Motely.node\_framework\dotnet.native*.wasm -ErrorAction SilentlyContinue).Count -gt 0
119129
@(Get-ChildItem x:\JammySeedFinder\src\MotelyJAML\Motely.npm\_framework_st\dotnet.native*.wasm -ErrorAction SilentlyContinue).Count -gt 0
@@ -125,6 +135,7 @@ Verify the outputs exist:
125135
## Step 9: Prepare npm package — motely-wasm (browser)
126136

127137
// turbo
138+
128139
```powershell
129140
npm --prefix x:\JammySeedFinder\src\MotelyJAML\Motely.npm install
130141
npm --prefix x:\JammySeedFinder\src\MotelyJAML\Motely.npm run build
@@ -135,6 +146,7 @@ npm --prefix x:\JammySeedFinder\src\MotelyJAML\Motely.npm run build
135146
## Step 10: Prepare npm package — motely-wasm-singlethread (browser)
136147

137148
// turbo
149+
138150
```powershell
139151
npm --prefix x:\JammySeedFinder\src\MotelyJAML\Motely.npm.singlethread install
140152
npm --prefix x:\JammySeedFinder\src\MotelyJAML\Motely.npm.singlethread run build
@@ -145,6 +157,7 @@ npm --prefix x:\JammySeedFinder\src\MotelyJAML\Motely.npm.singlethread run build
145157
## Step 11: Prepare npm package — motely-node (backend)
146158

147159
// turbo
160+
148161
```powershell
149162
npm --prefix x:\JammySeedFinder\src\MotelyJAML\Motely.node install
150163
npm --prefix x:\JammySeedFinder\src\MotelyJAML\Motely.node run build
@@ -160,19 +173,19 @@ Tell the user:
160173
```
161174
All npm packages are ready to publish!
162175
163-
1. Publish motely-wasm (browser frontend):
176+
1. Log into npm once:
177+
npm login
178+
179+
2. Publish motely-wasm (browser frontend):
164180
cd x:\JammySeedFinder\src\MotelyJAML\Motely.npm
165-
npm login # if not already logged in
166181
npm publish
167182
168-
2. Publish motely-wasm-singlethread (browser fallback):
183+
3. Publish motely-wasm-singlethread (browser fallback):
169184
cd x:\JammySeedFinder\src\MotelyJAML\Motely.npm.singlethread
170-
npm login # if not already logged in
171185
npm publish
172186
173-
3. Publish motely-node (backend/Node.js):
187+
4. Publish motely-node (backend/Node.js):
174188
cd x:\JammySeedFinder\src\MotelyJAML\Motely.node
175-
npm login # if not already logged in
176189
npm publish
177190
```
178191

-331 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-5.77 KB
Binary file not shown.
Binary file not shown.
-28.8 KB
Binary file not shown.
-13.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)