optikit 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/USAGE.md +6 -6
- package/VERSION_MANAGEMENT.md +34 -34
- package/dist/cli.js +6 -6
- package/package.json +1 -1
- package/src/cli.ts +11 -11
package/README.md
CHANGED
package/USAGE.md
CHANGED
|
@@ -102,19 +102,19 @@ Version: 1.2.3+45
|
|
|
102
102
|
Increment patch version (bug fixes):
|
|
103
103
|
|
|
104
104
|
```bash
|
|
105
|
-
optikit
|
|
105
|
+
optikit bump patch
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
Increment minor version (new features):
|
|
109
109
|
|
|
110
110
|
```bash
|
|
111
|
-
optikit
|
|
111
|
+
optikit bump minor
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
Increment major version (breaking changes):
|
|
115
115
|
|
|
116
116
|
```bash
|
|
117
|
-
optikit
|
|
117
|
+
optikit bump major
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
**What it does:**
|
|
@@ -129,7 +129,7 @@ optikit version bump major
|
|
|
129
129
|
|
|
130
130
|
```text
|
|
131
131
|
Current: 1.0.2+45
|
|
132
|
-
After `optikit
|
|
132
|
+
After `optikit bump patch`:
|
|
133
133
|
New: 1.0.3+46 (iOS build: 1)
|
|
134
134
|
```
|
|
135
135
|
|
|
@@ -140,7 +140,7 @@ New: 1.0.3+46 (iOS build: 1)
|
|
|
140
140
|
Increment only iOS build number without changing version:
|
|
141
141
|
|
|
142
142
|
```bash
|
|
143
|
-
optikit
|
|
143
|
+
optikit bump-ios
|
|
144
144
|
```
|
|
145
145
|
|
|
146
146
|
**What it does:**
|
|
@@ -169,7 +169,7 @@ After:
|
|
|
169
169
|
Increment only Android build number:
|
|
170
170
|
|
|
171
171
|
```bash
|
|
172
|
-
optikit
|
|
172
|
+
optikit bump-android
|
|
173
173
|
```
|
|
174
174
|
|
|
175
175
|
**What it does:**
|
package/VERSION_MANAGEMENT.md
CHANGED
|
@@ -46,7 +46,7 @@ Version: 1.2.3+45
|
|
|
46
46
|
|
|
47
47
|
#### Bump Patch (1.2.3 → 1.2.4)
|
|
48
48
|
```bash
|
|
49
|
-
optikit
|
|
49
|
+
optikit bump patch
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
**What it does:**
|
|
@@ -61,7 +61,7 @@ optikit version bump patch
|
|
|
61
61
|
|
|
62
62
|
#### Bump Minor (1.2.4 → 1.3.0)
|
|
63
63
|
```bash
|
|
64
|
-
optikit
|
|
64
|
+
optikit bump minor
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
**What it does:**
|
|
@@ -76,7 +76,7 @@ optikit version bump minor
|
|
|
76
76
|
|
|
77
77
|
#### Bump Major (1.3.0 → 2.0.0)
|
|
78
78
|
```bash
|
|
79
|
-
optikit
|
|
79
|
+
optikit bump major
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
**What it does:**
|
|
@@ -95,7 +95,7 @@ optikit version bump major
|
|
|
95
95
|
### 3. Bump iOS Build Only (TestFlight)
|
|
96
96
|
|
|
97
97
|
```bash
|
|
98
|
-
optikit
|
|
98
|
+
optikit bump-ios
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
**What it does:**
|
|
@@ -126,7 +126,7 @@ After:
|
|
|
126
126
|
### 4. Bump Android Build Only
|
|
127
127
|
|
|
128
128
|
```bash
|
|
129
|
-
optikit
|
|
129
|
+
optikit bump-android
|
|
130
130
|
```
|
|
131
131
|
|
|
132
132
|
**What it does:**
|
|
@@ -160,7 +160,7 @@ After:
|
|
|
160
160
|
|
|
161
161
|
```bash
|
|
162
162
|
# Current: 1.0.2+5
|
|
163
|
-
optikit
|
|
163
|
+
optikit bump patch
|
|
164
164
|
|
|
165
165
|
# Result:
|
|
166
166
|
# Version: 1.0.3+6
|
|
@@ -183,15 +183,15 @@ optikit version bump patch
|
|
|
183
183
|
# Current: 1.0.3+6 (iOS build: 1)
|
|
184
184
|
|
|
185
185
|
# First TestFlight upload
|
|
186
|
-
optikit
|
|
186
|
+
optikit bump-ios
|
|
187
187
|
# Version: 1.0.3+6, iOS: 2
|
|
188
188
|
|
|
189
189
|
# Found a bug, fix it, upload again
|
|
190
|
-
optikit
|
|
190
|
+
optikit bump-ios
|
|
191
191
|
# Version: 1.0.3+6, iOS: 3
|
|
192
192
|
|
|
193
193
|
# Another fix
|
|
194
|
-
optikit
|
|
194
|
+
optikit bump-ios
|
|
195
195
|
# Version: 1.0.3+6, iOS: 4
|
|
196
196
|
```
|
|
197
197
|
|
|
@@ -210,7 +210,7 @@ optikit version bump-ios
|
|
|
210
210
|
# Current: 1.0.3+6 (iOS: 4)
|
|
211
211
|
|
|
212
212
|
# Increment Android build only
|
|
213
|
-
optikit
|
|
213
|
+
optikit bump-android
|
|
214
214
|
# Version: 1.0.3+7, iOS: 4 (unchanged)
|
|
215
215
|
```
|
|
216
216
|
|
|
@@ -222,23 +222,23 @@ optikit version bump-android
|
|
|
222
222
|
# 1. Start: 1.0.2+10 (iOS: 5)
|
|
223
223
|
|
|
224
224
|
# 2. New feature development
|
|
225
|
-
optikit
|
|
225
|
+
optikit bump minor
|
|
226
226
|
# → 1.1.0+11 (iOS: 1, Android: 11)
|
|
227
227
|
|
|
228
228
|
# 3. TestFlight testing (3 iterations)
|
|
229
|
-
optikit
|
|
230
|
-
optikit
|
|
231
|
-
optikit
|
|
229
|
+
optikit bump-ios # iOS: 2
|
|
230
|
+
optikit bump-ios # iOS: 3
|
|
231
|
+
optikit bump-ios # iOS: 4
|
|
232
232
|
|
|
233
233
|
# 4. Android beta testing
|
|
234
|
-
optikit
|
|
234
|
+
optikit bump-android # Android: 12
|
|
235
235
|
|
|
236
236
|
# 5. Fix found during testing
|
|
237
|
-
optikit
|
|
237
|
+
optikit bump patch
|
|
238
238
|
# → 1.1.1+13 (iOS: 1, Android: 13)
|
|
239
239
|
|
|
240
240
|
# 6. Final TestFlight
|
|
241
|
-
optikit
|
|
241
|
+
optikit bump-ios # iOS: 2
|
|
242
242
|
|
|
243
243
|
# 7. Release to stores!
|
|
244
244
|
# iOS: 1.1.1 (build 2)
|
|
@@ -261,7 +261,7 @@ BEFORE: AFTER:
|
|
|
261
261
|
│ iOS: 3 │ ───> │ iOS: 1 │ ✅ Reset to 1
|
|
262
262
|
└─────────────┘ └─────────────┘
|
|
263
263
|
|
|
264
|
-
Command: optikit
|
|
264
|
+
Command: optikit bump patch
|
|
265
265
|
```
|
|
266
266
|
|
|
267
267
|
### Example 2: iOS-Only Bump
|
|
@@ -276,7 +276,7 @@ BEFORE: AFTER:
|
|
|
276
276
|
│ iOS: 1 │ ───> │ iOS: 2 │ ✅ Build +1
|
|
277
277
|
└─────────────┘ └─────────────┘
|
|
278
278
|
|
|
279
|
-
Command: optikit
|
|
279
|
+
Command: optikit bump-ios
|
|
280
280
|
```
|
|
281
281
|
|
|
282
282
|
---
|
|
@@ -328,24 +328,24 @@ version: 1.2.3+45
|
|
|
328
328
|
### 1. Always Use Semantic Versioning
|
|
329
329
|
```bash
|
|
330
330
|
# Bug fix
|
|
331
|
-
optikit
|
|
331
|
+
optikit bump patch
|
|
332
332
|
|
|
333
333
|
# New feature
|
|
334
|
-
optikit
|
|
334
|
+
optikit bump minor
|
|
335
335
|
|
|
336
336
|
# Breaking change
|
|
337
|
-
optikit
|
|
337
|
+
optikit bump major
|
|
338
338
|
```
|
|
339
339
|
|
|
340
340
|
### 2. TestFlight Workflow
|
|
341
341
|
```bash
|
|
342
342
|
# Create new version
|
|
343
|
-
optikit
|
|
343
|
+
optikit bump minor
|
|
344
344
|
|
|
345
345
|
# Multiple TestFlight uploads
|
|
346
|
-
optikit
|
|
347
|
-
optikit
|
|
348
|
-
optikit
|
|
346
|
+
optikit bump-ios # Upload 1
|
|
347
|
+
optikit bump-ios # Upload 2
|
|
348
|
+
optikit bump-ios # Upload 3
|
|
349
349
|
|
|
350
350
|
# When satisfied, release to App Store
|
|
351
351
|
# (No additional command needed)
|
|
@@ -354,11 +354,11 @@ optikit version bump-ios # Upload 3
|
|
|
354
354
|
### 3. Hotfix Workflow
|
|
355
355
|
```bash
|
|
356
356
|
# iOS hotfix
|
|
357
|
-
optikit
|
|
357
|
+
optikit bump patch
|
|
358
358
|
optikit flutter-build-ipa
|
|
359
359
|
|
|
360
360
|
# Android hotfix
|
|
361
|
-
optikit
|
|
361
|
+
optikit bump patch
|
|
362
362
|
optikit flutter-build-bundle
|
|
363
363
|
```
|
|
364
364
|
|
|
@@ -368,7 +368,7 @@ optikit flutter-build-bundle
|
|
|
368
368
|
optikit version
|
|
369
369
|
|
|
370
370
|
# Then bump
|
|
371
|
-
optikit
|
|
371
|
+
optikit bump patch
|
|
372
372
|
```
|
|
373
373
|
|
|
374
374
|
---
|
|
@@ -411,15 +411,15 @@ App Store Connect:
|
|
|
411
411
|
optikit version
|
|
412
412
|
|
|
413
413
|
# Release new version
|
|
414
|
-
optikit
|
|
415
|
-
optikit
|
|
416
|
-
optikit
|
|
414
|
+
optikit bump patch # 1.0.0 → 1.0.1
|
|
415
|
+
optikit bump minor # 1.0.1 → 1.1.0
|
|
416
|
+
optikit bump major # 1.1.0 → 2.0.0
|
|
417
417
|
|
|
418
418
|
# TestFlight only
|
|
419
|
-
optikit
|
|
419
|
+
optikit bump-ios
|
|
420
420
|
|
|
421
421
|
# Google Play only
|
|
422
|
-
optikit
|
|
422
|
+
optikit bump-android
|
|
423
423
|
```
|
|
424
424
|
|
|
425
425
|
---
|
package/dist/cli.js
CHANGED
|
@@ -160,10 +160,7 @@ const options = yargs(hideBin(process.argv))
|
|
|
160
160
|
await rollbackFiles();
|
|
161
161
|
}
|
|
162
162
|
})
|
|
163
|
-
.command("
|
|
164
|
-
await showCurrentVersion();
|
|
165
|
-
})
|
|
166
|
-
.command("version bump <type>", "Bump version (major, minor, or patch)", (yargs) => {
|
|
163
|
+
.command("bump <type>", "Bump version (major, minor, or patch)", (yargs) => {
|
|
167
164
|
return yargs.positional("type", {
|
|
168
165
|
describe: "Version bump type (major, minor, patch)",
|
|
169
166
|
type: "string",
|
|
@@ -173,11 +170,14 @@ const options = yargs(hideBin(process.argv))
|
|
|
173
170
|
const type = argv.type;
|
|
174
171
|
await bumpVersion(type);
|
|
175
172
|
})
|
|
176
|
-
.command("
|
|
173
|
+
.command("bump-ios", "Increment iOS build number only (for TestFlight)", () => { }, async () => {
|
|
177
174
|
await bumpIosBuildOnly();
|
|
178
175
|
})
|
|
179
|
-
.command("
|
|
176
|
+
.command("bump-android", "Increment Android build number only", () => { }, async () => {
|
|
180
177
|
await bumpAndroidBuildOnly();
|
|
178
|
+
})
|
|
179
|
+
.command("version", "Show current version information", () => { }, async () => {
|
|
180
|
+
await showCurrentVersion();
|
|
181
181
|
})
|
|
182
182
|
.command("devices", "List all connected devices", (yargs) => {
|
|
183
183
|
return yargs.option("disable-fvm", {
|
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -253,15 +253,7 @@ const options = yargs(hideBin(process.argv))
|
|
|
253
253
|
}
|
|
254
254
|
)
|
|
255
255
|
.command(
|
|
256
|
-
"
|
|
257
|
-
"Show current version information",
|
|
258
|
-
() => {},
|
|
259
|
-
async () => {
|
|
260
|
-
await showCurrentVersion();
|
|
261
|
-
}
|
|
262
|
-
)
|
|
263
|
-
.command(
|
|
264
|
-
"version bump <type>",
|
|
256
|
+
"bump <type>",
|
|
265
257
|
"Bump version (major, minor, or patch)",
|
|
266
258
|
(yargs) => {
|
|
267
259
|
return yargs.positional("type", {
|
|
@@ -276,7 +268,7 @@ const options = yargs(hideBin(process.argv))
|
|
|
276
268
|
}
|
|
277
269
|
)
|
|
278
270
|
.command(
|
|
279
|
-
"
|
|
271
|
+
"bump-ios",
|
|
280
272
|
"Increment iOS build number only (for TestFlight)",
|
|
281
273
|
() => {},
|
|
282
274
|
async () => {
|
|
@@ -284,13 +276,21 @@ const options = yargs(hideBin(process.argv))
|
|
|
284
276
|
}
|
|
285
277
|
)
|
|
286
278
|
.command(
|
|
287
|
-
"
|
|
279
|
+
"bump-android",
|
|
288
280
|
"Increment Android build number only",
|
|
289
281
|
() => {},
|
|
290
282
|
async () => {
|
|
291
283
|
await bumpAndroidBuildOnly();
|
|
292
284
|
}
|
|
293
285
|
)
|
|
286
|
+
.command(
|
|
287
|
+
"version",
|
|
288
|
+
"Show current version information",
|
|
289
|
+
() => {},
|
|
290
|
+
async () => {
|
|
291
|
+
await showCurrentVersion();
|
|
292
|
+
}
|
|
293
|
+
)
|
|
294
294
|
.command(
|
|
295
295
|
"devices",
|
|
296
296
|
"List all connected devices",
|