@jordond/kit 0.8.0 → 0.8.1
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/LICENSE +21 -0
- package/README.md +93 -1032
- package/dist/{_preview-B58geuUk.js → _preview-CdHzOqB7.js} +4 -4
- package/dist/{_verb-DWXrtbyb.js → _verb-mZ2QBXCN.js} +2 -2
- package/dist/{android-C7N3LxRq.js → android-BiGcV-Na.js} +2 -2
- package/dist/{backup-9B4K9U_G.js → backup-C8_z2SWc.js} +4 -4
- package/dist/{boot-D1w45n5N.js → boot-aquCwVeg.js} +2 -2
- package/dist/{build-DqITJpTP.js → build-DbkhkQd9.js} +2 -2
- package/dist/{build-DeykXskB.js → build-z15e8MR6.js} +2 -2
- package/dist/{builtins-ysIGaptY.js → builtins-CSpMhp9A.js} +67 -67
- package/dist/builtins-CbS3CyWW.js +1 -0
- package/dist/{bump-hLNWDGnq.js → bump-CWoWMvRX.js} +2 -2
- package/dist/{certs-DRmBZA4b.js → certs-nTrVYH1T.js} +2 -2
- package/dist/{changelog-CeTpoe3d.js → changelog-uFjGMnsN.js} +1 -1
- package/dist/{check-CH7X4usg.js → check-BbRP-KHb.js} +3 -3
- package/dist/{check-vl7UBzW0.js → check-Bd3SA8_W.js} +2 -2
- package/dist/{clean-Cnjk-U9b.js → clean-DW2kB5Dk.js} +2 -2
- package/dist/{clear-C-Pq3HaB.js → clear-BiTNrk7L.js} +2 -2
- package/dist/cli.js +1 -1
- package/dist/{cloudflare-DANxWsOQ.js → cloudflare-D6NzsVHH.js} +1 -1
- package/dist/{cloudflare-Fqiw0PwT.js → cloudflare-Pi5YWQ51.js} +1 -1
- package/dist/{command-mcR8k_HV.js → command-BINryn-Y.js} +1 -1
- package/dist/{command-B8J0KTC5.js → command-BZp06Zov.js} +1 -1
- package/dist/command-BmopGOX8.js +1 -0
- package/dist/command-CPKOSPub.js +1 -0
- package/dist/{command-B_tgmjMh.js → command-CSIzpdnk.js} +1 -1
- package/dist/{completion-BiXJxPZ9.js → completion-DP4BqBVX.js} +1 -1
- package/dist/{config-B55_sHr5.js → config-C8bz1Lnj.js} +1 -1
- package/dist/{create-Dy7hger6.js → create-Dn1HpPBh.js} +3 -3
- package/dist/{d1-local-GmVnxPO4.js → d1-local-DXmvMA8l.js} +1 -1
- package/dist/{deploy-C_QOMOcM.js → deploy-BDevzdFE.js} +1 -1
- package/dist/{deploy-BBRBn_M4.js → deploy-DSMUbSTU.js} +4 -4
- package/dist/{deps-CdBkTN7j.js → deps-B_iuGdnh.js} +2 -2
- package/dist/{dev-BZJD6OIV.js → dev-CmUXy2jb.js} +4 -4
- package/dist/{doctor-BnNmJ3F0.js → doctor-B1Js9e-a.js} +1 -1
- package/dist/{dump-CI3A09n5.js → dump-C-Nro8kh.js} +2 -2
- package/dist/{exec-CGau45Vt.js → exec-BKBxFLV2.js} +3 -3
- package/dist/{export-Dou4TN6P.js → export-C6E5HQ4v.js} +3 -3
- package/dist/{fastlane-DOOIW8Bv.js → fastlane-CII4Bsfk.js} +2 -2
- package/dist/{format-B9P7cwGa.js → format-BbCcRY94.js} +2 -2
- package/dist/{github-hbUxSgvC.js → github-hj8ivoIP.js} +1 -1
- package/dist/{gradle-DCCSshhi.js → gradle-BI6BV3vN.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{init-CM9_Vffq.js → init-D5ggHMsX.js} +2 -2
- package/dist/{init-se_v7omf.js → init-ZrdhRCel.js} +2 -2
- package/dist/{install-BwbPiWQ4.js → install-CuvAjq6W.js} +2 -2
- package/dist/{ios-BEwVaO46.js → ios-COCPafcE.js} +2 -2
- package/dist/{kotlin-D8HWnUzo.js → kotlin-Gj61GpBD.js} +2 -2
- package/dist/{lint-Cgq_H-NN.js → lint-CSxB-_U5.js} +2 -2
- package/dist/{list-D0Qc5Qet.js → list-Be_9pu4L.js} +2 -2
- package/dist/{list-1NXRSisF.js → list-DA-RzVSV.js} +3 -3
- package/dist/{load-BisdxdeI.js → load-v5m0Rr_K.js} +2 -2
- package/dist/{logs-DG91Koht.js → logs-CpRODWhL.js} +5 -5
- package/dist/{maestro-Bd02kktp.js → maestro-BVEghlJX.js} +2 -2
- package/dist/{maestro-DKJ2SJeq.js → maestro-Bz-jCcxm.js} +4 -4
- package/dist/{maestro-BSGMnT75.js → maestro-CxIVOZmL.js} +2 -2
- package/dist/{main-Cnazq_l_.js → main-DiwP-vd3.js} +4 -4
- package/dist/{migrate-gonPH0WH.js → migrate-BN07LQIX.js} +3 -3
- package/dist/{migrate-BeBNQQ23.js → migrate-Bgdfz67b.js} +2 -2
- package/dist/{migrate-command-PYN2AamL.js → migrate-command-d_cKwRgv.js} +1 -1
- package/dist/{module-UMYvU8pS.js → module-lm8U6VFb.js} +3 -3
- package/dist/{open-BHqqqGnv.js → open-DyATqLD3.js} +5 -5
- package/dist/{package-BVKRcQpC.js → package-BdUJSwux.js} +1 -1
- package/dist/{pages-CR7DZpWH.js → pages-Mmp1I5AD.js} +3 -3
- package/dist/{pages-command-C4NlM9ry.js → pages-command-d72Yxi1c.js} +1 -1
- package/dist/{promote-bk2Q8_L8.js → promote-OgZa-I1a.js} +2 -2
- package/dist/{pull-Ch2Kz45B.js → pull-D32PBOvT.js} +2 -2
- package/dist/{push-EICF6s2a.js → push-BF1u0mQc.js} +3 -3
- package/dist/{push-Cebz1M40.js → push-Dk8CiIXA.js} +2 -2
- package/dist/{push-Dph9Y38u.js → push-a4Ny6K3e.js} +1 -1
- package/dist/{push-run-DXt7HOwQ.js → push-run-CIamYOaT.js} +2 -2
- package/dist/{qa-HDgx98qK.js → qa-DjIc_y5X.js} +2 -2
- package/dist/{reset-CwitJFp3.js → reset-C8ZkcRcT.js} +5 -5
- package/dist/{restore-fT4mQq6w.js → restore-CBZm8o7U.js} +5 -5
- package/dist/{rollback-DQ9c6iV4.js → rollback-C-W0bT-6.js} +4 -4
- package/dist/{rollout-gCQfGJW5.js → rollout-DrnocRye.js} +2 -2
- package/dist/{rotate-CWoDNN2_.js → rotate-DmJo6-5F.js} +1 -1
- package/dist/{rotate-DnmY2rlY.js → rotate-Dnu_CHco.js} +4 -4
- package/dist/{run-BSsdEdwU.js → run-p5BW5iIp.js} +2 -2
- package/dist/{seed-BJcU14Jr.js → seed-CYnvVdN5.js} +4 -4
- package/dist/{service-BHJDfoHf.js → service-DnDQvayL.js} +2 -2
- package/dist/{shots-DNcpoKfE.js → shots-CkjBW4MC.js} +2 -2
- package/dist/{show-e4oWpeIr.js → show-B_WutX7o.js} +2 -2
- package/dist/{status-DgwgkAcK.js → status-CGHla3LK.js} +2 -2
- package/dist/{statusbar-BOLryuT7.js → statusbar-C4UM0NAS.js} +2 -2
- package/dist/{studio-SnhFnjKt.js → studio-Dn8nQJNP.js} +2 -2
- package/dist/{studio-CjuQWgLj.js → studio-ozWvvql7.js} +2 -2
- package/dist/{sync-CzHA61P_.js → sync-ByXe3732.js} +2 -2
- package/dist/{target-tTLR9jzh.js → target-Chm8NRHw.js} +4 -4
- package/dist/{test-BlaVtdkO.js → test-i-eUrv1M.js} +2 -2
- package/dist/{typecheck-BqGdQvhM.js → typecheck-DtEKcViz.js} +2 -2
- package/dist/{uninstall-pc75zzh4.js → uninstall-YlwOgeDQ.js} +2 -2
- package/dist/{upgrade-CuTsADCQ.js → upgrade-DCpa18yE.js} +1 -1
- package/dist/{worker-CbVQTdeT.js → worker-C5ocJrZg.js} +1 -1
- package/dist/{worker-BP2x5ONk.js → worker-RbttHhOX.js} +1 -1
- package/dist/{wrangler-DQIQQkT5.js → wrangler-D7-ZHVVE.js} +3 -3
- package/dist/{xcode-DUgCKDwE.js → xcode-CKlKFnlU.js} +2 -2
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/{0.8.0/io.github.jordond.kit.android.application.gradle.plugin-0.8.0.pom → 0.8.1/io.github.jordond.kit.android.application.gradle.plugin-0.8.1.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.8.1/io.github.jordond.kit.android.application.gradle.plugin-0.8.1.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.8.1/io.github.jordond.kit.android.application.gradle.plugin-0.8.1.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.8.1/io.github.jordond.kit.android.application.gradle.plugin-0.8.1.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.8.1/io.github.jordond.kit.android.application.gradle.plugin-0.8.1.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/{0.8.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.0.pom → 0.8.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.1.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.8.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.1.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.8.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.1.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.8.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.1.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.8.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.1.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/{0.8.0/io.github.jordond.kit.compose.gradle.plugin-0.8.0.pom → 0.8.1/io.github.jordond.kit.compose.gradle.plugin-0.8.1.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.8.1/io.github.jordond.kit.compose.gradle.plugin-0.8.1.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.8.1/io.github.jordond.kit.compose.gradle.plugin-0.8.1.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.8.1/io.github.jordond.kit.compose.gradle.plugin-0.8.1.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.8.1/io.github.jordond.kit.compose.gradle.plugin-0.8.1.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/{0.8.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.0.pom → 0.8.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.1.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.8.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.1.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.8.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.1.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.8.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.1.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.8.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.1.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.8.0/kit-plugins-0.8.0.module → 0.8.1/kit-plugins-0.8.1.module} +5 -5
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.1/kit-plugins-0.8.1.module.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.1/kit-plugins-0.8.1.module.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.1/kit-plugins-0.8.1.module.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.1/kit-plugins-0.8.1.module.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.8.0/kit-plugins-0.8.0.pom → 0.8.1/kit-plugins-0.8.1.pom} +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.1/kit-plugins-0.8.1.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.1/kit-plugins-0.8.1.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.1/kit-plugins-0.8.1.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.1/kit-plugins-0.8.1.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/{0.8.0/kit-settings-0.8.0.module → 0.8.1/kit-settings-0.8.1.module} +5 -5
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.1/kit-settings-0.8.1.module.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.1/kit-settings-0.8.1.module.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.1/kit-settings-0.8.1.module.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.1/kit-settings-0.8.1.module.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/{0.8.0/kit-settings-0.8.0.pom → 0.8.1/kit-settings-0.8.1.pom} +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.1/kit-settings-0.8.1.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.1/kit-settings-0.8.1.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.1/kit-settings-0.8.1.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.1/kit-settings-0.8.1.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/{0.8.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.0.pom → 0.8.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.1.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.8.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.1.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.8.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.1.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.8.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.1.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.8.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.1.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/{0.8.0/io.github.jordond.kit.lint.gradle.plugin-0.8.0.pom → 0.8.1/io.github.jordond.kit.lint.gradle.plugin-0.8.1.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.8.1/io.github.jordond.kit.lint.gradle.plugin-0.8.1.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.8.1/io.github.jordond.kit.lint.gradle.plugin-0.8.1.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.8.1/io.github.jordond.kit.lint.gradle.plugin-0.8.1.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.8.1/io.github.jordond.kit.lint.gradle.plugin-0.8.1.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/{0.8.0/io.github.jordond.kit.release.gradle.plugin-0.8.0.pom → 0.8.1/io.github.jordond.kit.release.gradle.plugin-0.8.1.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.8.1/io.github.jordond.kit.release.gradle.plugin-0.8.1.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.8.1/io.github.jordond.kit.release.gradle.plugin-0.8.1.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.8.1/io.github.jordond.kit.release.gradle.plugin-0.8.1.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.8.1/io.github.jordond.kit.release.gradle.plugin-0.8.1.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/{0.8.0/io.github.jordond.kit.settings.gradle.plugin-0.8.0.pom → 0.8.1/io.github.jordond.kit.settings.gradle.plugin-0.8.1.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.8.1/io.github.jordond.kit.settings.gradle.plugin-0.8.1.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.8.1/io.github.jordond.kit.settings.gradle.plugin-0.8.1.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.8.1/io.github.jordond.kit.settings.gradle.plugin-0.8.1.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.8.1/io.github.jordond.kit.settings.gradle.plugin-0.8.1.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/package.json +1 -1
- package/dist/builtins-CPRE__kE.js +0 -1
- package/dist/command-DEjZdYUF.js +0 -1
- package/dist/command-DS2EuzYK.js +0 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.8.0/io.github.jordond.kit.android.application.gradle.plugin-0.8.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.8.0/io.github.jordond.kit.android.application.gradle.plugin-0.8.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.8.0/io.github.jordond.kit.android.application.gradle.plugin-0.8.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.8.0/io.github.jordond.kit.android.application.gradle.plugin-0.8.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.8.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.8.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.8.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.8.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.8.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.8.0/io.github.jordond.kit.compose.gradle.plugin-0.8.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.8.0/io.github.jordond.kit.compose.gradle.plugin-0.8.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.8.0/io.github.jordond.kit.compose.gradle.plugin-0.8.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.8.0/io.github.jordond.kit.compose.gradle.plugin-0.8.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.8.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.8.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.8.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.8.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.8.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.module.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.module.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.module.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.module.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.8.0/kit-plugins-0.8.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.module.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.module.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.module.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.module.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.8.0/kit-settings-0.8.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.8.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.8.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.8.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.8.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.8.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.8.0/io.github.jordond.kit.lint.gradle.plugin-0.8.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.8.0/io.github.jordond.kit.lint.gradle.plugin-0.8.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.8.0/io.github.jordond.kit.lint.gradle.plugin-0.8.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.8.0/io.github.jordond.kit.lint.gradle.plugin-0.8.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.8.0/io.github.jordond.kit.release.gradle.plugin-0.8.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.8.0/io.github.jordond.kit.release.gradle.plugin-0.8.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.8.0/io.github.jordond.kit.release.gradle.plugin-0.8.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.8.0/io.github.jordond.kit.release.gradle.plugin-0.8.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.8.0/io.github.jordond.kit.settings.gradle.plugin-0.8.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.8.0/io.github.jordond.kit.settings.gradle.plugin-0.8.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.8.0/io.github.jordond.kit.settings.gradle.plugin-0.8.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.8.0/io.github.jordond.kit.settings.gradle.plugin-0.8.0.pom.sha512 +0 -1
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.8.0/kit-plugins-0.8.0.jar → 0.8.1/kit-plugins-0.8.1.jar} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.8.0/kit-plugins-0.8.0.jar.md5 → 0.8.1/kit-plugins-0.8.1.jar.md5} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.8.0/kit-plugins-0.8.0.jar.sha1 → 0.8.1/kit-plugins-0.8.1.jar.sha1} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.8.0/kit-plugins-0.8.0.jar.sha256 → 0.8.1/kit-plugins-0.8.1.jar.sha256} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.8.0/kit-plugins-0.8.0.jar.sha512 → 0.8.1/kit-plugins-0.8.1.jar.sha512} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.8.0/kit-settings-0.8.0.jar → 0.8.1/kit-settings-0.8.1.jar} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.8.0/kit-settings-0.8.0.jar.md5 → 0.8.1/kit-settings-0.8.1.jar.md5} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.8.0/kit-settings-0.8.0.jar.sha1 → 0.8.1/kit-settings-0.8.1.jar.sha1} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.8.0/kit-settings-0.8.0.jar.sha256 → 0.8.1/kit-settings-0.8.1.jar.sha256} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.8.0/kit-settings-0.8.0.jar.sha512 → 0.8.1/kit-settings-0.8.1.jar.sha512} +0 -0
package/README.md
CHANGED
|
@@ -1,1075 +1,136 @@
|
|
|
1
1
|
# kit
|
|
2
2
|
|
|
3
|
-
One
|
|
4
|
-
|
|
3
|
+
One CLI for a repo that ships more than one thing: a Kotlin Multiplatform app, the Cloudflare Workers
|
|
4
|
+
behind it, a Vite or Astro site. `kit` gives them the same verbs, on a laptop and in CI, and owns the
|
|
5
|
+
parts every app otherwise rebuilds: store releases, env and secrets, devices, UI tests and screenshots.
|
|
5
6
|
|
|
6
7
|
```sh
|
|
7
|
-
|
|
8
|
-
kit
|
|
8
|
+
kit check --affected # lint and typecheck what this branch changed
|
|
9
|
+
kit test api # one target
|
|
10
|
+
kit qa ios # boot a simulator, build, install, run the Maestro flows
|
|
11
|
+
kit release ios --track beta
|
|
9
12
|
```
|
|
10
13
|
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
It ships as one package, `@jordond/kit`: the CLI, a shared fastlane setup, Gradle convention plugins,
|
|
15
|
+
reusable GitHub workflows and a Renovate preset.
|
|
13
16
|
|
|
14
|
-
|
|
15
|
-
of its own release, so an older global kit can miss a newer repo's copy. kit guards against running
|
|
16
|
-
the wrong copy:
|
|
17
|
+
## What it does
|
|
17
18
|
|
|
18
|
-
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
- **One set of verbs.** `lint`, `format`, `typecheck`, `check`, `test`, `build`, `dev` and `deploy` run
|
|
20
|
+
across every target, with sensible defaults per kind (Gradle, Kotlin toolchain, Cloudflare Worker, Vite,
|
|
21
|
+
Astro, Docker, custom) and per-target overrides. `--affected` and `--staged` run only what changed.
|
|
22
|
+
- **Mobile releases.** `kit release ios|android` reads the version, takes the next build number from the
|
|
23
|
+
store, builds, signs, uploads and tags. Promote a build between tracks, change a staged rollout, and
|
|
24
|
+
keep the store listing and screenshots in the repo. One shared Fastfile; no fastlane config per app.
|
|
25
|
+
- **Devices and the debug app.** Boot or create a simulator or emulator, then build, install and run
|
|
26
|
+
the debug app on it.
|
|
27
|
+
- **UI tests and screenshots.** Run [Maestro](https://maestro.dev) flows against a known app state
|
|
28
|
+
(fixtures), capture raw screenshots, and compose them into store-size images in a browser studio.
|
|
29
|
+
- **Env and secrets.** One `.env` checked against a zod schema, rendered into each target's files, and
|
|
30
|
+
pushed to Worker and GitHub secrets. Values never reach output.
|
|
31
|
+
- **Cloudflare Workers.** Preview deploys with a pull request comment, rollback, log tailing, and D1
|
|
32
|
+
backup, restore, seed and reset.
|
|
33
|
+
- **Repo setup.** `kit init` sets up a fresh clone or scaffolds a new repo, `kit add` scaffolds modules
|
|
34
|
+
and targets, and `kit doctor` checks the tools the config needs and fixes what is safe to fix.
|
|
35
|
+
- **Made for scripts.** Commands take `--json` and `--dry-run`, and exit codes are stable.
|
|
23
36
|
|
|
24
|
-
|
|
37
|
+
## Requirements
|
|
25
38
|
|
|
26
|
-
|
|
39
|
+
[Bun](https://bun.sh) 1.3 or newer. Everything else depends on what the repo builds (a JDK, Xcode, the
|
|
40
|
+
Android SDK, wrangler, Maestro): `kit doctor` lists what is missing.
|
|
27
41
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
kit is a dev dependency in the root `package.json`, or in `.kit/package.json` for repos that must not have
|
|
31
|
-
a root `package.json`:
|
|
32
|
-
|
|
33
|
-
```sh
|
|
34
|
-
mkdir -p .kit && cd .kit && bun init -y && bun add -d @jordond/kit # then: .kit/node_modules/.bin/kit
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
The config can sit next to it as `.kit/kit.config.ts`, where editors resolve the `@jordond/kit` import
|
|
38
|
-
through `.kit/node_modules`; a root `kit.config.ts` wins when both exist and still runs (kit resolves the
|
|
39
|
-
import to itself), but editors show it unresolved. Paths in the config are relative to the repo root in
|
|
40
|
-
both places. The launcher, `kit init`, `kit doctor`, `kit upgrade`, the setup action and
|
|
41
|
-
`mobile-distribute.yml` all look in both places. Kotlin toolchain repos need `.kit/`: the toolchain runs
|
|
42
|
-
`pnpm add` for its Kotlin/Wasm test browser in a build folder with no `package.json`, and pnpm installs
|
|
43
|
-
into the nearest one above it.
|
|
44
|
-
|
|
45
|
-
## New repos
|
|
46
|
-
|
|
47
|
-
`kit init` in a repo without a `kit.config.ts` can write the kit files first, then set the clone up as
|
|
48
|
-
usual (`.env`, install, toolchain download, fastlane bundle). Run it with a global kit or `bunx @jordond/kit init`.
|
|
49
|
-
|
|
50
|
-
```sh
|
|
51
|
-
kit init --template toolchain # in a Kotlin toolchain project (a `kotlin` wrapper + project.yaml)
|
|
52
|
-
kit init --template gradle --name MyApp
|
|
53
|
-
kit init --template toolchain --dry-run
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
| Template | Writes |
|
|
57
|
-
| --- | --- |
|
|
58
|
-
| `toolchain` | `.kit/package.json`, `.kit/kit.config.ts`, `fastlane/Fastfile`, `.env.example`, `.editorconfig` (ktlint, 2-space), `mise.toml` (bun + ktlint, no java), `lefthook.yml`, `.github/workflows/{ci,distribute}.yml`, `renovate.json`; adds `node_modules/` and `.env` to `.gitignore` and `app-android-version` / `app-ios-version` to `libs.versions.toml` |
|
|
59
|
-
| `gradle` | root `package.json`, `kit.config.ts`, `apps/client/{settings.gradle.kts,gradle/libs.versions.toml,fastlane/Fastfile}`, `.env.example`, `mise.toml`, `lefthook.yml`, `.github/workflows/ci.yml`, `renovate.json`. Add the Gradle wrapper and the modules yourself |
|
|
60
|
-
|
|
61
|
-
- `toolchain` layers kit over an existing project and never writes a root `package.json`. Create the project
|
|
62
|
-
first (`kotlin init`). A plain `kit init` there offers the template (`--yes` accepts it).
|
|
63
|
-
- It reads the project to fill the config: the `android/app` module and its `applicationId`, the `ios/app`
|
|
64
|
-
module's Xcode project, scheme, bundle id, team and the xcconfig holding `MARKETING_VERSION`, and the
|
|
65
|
-
`jvm/app` module for `kit dev`. An id it cannot find is `com.example.<name>`: replace it before a release.
|
|
66
|
-
CI tests the non-Apple platforms the modules declare (`--platform jvm --platform android …`).
|
|
67
|
-
- Workflows pin kit by the commit of the running version's tag (`@<sha> # vX.Y.Z`).
|
|
68
|
-
- A file that already exists is kept; `.gitignore` and the catalog only gain lines. `renovate.json` is
|
|
69
|
-
skipped when the repo has a Renovate config anywhere (`.github/renovate.json`, `.renovaterc`, …).
|
|
70
|
-
|
|
71
|
-
## Adding modules, targets and Maestro flows
|
|
72
|
-
|
|
73
|
-
`kit add` scaffolds into a repo that already has kit. Every command shows the plan first, writes nothing
|
|
74
|
-
with `--dry-run`, and prints the plan or result as one document with `--json`.
|
|
75
|
-
|
|
76
|
-
```sh
|
|
77
|
-
kit add module core # KMP library: android, ios, jvm
|
|
78
|
-
kit add module feature:login --compose # <gradle root>/feature/login, plus kit.compose
|
|
79
|
-
kit add module data --targets android,jvm --dir libs/data
|
|
80
|
-
kit add target api --kind worker --dir apps/api # worker | vite | astro | docker | custom
|
|
81
|
-
kit add maestro # starter flows, settle subflow, README with the rules
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
| | Gradle (`gradle.root`) | Kotlin toolchain (`toolchain.root`) |
|
|
85
|
-
| --- | --- | --- |
|
|
86
|
-
| `kit add module <name>` writes | `build.gradle.kts` on kit's plugins only (`io.github.jordond.kit.kmp.library`, `…kit.compose` with `--compose`) with `kit { targets { … } }`, and `src/commonMain/kotlin/<package>/Placeholder.kt` | `module.yaml` (`kmp/lib`, the platforms of `--targets`; `--compose` enables Compose) and `src/Placeholder.kt` |
|
|
87
|
-
| and registers it in | `settings.gradle.kts`: one `include(":<name>")` after the last include (plus a `projectDir` line when `--dir` is not the path) | `project.yaml`: one entry in `modules:`, in the list's own style |
|
|
88
|
-
| Package | catalog `app-name` + the module path, the same rule the plugin uses for the Android namespace (`:feature:login` → `<app-name>.feature.login`) | the Android `applicationId` (or iOS bundle id) + the module name |
|
|
89
|
-
|
|
90
|
-
- Module names follow Gradle's project name rules (letters, digits, `-`, `_`, a letter first); `:` nests and
|
|
91
|
-
maps to directories. The Kotlin toolchain names a module after its directory, so names do not nest there.
|
|
92
|
-
- A file that already exists is never overwritten: the command lists them and exits 2. `--force` overwrites.
|
|
93
|
-
A module that is already included or listed is left as it is.
|
|
94
|
-
- Every edit keeps the file's line endings and is read back before it is written. A `settings.gradle` gets
|
|
95
|
-
Groovy syntax (`include ':core'`). A settings file or `project.yaml` kit cannot edit safely is left
|
|
96
|
-
untouched: the line to add goes to stdout and the exit code is 1.
|
|
97
|
-
- `kit add target` appends to `targets: { … }` in `kit.config.ts` (or `.kit/kit.config.ts`) with a text edit
|
|
98
|
-
that keeps the file as written, then loads the config to prove it. A config it cannot edit safely
|
|
99
|
-
(`targets` from a variable, a spread, a wrapper) is left untouched: the line to paste goes to stdout and
|
|
100
|
-
the exit code is 1. The name cannot be an existing target, `workspace`, or a kit command.
|
|
101
|
-
- `--kind worker` with a `--dir` that does not exist yet also writes a minimal worker: `wrangler.jsonc`
|
|
102
|
-
(placeholder name, no account id), `src/index.ts`, `package.json`, `tsconfig.json`. An existing directory
|
|
103
|
-
is only registered; other kinds get an empty directory when it is missing.
|
|
104
|
-
- `kit add maestro [--dir <path>] [--ios <bundle id>] [--android <package>]` writes the starter Maestro
|
|
105
|
-
flows (see [Maestro: QA and screenshots](#maestro-qa-and-screenshots)); its own rules are below.
|
|
106
|
-
|
|
107
|
-
### `kit add maestro`
|
|
108
|
-
|
|
109
|
-
| File (under the flows dir) | Holds |
|
|
110
|
-
| --- | --- |
|
|
111
|
-
| `config.yaml` | `flows: [flows/*]`, so `maestro test` never runs a subflow as a flow |
|
|
112
|
-
| `flows/smoke.yaml` | One example flow: launch with permissions granted, then the settle subflow. Tagged with the first stage of the `qa` suite (`smoke` by default) so `kit qa` runs it |
|
|
113
|
-
| `subflows/settle.yaml` | The settle gate: wait for content (`SETTLED`), then for animation to end |
|
|
114
|
-
| `README.md` | The rules: the settle gate, motion, boolean launch switches, taps that lie, what to gate on, no pixel baselines, device state |
|
|
115
|
-
| `.gitignore` | `output/`, Maestro's run directories |
|
|
116
|
-
|
|
117
|
-
- The flows dir is `maestro.dir` from the config, else `--dir`, else `maestro`. With no `maestro` block the
|
|
118
|
-
command adds `maestro: { dir, version }` to `kit.config.ts` by the same text edit `kit add target` uses.
|
|
119
|
-
A config it cannot edit safely is left alone, nothing is written, the line to paste goes to stdout and the
|
|
120
|
-
exit code is 1; paste it and run the command again.
|
|
121
|
-
- App ids: `--ios` / `--android`, else `app.*` in the config, else `release.*`. With none and a terminal it
|
|
122
|
-
asks once and uses the answer for both platforms; without a terminal it exits 2 naming the flags. Two
|
|
123
|
-
different ids make the smoke flow launch the right one per platform (`when: platform:`).
|
|
124
|
-
- A file that exists is kept, not an error: a second run prints `nothing to write` (`--json`: `unchanged: true`),
|
|
125
|
-
and a deleted file comes back without touching the others. `--force` overwrites them all. `--dir` cannot be
|
|
126
|
-
the repo root or a hidden directory (`.`, `.github`): exit 2.
|
|
127
|
-
- The `.gitignore` entry follows `maestro.output` when it sits under the flows dir; otherwise the README says
|
|
128
|
-
to ignore it. The README also explains that `maestro.version` is pinned on purpose and how to change it.
|
|
129
|
-
- Ids and tags are quoted in the YAML when needed (`null`, `yes`, a `:`).
|
|
130
|
-
- `flows/smoke.yaml` gates on the placeholder `Replace with text from your first screen`, which is not on
|
|
131
|
-
any screen, so it fails until you pick a string from your fixture. A gate that cannot fail is not a gate.
|
|
132
|
-
|
|
133
|
-
## Keeping kit up to date
|
|
134
|
-
|
|
135
|
-
A repo pins kit twice: the `@jordond/kit` range in `package.json` (or `.kit/package.json`) and the
|
|
136
|
-
`jordond/kit/…@<sha> # vX.Y.Z` refs in `.github/workflows`. Both must name the same release;
|
|
137
|
-
`kit doctor --ci` fails when they differ.
|
|
138
|
-
|
|
139
|
-
By hand:
|
|
140
|
-
|
|
141
|
-
```sh
|
|
142
|
-
kit upgrade # the latest release on npm
|
|
143
|
-
kit upgrade 0.6.0
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
Moves the range, runs the install, and rewrites every workflow ref to that release's tag commit.
|
|
147
|
-
Re-running it repairs workflow pins that lag the npm pin (`kit doctor --fix` does that part too).
|
|
148
|
-
|
|
149
|
-
With Renovate, extend kit's preset (the `kit init` templates write this `renovate.json`):
|
|
150
|
-
|
|
151
|
-
```json
|
|
152
|
-
{
|
|
153
|
-
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
154
|
-
"extends": ["config:recommended", "github>jordond/kit//renovate/default"]
|
|
155
|
-
}
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
The preset puts the npm package and the workflow refs in one group, so a kit release arrives as one
|
|
159
|
-
PR; moves the `package.json` range itself (`^0.6.0` to `^0.6.1`), never only the lockfile; and keeps
|
|
160
|
-
the workflow refs pinned to a commit SHA with the `# vX.Y.Z` comment kit reads.
|
|
161
|
-
|
|
162
|
-
## Shell completion
|
|
42
|
+
## Install
|
|
163
43
|
|
|
164
44
|
```sh
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
kit completion fish > ~/.config/fish/completions/kit.fish
|
|
45
|
+
bun add -d @jordond/kit # pinned per repo
|
|
46
|
+
bun add -g @jordond/kit # optional: `kit` on your PATH
|
|
168
47
|
```
|
|
169
48
|
|
|
170
|
-
The
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
in `~/.zshrc` (`~/.bash_profile` on macOS, else `~/.bashrc`) that sources it. Sourcing a file means no
|
|
174
|
-
kit process runs when a shell starts.
|
|
49
|
+
The global `kit` is a launcher: it finds the nearest `kit.config.ts` and runs that repo's own pinned
|
|
50
|
+
copy, so laptops and CI agree. Repos that must not have a root `package.json` install into `.kit/`
|
|
51
|
+
instead. See [Installing and updating](docs/install.md).
|
|
175
52
|
|
|
176
|
-
##
|
|
53
|
+
## Quick start
|
|
177
54
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
kit
|
|
181
|
-
kit lint api web --affected # named targets ∩ affected ones
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
`lint`, `format`, `typecheck`, `check`, `test` and `build` take `--affected [--base <ref>]`: only the
|
|
185
|
-
targets changed since the merge base with `<ref>` run, counting commits on the branch plus staged,
|
|
186
|
-
unstaged and untracked files. The default base is `origin/<default branch>` (from `origin/HEAD`), then
|
|
187
|
-
`origin/main`, then `main`; a base that doesn't exist runs everything, with a warning.
|
|
188
|
-
|
|
189
|
-
A target is affected by a change under its `dir`, or under one of its `paths` (dirs or globs, for shared
|
|
190
|
-
code that lives elsewhere):
|
|
55
|
+
Starting a new repo? `kit init --template gradle` or `--template toolchain` writes the config, CI
|
|
56
|
+
workflows and tool pins for you ([Scaffolding](docs/scaffolding.md)). In an existing repo, add a
|
|
57
|
+
`kit.config.ts` at the root:
|
|
191
58
|
|
|
192
59
|
```ts
|
|
193
|
-
|
|
194
|
-
api: { kind: 'worker', dir: 'apps/api', paths: ['packages/shared', 'schema/**/*.sql'] },
|
|
195
|
-
}
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
A glob that matches a directory (`packages/*`) claims everything under it, and a `!` entry excludes:
|
|
199
|
-
`paths: ['packages/shared', '!**/*.md']`. Exclusions apply after the other entries and never to `dir`;
|
|
200
|
-
a file a target claims and then excludes is ignored (it does not count as unclaimed).
|
|
201
|
-
|
|
202
|
-
When HEAD is the default base itself with a clean tree (a push build of `main`), there is nothing to
|
|
203
|
-
compare: every target runs, with a warning, and `--json` adds `reason: "head-is-base"`. Pass
|
|
204
|
-
`--base HEAD~1` or the previous release tag there. With an explicit `--base`, no difference means
|
|
205
|
-
nothing runs. When `kit.config.ts` sits below the git root, a change outside it counts as unclaimed.
|
|
206
|
-
|
|
207
|
-
A changed file that no target claims (the root lockfile, `kit.config.ts`, CI workflows) affects every
|
|
208
|
-
target, and the workspace commands run whenever anything changed. Nothing changed exits 0. Unlike
|
|
209
|
-
`--staged`, tools get no file list: `--affected` only picks targets, and the two can't be combined.
|
|
210
|
-
`--staged` picks targets by the same `dir` and `paths` rule, but a staged file no target claims selects
|
|
211
|
-
none (the workspace commands still get it), so pre-commit hooks stay fast.
|
|
212
|
-
`--json` adds `affected` (the target names) and `base`.
|
|
213
|
-
|
|
214
|
-
## Step timings
|
|
215
|
-
|
|
216
|
-
After a verb runs more than one step, the summary lists the five slowest (`--verbose`: all of them).
|
|
217
|
-
With `--json`, every step has `ms` and the document a total `ms`; `deploy`, `release` and `init` report
|
|
218
|
-
the same fields.
|
|
219
|
-
|
|
220
|
-
## Clean
|
|
221
|
-
|
|
222
|
-
```sh
|
|
223
|
-
kit clean --dry-run # list what would go, with sizes
|
|
224
|
-
kit clean client # one target
|
|
225
|
-
kit clean --deep --yes
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
`kit clean [targets...]` deletes build output: `.gradle/`, `.kotlin/` and each Gradle project's `build/`
|
|
229
|
-
under the Gradle root (never `~/.gradle`), the Kotlin toolchain's `build/`, `dist/`, `.wrangler/tmp`,
|
|
230
|
-
`.astro` and the bundler caches in `node_modules` for worker, vite and astro targets, and the
|
|
231
|
-
`release.ios.output` .ipa with its dSYM zip (their dir too, only when it holds nothing else and git
|
|
232
|
-
tracks nothing in it). `--deep` adds `node_modules` (root and `.kit/`), `.wrangler/state` (your local
|
|
233
|
-
D1/KV data) and the configured iOS project's Xcode DerivedData. It lists every path with its size and asks
|
|
234
|
-
first (`--yes` skips the question); `--json` reports `{ removed: [{ path, bytes }], bytes }`. Symlinks
|
|
235
|
-
and anything that resolves outside the repo root are refused.
|
|
236
|
-
|
|
237
|
-
## Devices and the debug app
|
|
238
|
-
|
|
239
|
-
```sh
|
|
240
|
-
kit device list # simulators, emulators and phones; booted first
|
|
241
|
-
kit device boot ios # newest, largest iPhone; created when it does not exist
|
|
242
|
-
kit device boot ipad
|
|
243
|
-
kit device boot android # newest, largest Pixel AVD; created on a Play image
|
|
244
|
-
kit device statusbar ios # 9:41, full battery and signal; --clear restores it
|
|
245
|
-
|
|
246
|
-
kit app build android # debug build; prints the .apk path
|
|
247
|
-
kit app install ios # build, then install on the simulator
|
|
248
|
-
kit app run android --device emulator-5554
|
|
249
|
-
kit app install android --file app.aab
|
|
250
|
-
kit app uninstall ios
|
|
251
|
-
kit app clear android # wipe the app's data, keep it installed
|
|
252
|
-
```
|
|
60
|
+
import { defineConfig } from '@jordond/kit'
|
|
253
61
|
|
|
254
|
-
`kit app` and `kit device` take a platform: `ios`, `android`, and for devices `ipad` (the iOS app on an
|
|
255
|
-
iPad simulator). kit owns the device lifecycle with `simctl`, `adb`, `emulator` and `avdmanager`.
|
|
256
|
-
|
|
257
|
-
**Which device.** `--device <id>` is used as given (a simulator UDID or an adb serial). Without it: the
|
|
258
|
-
one running device; with several up, a picker (`--yes` takes the newest, largest iPhone or iPad, and an
|
|
259
|
-
emulator over a cabled phone); with none, kit offers to boot one, creating it first when needed. Without
|
|
260
|
-
a terminal that question needs `--yes`. `uninstall`, `clear` and `statusbar` never boot a device.
|
|
261
|
-
|
|
262
|
-
**Which emulator image.** A new AVD gets a Play system image when one is installed, newest API first
|
|
263
|
-
(otherwise `google_apis`, then AOSP). In CI the emulator starts headless.
|
|
264
|
-
`KIT_DEVICE_TIMEOUT_MS` changes the four minutes an emulator boot may take.
|
|
265
|
-
|
|
266
|
-
**Emulator arguments.** kit starts the emulator as `emulator -avd <avd>`, the headless flags in CI, then
|
|
267
|
-
any extra arguments from two places, in this order:
|
|
268
|
-
|
|
269
|
-
```ts
|
|
270
|
-
// kit.config.ts: an API 37 Play image plays no video without this
|
|
271
|
-
devices: { android: { emulatorArgs: ['-feature', '-HardwareDecoder'] } },
|
|
272
|
-
```
|
|
273
|
-
|
|
274
|
-
```sh
|
|
275
|
-
# this machine only: the shell, or the repo's .env (Bun loads it before kit starts)
|
|
276
|
-
KIT_EMULATOR_ARGS='-packet-streamer-endpoint default'
|
|
277
|
-
```
|
|
278
|
-
|
|
279
|
-
The config holds what the project needs on every machine, so it is committed; `KIT_EMULATOR_ARGS` holds
|
|
280
|
-
what this machine needs (a stale `netsimd` from another session) and stays out of the repo. It is split
|
|
281
|
-
on whitespace, with `'…'` and `"…"` keeping an argument that has spaces together. kit picks the AVD, so
|
|
282
|
-
`-avd` and `@name` are refused. The arguments apply to every command that boots the emulator
|
|
283
|
-
(`kit device boot android`, `kit qa android`, `kit shots android`, `kit fixture load android`); an
|
|
284
|
-
emulator that is already running keeps the ones it was started with, and kit says so. A boot that times
|
|
285
|
-
out shows the last lines of the emulator's log and where the log is.
|
|
286
|
-
|
|
287
|
-
**What gets built.** `kit app build <ios|android>` builds the debug variant (`--release` for release)
|
|
288
|
-
and prints the artifact path on stdout:
|
|
289
|
-
|
|
290
|
-
| | Android | iOS simulator |
|
|
291
|
-
| --- | --- | --- |
|
|
292
|
-
| Gradle | `<module>:assembleDebug` | `xcodebuild -scheme <scheme> -configuration Debug` for the simulator |
|
|
293
|
-
| Kotlin toolchain | `./kotlin build -m <module> -p android -v debug` | `./kotlin build -m <module> -p iosSimulatorArm64 -v debug` |
|
|
294
|
-
|
|
295
|
-
`kit build <target> --release` is still the signed store build; `kit app build` is for a device.
|
|
296
|
-
|
|
297
|
-
**Installing.** `kit app install` builds first; `--no-build` installs the newest artifact already there,
|
|
298
|
-
and `--file` installs a given `.apk`, `.app` or `.aab` (an AAB goes through `bundletool`). A physical
|
|
299
|
-
iPhone takes `--device <id> --file <path>` and installs with `devicectl`.
|
|
300
|
-
|
|
301
|
-
The app comes from `release.*` in kit.config.ts. Set `app` only when it differs, or when the repo has no
|
|
302
|
-
release block:
|
|
303
|
-
|
|
304
|
-
```ts
|
|
305
|
-
app: {
|
|
306
|
-
ios: { bundleId: 'app.example', project: 'ios/iosApp.xcodeproj', scheme: 'iosApp' },
|
|
307
|
-
android: { packageName: 'app.example', module: ':android' },
|
|
308
|
-
},
|
|
309
|
-
```
|
|
310
|
-
|
|
311
|
-
`kit doctor` adds three checks for a repo with a mobile app, all warnings: `adb`, the Android emulator
|
|
312
|
-
(emulator, `avdmanager`, a system image for this machine) and an installed iOS simulator runtime.
|
|
313
|
-
|
|
314
|
-
## Maestro: QA and screenshots
|
|
315
|
-
|
|
316
|
-
The repo writes [Maestro](https://maestro.dev) flows; kit does the rest: device, build, install,
|
|
317
|
-
status bar, fixture, the runs, and collecting the screenshots.
|
|
318
|
-
|
|
319
|
-
```sh
|
|
320
|
-
kit qa ios # build, install, load the fixture, run the smoke flows
|
|
321
|
-
kit qa android --device emulator-5554 --junit report.xml
|
|
322
|
-
kit qa ios --no-build --tags smoke,settings
|
|
323
|
-
kit shots ios # 9:41 status bar, fixture, flows, PNGs copied out
|
|
324
|
-
kit shots ipad --full # the shots-full suite
|
|
325
|
-
kit fixture load ios portland # replay app state onto the device
|
|
326
|
-
kit fixture dump android portland
|
|
327
|
-
kit maestro studio # the Maestro CLI itself
|
|
328
|
-
```
|
|
329
|
-
|
|
330
|
-
```ts
|
|
331
|
-
maestro: {
|
|
332
|
-
dir: 'apps/client/maestro', // config.yaml and the flows
|
|
333
|
-
version: '2.9.0', // kit doctor compares it; CI installs it
|
|
334
|
-
devices: { ios: 'iPhone 17 Pro Max' }, // optional: what to boot when nothing is running
|
|
335
|
-
suites: {
|
|
336
|
-
qa: { tags: ['smoke'], fixture: 'portland' },
|
|
337
|
-
shots: { tags: ['appstore'], fixture: 'portland', screenshots: 'brand/screenshots' },
|
|
338
|
-
'shots-full': { extends: 'shots', stages: [['appstore', 'appstore-full'], ['appstore-onboarding']] },
|
|
339
|
-
},
|
|
340
|
-
},
|
|
341
|
-
fixtures: {
|
|
342
|
-
dir: 'apps/client/fixtures', // one dir per fixture
|
|
343
|
-
files: [
|
|
344
|
-
{ from: 'app_database.db', ios: 'Documents/databases/', android: 'databases/', sqlite: true },
|
|
345
|
-
{ from: 'entry_photos/', ios: 'Documents/entry_photos/', android: 'files/entry_photos/' },
|
|
346
|
-
],
|
|
347
|
-
clear: { ios: ['Library/Caches'], android: ['cache', 'code_cache'] },
|
|
348
|
-
prepare: 'apps/client/fixtures/rebase.sh',
|
|
349
|
-
},
|
|
350
|
-
```
|
|
351
|
-
|
|
352
|
-
**Suites.** `kit qa` runs the `qa` suite (default: tags `smoke`), `kit shots` the `shots` suite (default:
|
|
353
|
-
tags `screenshots`, status bar pinned, PNGs to `<maestro.dir>/screenshots/<target>/`), `kit shots --full`
|
|
354
|
-
the `shots-full` suite, and `--suite <name>` any other. A suite has `tags` (one Maestro run) or `stages`
|
|
355
|
-
(one run per tag set, in order). Stages exist because Maestro's own `executionOrder` breaks under tag
|
|
356
|
-
filters: a flow that wipes app state belongs in a last stage of its own. Flows get `PLATFORM=ios|android`
|
|
357
|
-
plus the suite's `env`.
|
|
358
|
-
|
|
359
|
-
**The run.** One device is resolved first (see Devices above), then everything lands on it: the debug
|
|
360
|
-
build and install (`--no-build` drives what is installed), the 9:41 status bar when the suite asks, the
|
|
361
|
-
fixture (`--fixture <name>`, `--no-fixture`), then each stage. A failing stage stops the run and exits 1. The status bar stays pinned afterwards
|
|
362
|
-
(`kit device statusbar <target> --clear`).
|
|
363
|
-
Screenshots are the flows' `takeScreenshot` PNGs: a shot replaces the file of the same name and leaves the
|
|
364
|
-
rest. Maestro's logs stay under `<maestro.dir>/output/<target>-<suite>/`. Maestro drives simulators and
|
|
365
|
-
Android devices, not physical iPhones.
|
|
366
|
-
|
|
367
|
-
**Fixtures.** `<fixtures.dir>/<name>/` holds the files listed in `fixtures.files`; `ios` and `android`
|
|
368
|
-
are destination dirs inside the simulator's data container and the app's data dir. Loading stops the
|
|
369
|
-
app, replaces each destination (a stale file is never left over), and removes the `clear` dirs. `prepare`
|
|
370
|
-
runs on a staged copy first, with `KIT_FIXTURE`, `KIT_FIXTURE_DIR`, `KIT_PLATFORM` and `KIT_ROOT` set: the
|
|
371
|
-
place to rebase dates so an old capture reads as current. Android goes through `run-as`, so the installed
|
|
372
|
-
build must be debuggable (`kit app install android` installs one); a rooted adb is the fallback for load. `kit fixture dump` captures the same
|
|
373
|
-
files back, checkpoints SQLite WALs, and replaces the whole fixture dir only when the capture succeeded: files not listed in `fixtures.files`
|
|
374
|
-
do not survive a dump.
|
|
375
|
-
|
|
376
|
-
`kit lint` also runs `maestro check-syntax` over the flows, and `kit doctor` checks the Maestro version
|
|
377
|
-
against `maestro.version` and that Java 17+ is there. `kit add maestro` writes a starter flows directory.
|
|
378
|
-
|
|
379
|
-
### Maestro in CI
|
|
380
|
-
|
|
381
|
-
`.github/workflows/mobile-qa.yml` is a reusable workflow that runs `kit qa`: an iOS simulator on a macOS
|
|
382
|
-
runner and an Android emulator on a Linux runner with KVM, one job each (an Android emulator cannot run on
|
|
383
|
-
an arm64 macOS runner). Pin it by SHA like `mobile-distribute.yml`:
|
|
384
|
-
|
|
385
|
-
```yaml
|
|
386
|
-
on:
|
|
387
|
-
pull_request:
|
|
388
|
-
jobs:
|
|
389
|
-
qa:
|
|
390
|
-
uses: jordond/kit/.github/workflows/mobile-qa.yml@<sha> # vX.Y.Z
|
|
391
|
-
with:
|
|
392
|
-
platform: both # ios | android | both
|
|
393
|
-
suite: '' # a maestro.suites entry; empty = qa
|
|
394
|
-
android-api: '36'
|
|
395
|
-
# API 37 images need these; same as devices.android.emulatorArgs in kit.config.ts
|
|
396
|
-
# emulator-args: -feature -HardwareDecoder
|
|
397
|
-
```
|
|
398
|
-
|
|
399
|
-
| Input | Default | Meaning |
|
|
400
|
-
| --- | --- | --- |
|
|
401
|
-
| `platform` | `both` | `ios`, `android` or `both` |
|
|
402
|
-
| `suite` | empty | `kit qa --suite`; empty runs the `qa` suite |
|
|
403
|
-
| `android-api` | `36` | API level of the Google Play system image the emulator uses |
|
|
404
|
-
| `ios-device` | empty | Simulator name to boot first. Empty skips the explicit boot, so `kit qa ios` uses `maestro.devices.ios`, else the newest, largest iPhone |
|
|
405
|
-
| `emulator-args` | empty | Extra emulator arguments (`KIT_EMULATOR_ARGS`), after `devices.android.emulatorArgs` |
|
|
406
|
-
| `device-timeout-ms` | `600000` | How long kit waits for a device to boot (`KIT_DEVICE_TIMEOUT_MS`) |
|
|
407
|
-
| `maestro-version` | empty | Empty reads `maestro.version` from the config |
|
|
408
|
-
| `bun-version`, `java-version` | `1.3.14`, `21` | Tool versions; Java serves Gradle and Maestro (17 or newer) |
|
|
409
|
-
| `ios-runner`, `android-runner` | `macos-latest`, `ubuntu-latest` | Runner labels |
|
|
410
|
-
| `artifact-name`, `timeout-minutes` | `qa`, `60` | Artifact prefix, job timeout. Artifacts are `<prefix>-<suite>-<platform>` (`qa-qa-ios`, `qa-nightly-android`), so calls with different suites do not collide |
|
|
411
|
-
|
|
412
|
-
Each job installs the repo's dependencies and Java and Gradle, installs Maestro at the pinned version, then
|
|
413
|
-
runs `kit qa`, which boots the device when none is running. On Linux the workflow installs only the chosen
|
|
414
|
-
API's Google Play system image and kit creates the AVD on it (fixtures go through `run-as`, never `adb root`);
|
|
415
|
-
`maestro.devices.android` names an AVD instead. Both jobs upload the Maestro run directories (`maestro.output`,
|
|
416
|
-
default `<maestro.dir>/output`) and a JUnit report as an artifact, pass or fail; the Android artifact also holds
|
|
417
|
-
the emulator log, which is what explains a boot that hung. The repo needs a `maestro` block in `kit.config.ts` and an app kit can build; the workflow takes no secrets, so a
|
|
418
|
-
build that needs some is not covered yet. It has not been run on a hosted runner.
|
|
419
|
-
|
|
420
|
-
### Store screenshots
|
|
421
|
-
|
|
422
|
-
`kit shots export` turns the raw shots into the images the stores take: each slide of a saved project
|
|
423
|
-
(background, headline, device frame around the raw shot) is drawn by headless Chrome at the store's
|
|
424
|
-
exact size and written into the store listing dirs, ready for `kit release metadata push --screenshots`.
|
|
425
|
-
|
|
426
|
-
```sh
|
|
427
|
-
kit shots ios && kit shots ipad && kit shots android # capture the raw shots
|
|
428
|
-
kit shots export # compose them, for both stores and every locale
|
|
429
|
-
kit shots export --store apple --locale en-US
|
|
430
|
-
kit shots export --out build/store-shots --dry-run --json
|
|
431
|
-
kit release metadata push ios --only-screenshots # upload the images, leave the text (see Store listing)
|
|
432
|
-
```
|
|
433
|
-
|
|
434
|
-
```ts
|
|
435
|
-
shots: {
|
|
436
|
-
project: 'brand/studio.json', // the saved project: slides, text, frames
|
|
437
|
-
raw: 'brand/screenshots', // optional: default the shots suite's screenshots dir
|
|
438
|
-
fonts: [{ family: 'Nunito', file: 'brand/fonts/nunito.woff2', weight: '400 800' }],
|
|
439
|
-
brand: { mark: 'brand/logo.svg', wordmark: 'brewd', color: '#2c1e14', font: 'Nunito' },
|
|
440
|
-
sets: { ios: 'iphone-6.9' }, // optional: iphone-6.9 | iphone-6.5 | iphone-6.3
|
|
441
|
-
presets: { sand: { background: { primaryColor: '#f4ecd8' } } }, // optional: style presets for the studio
|
|
442
|
-
palette: ['#2c1e14', '#f4ecd8'], // optional: swatches beside the studio's colour controls
|
|
443
|
-
},
|
|
444
|
-
```
|
|
445
|
-
|
|
446
|
-
**Artwork pages.** `kit shots pages [name...]` renders the HTML pages in `shots.pages` (the App Store
|
|
447
|
-
product page header and search results artwork, for example) with the same headless Chrome, at the pixel
|
|
448
|
-
size you declare and with the alpha channel flattened, which App Store Connect requires. It writes
|
|
449
|
-
`build/shots-pages/<name>-<width>x<height>.png` unless a page sets `out` or you pass `--out <dir>`. `--dry-run`
|
|
450
|
-
lists the files without starting Chrome; `--json` prints them on stdout. A page sets `scale` (default 2, so
|
|
451
|
-
a 3840x1646 page is laid out at 1920x823), and `background` for the colour under transparent areas. The repo
|
|
452
|
-
root is served locally (the page can read any non-dot file under it), so a page's relative assets load, and `shots.fonts` is available to every page. With
|
|
453
|
-
only `pages` set, `shots.project` may be left out. See [docs/CONFIG.md](docs/CONFIG.md#artwork-pages).
|
|
454
|
-
|
|
455
|
-
```sh
|
|
456
|
-
kit shots pages # every page
|
|
457
|
-
kit shots pages header --out build/artwork
|
|
458
|
-
```
|
|
459
|
-
|
|
460
|
-
```ts
|
|
461
|
-
shots: {
|
|
462
|
-
pages: [{ name: 'header', file: 'brand/creative/header.html', width: 3840, height: 1646 }],
|
|
463
|
-
},
|
|
464
|
-
```
|
|
465
|
-
|
|
466
|
-
**The project file.** A version 1 project as the screenshot editor saves it: `slides[]`, each with a
|
|
467
|
-
`name`, an `order`, the `sourceFile` of its raw shot (`home.png`), its text, device and background. kit
|
|
468
|
-
ignores the editor's `imageSrc` and `dimensionId`. Every slide is exported for every target: the raw shot
|
|
469
|
-
is `<raw>/<target>/<locale>/<sourceFile>` when that exists, else `<raw>/<target>/<sourceFile>`, and a
|
|
470
|
-
slide framed in an iPhone gets the iPad or Pixel frame on the other targets. An optional `locales` block
|
|
471
|
-
replaces the text per locale and slide id; a field left out keeps the slide's own text, and `fr-CA`
|
|
472
|
-
falls back to another `fr` entry before that:
|
|
473
|
-
|
|
474
|
-
```json
|
|
475
|
-
"locales": { "fr-FR": { "slide-1": { "headline": "…", "subheadline": "…", "badge": "…" } } }
|
|
476
|
-
```
|
|
477
|
-
|
|
478
|
-
**Version 2 and `kit shots migrate`.** A version 2 project (`"version": 2`) holds the rules once: a
|
|
479
|
-
`style`, per-target `targets`, and slides of just `shot`, `headline` and what differs. Slide ids come from
|
|
480
|
-
the shot name (`01-you.png` is `you`), and `locales` is keyed by them. Version 1 files keep working.
|
|
481
|
-
`kit shots migrate` prints the version 2 file; `kit shots migrate --write` replaces `shots.project` once it
|
|
482
|
-
has proved that every target and locale draws the same slides (`--dry-run` only proves). The merge order,
|
|
483
|
-
derived fields and the file's shape are in [docs/CONFIG.md](docs/CONFIG.md#the-project-file).
|
|
484
|
-
|
|
485
|
-
**`kit shots studio`** edits the version 2 project in a browser, previewing with the same renderer the
|
|
486
|
-
export uses. It serves on `127.0.0.1` under a random path token and prints the URL (`--port` fixes the
|
|
487
|
-
port, `--no-open` leaves the browser alone). A version 1 project opens read-only with the migrate command
|
|
488
|
-
to run. Every edit is written at a scope: all slides, one target, one slide, or one slide on one target;
|
|
489
|
-
each control shows where its value comes from and can reset it, and a value equal to what the layers below
|
|
490
|
-
give removes the override, so the file stays small. Changes autosave (Cmd/Ctrl+S saves now, Cmd/Ctrl+Z
|
|
491
|
-
undoes); if the file changed on disk the editor asks whether to reload or overwrite. Slides are added from
|
|
492
|
-
the raw shots (a PNG can be uploaded into the raw dir), reordered by dragging and deleted, undoably. With
|
|
493
|
-
no project file it offers one slide per raw shot and writes nothing until you confirm.
|
|
494
|
-
|
|
495
|
-
In the studio, a slide whose text overflows (a headline past 3 lines, text off the canvas, or text that
|
|
496
|
-
pushes the device far down) gets a warning on the filmstrip and its target column, for any locale. Drag the
|
|
497
|
-
device on a canvas to place it, scroll or pinch over it to scale it, or nudge it with the arrow keys; the
|
|
498
|
-
expand button on a column shows that target at export size. The header's Export button runs `kit shots
|
|
499
|
-
export` for the stores and locale you pick (saving first) and shows what was written. The Presets group
|
|
500
|
-
applies a built-in look (`light`, `dark`, `bold-colour`) or one from `shots.presets` in one undoable edit,
|
|
501
|
-
and `shots.palette` puts your brand colours beside every colour control. See
|
|
502
|
-
[docs/CONFIG.md](docs/CONFIG.md#shots).
|
|
503
|
-
|
|
504
|
-
**Fonts and brand.** Every font family a slide names has to be in `shots.fonts` (the CSS generics
|
|
505
|
-
`sans-serif`, `serif`, `monospace` and `system-ui` aside): Chrome would draw an unknown family in a
|
|
506
|
-
fallback font without complaint, so export stops first (exit 3). `brand` is the lockup drawn on slides
|
|
507
|
-
that show it: the mark, and the wordmark beside it. The wordmark and a slide's badge are drawn in
|
|
508
|
-
`brand.font`, or in the slide's headline family when there is none, so that family has to be declared
|
|
509
|
-
even on a slide whose headline is empty.
|
|
510
|
-
|
|
511
|
-
**Output.** Locales are, per store, the locale dirs already in that store's metadata dir (`en-US` when
|
|
512
|
-
there are none yet); `--locale` narrows them. In the iOS metadata dir, the dirs deliver does not read
|
|
513
|
-
as a locale are left out (`default`, `review_information`, `trade_representative_contact_information`,
|
|
514
|
-
`app_clip_review_information`, `android`, `fonts`, `appleTV`, `iMessage`), and in either store so is a
|
|
515
|
-
dir whose name cannot be a locale (`Old Backup`).
|
|
516
|
-
|
|
517
|
-
| Store | Target | Size | Written to |
|
|
518
|
-
| --- | --- | --- | --- |
|
|
519
|
-
| apple | ios | 1320x2868 (`iphone-6.9`) | `<release.ios.metadata>/../screenshots/<locale>/NN_iphone-6.9_<slug>.png` |
|
|
520
|
-
| apple | ipad | 2064x2752 (`ipad-13`) | same dir, `NN_ipad-13_<slug>.png` |
|
|
521
|
-
| google | android | 1440x2560 (`phone`) | `<release.android.metadata>/<locale>/images/phoneScreenshots/NN_<slug>.png` |
|
|
522
|
-
|
|
523
|
-
`NN` is the slide's position and `<slug>` its name. Each dir gets a `.kit-shots.json` listing what
|
|
524
|
-
export wrote. The next export replaces those files and removes the ones it no longer writes; an image
|
|
525
|
-
in the same set that it did not write is in the way (exit 4) until it is moved or `--force` replaces it.
|
|
526
|
-
So is a directory or a dangling link with an image name there: the uploader would take it and fail.
|
|
527
|
-
Play's icon, feature graphic and other screenshot types are never touched. The PNGs have no alpha
|
|
528
|
-
channel, which App Store Connect requires.
|
|
529
|
-
|
|
530
|
-
| Flag | Meaning |
|
|
531
|
-
| --- | --- |
|
|
532
|
-
| `--store apple\|google\|both` | Default `both`. A store with no `release.<platform>.metadata` is a usage error unless `--out` is given |
|
|
533
|
-
| `--locale <a,b>` | Only these locales |
|
|
534
|
-
| `--out <dir>` | Write `<dir>/apple/<locale>/…` and `<dir>/google/<locale>/images/phoneScreenshots/…` instead of the store dirs |
|
|
535
|
-
| `--allow-missing` | Skip a slide whose raw shot is absent, instead of stopping (exit 4) |
|
|
536
|
-
| `--force` | Replace images in an exported set that kit did not write |
|
|
537
|
-
| `--dry-run` | Print what would be written and removed; Chrome is not started and nothing changes |
|
|
538
|
-
| `--json` | `{ dryRun, stores, written: [{ store, target, set, locale, slide, file, width, height }], removed, skipped }` |
|
|
539
|
-
|
|
540
|
-
`--store`, `--locale` and `--out` given an empty or whitespace-only value (`--out "$OUT"` with `OUT`
|
|
541
|
-
unset) are a usage error (exit 2), not the default.
|
|
542
|
-
|
|
543
|
-
Nothing is written unless every image came back at its exact size: a Chrome that exits, a page error or
|
|
544
|
-
five minutes without a new image is exit 1 with the store dirs as they were. Every rendered PNG is held
|
|
545
|
-
in memory until all of them are back, so memory grows with slides x locales (a few MB each); `--store`
|
|
546
|
-
and `--locale` split a large export into smaller runs. Before Chrome starts, export checks
|
|
547
|
-
that the raw shots, font and brand files are there, that Chrome is, and that no set has more slides
|
|
548
|
-
than its store keeps (10 on the App Store, 8 on Play); each of those is exit 4. Chrome is the installed
|
|
549
|
-
Google Chrome or Chromium (112 or newer), or the binary `KIT_CHROME` names.
|
|
550
|
-
|
|
551
|
-
## Repo commands
|
|
552
|
-
|
|
553
|
-
`.kit/commands/<path>.ts` adds `kit <path>`; the file path is the command path. Keep heavy imports
|
|
554
|
-
inside `run` so help stays fast.
|
|
555
|
-
|
|
556
|
-
### Wrapping a built-in
|
|
557
|
-
|
|
558
|
-
Set `override: true` to replace a built-in with the same path. The override can still run the
|
|
559
|
-
built-in through `ctx.builtin(path, options)`, so it only adds what the repo needs.
|
|
560
|
-
|
|
561
|
-
`ctx.builtin` options (each defaults to the caller's own):
|
|
562
|
-
|
|
563
|
-
| Option | Effect |
|
|
564
|
-
| ------------- | ----------------------------------------------------------------------- |
|
|
565
|
-
| `mute` | Regex; matching child-output lines never reach the tree, failure output or `--json` |
|
|
566
|
-
| `args` | Flag values the built-in sees |
|
|
567
|
-
| `positionals` | Targets the built-in sees (`kit test api` → `['api']`) |
|
|
568
|
-
| `rest` | Arguments after `--` |
|
|
569
|
-
|
|
570
|
-
Example: brewd's iOS test link pulls in RevenueCat's prebuilt static libraries (`purchases-kmp`), which
|
|
571
|
-
were built with `-gmodules` on RevenueCat's CI. ld warns about each one's missing module cache, about
|
|
572
|
-
74 times per run, and has no switch to silence just those. Muting them on RevenueCat's build path
|
|
573
|
-
keeps every other linker warning:
|
|
574
|
-
|
|
575
|
-
```ts
|
|
576
|
-
// .kit/commands/test.ts
|
|
577
|
-
import { defineCommand } from '@jordond/kit'
|
|
578
|
-
|
|
579
|
-
/** ld: "… /Users/distiller/project/kn-core/… was built with -gmodules …" from purchases-kmp's static libs. */
|
|
580
|
-
const REVENUECAT_MODULE_CACHE_NOISE = /\/Users\/distiller\/project\/kn-(core|ui)\/|built with -gmodules/
|
|
581
|
-
|
|
582
|
-
export default defineCommand({
|
|
583
|
-
description: 'Run the test suites',
|
|
584
|
-
override: true,
|
|
585
|
-
async run(ctx) {
|
|
586
|
-
await ctx.builtin('test', { mute: REVENUECAT_MODULE_CACHE_NOISE })
|
|
587
|
-
},
|
|
588
|
-
})
|
|
589
|
-
```
|
|
590
|
-
|
|
591
|
-
`kit test`, `kit test client` and `kit test --json` all keep working; only the noise is gone.
|
|
592
|
-
|
|
593
|
-
## Doctor
|
|
594
|
-
|
|
595
|
-
`kit doctor` checks the tools the config needs. Two checks only warn, because they are per-machine setup:
|
|
596
|
-
a repo with `mise.toml` warns when mise isn't installed or a pinned version differs, and a repo with
|
|
597
|
-
`lefthook.yml` warns when lefthook isn't installed or `lefthook install` hasn't been run in the clone.
|
|
598
|
-
|
|
599
|
-
When the config has a `shots` block, `kit doctor` also checks for Chrome, which `kit shots export` and `kit shots pages` use to render store artwork. It warns if Chrome or Chromium is missing or older than 112; install Google Chrome or set `KIT_CHROME` to a Chrome or Chromium binary.
|
|
600
|
-
|
|
601
|
-
```sh
|
|
602
|
-
kit doctor --fix # list the fixes, confirm once, apply, check again
|
|
603
|
-
kit doctor --fix --yes # no question (needed without a terminal)
|
|
604
|
-
kit doctor --fix --dry-run # list them only
|
|
605
|
-
```
|
|
606
|
-
|
|
607
|
-
`--fix` repairs what is safe and local, runs the touched checks again, then reports (and exits on)
|
|
608
|
-
the state after the fixes. A fix is "fixed" only when its check passes afterwards: a command that ran
|
|
609
|
-
and left the check failing (tools `mise install` put somewhere this shell does not look yet) is
|
|
610
|
-
reported as applied, with the next step.
|
|
611
|
-
|
|
612
|
-
| Check | Fix |
|
|
613
|
-
| --- | --- |
|
|
614
|
-
| lefthook hook not installed | `lefthook install` |
|
|
615
|
-
| mise tool missing or drifted | `mise install` |
|
|
616
|
-
| wrangler not installed | the worker's install: the package manager of the nearest lockfile above the worker dir, run where that lockfile is |
|
|
617
|
-
| iOS / Android version drift | writes the TOML version to the xcconfig's `MARKETING_VERSION` / the module.yaml's `versionName` |
|
|
618
|
-
| Kotlin toolchain wrapper not executable | `chmod +x` |
|
|
619
|
-
| workflow pins behind the npm pin | moves them to that release's tag commit, as `kit upgrade` does; skipped with a note when the tag cannot be resolved (offline) |
|
|
620
|
-
|
|
621
|
-
Xcode, the JDK, the Android SDK, logins, `.env` values and secrets are never fixed: those checks keep
|
|
622
|
-
their hint. Plain `kit doctor` ends with `N fixable with kit doctor --fix` when there is something to
|
|
623
|
-
apply, and `--json` adds `fixes: [{ id, description, applied, ok, error?, hint? }]`, where `ok` is whether
|
|
624
|
-
the check passes after the fix.
|
|
625
|
-
|
|
626
|
-
## Changelog
|
|
627
|
-
|
|
628
|
-
```sh
|
|
629
|
-
kit changelog # Markdown since the last release tag
|
|
630
|
-
kit changelog --platform ios # since the last ios/v* tag
|
|
631
|
-
kit changelog --from v0.5.0 --to v0.6.0 --json
|
|
632
|
-
kit changelog --platform android --write # add a section to CHANGELOG.md
|
|
633
|
-
kit changelog --write docs/CHANGES.md
|
|
634
|
-
```
|
|
635
|
-
|
|
636
|
-
Groups the Conventional Commits in the range into Breaking (`!` or a `BREAKING CHANGE:` footer),
|
|
637
|
-
Features, Fixes, Performance and Other. `chore(release)` and merge commits are always left out;
|
|
638
|
-
`chore`, `test`, `ci` and `style` too unless `--all` is given. The range starts at the newest release
|
|
639
|
-
tag reachable from `--to` (`<platform>/v*` with `--platform`, any `…v<version>` tag without); with no
|
|
640
|
-
tag it is the whole history. `--to <tag>` lists that release: the range starts at the tag before it.
|
|
641
|
-
|
|
642
|
-
`--write` puts a `## <version> (<date>)` section above the newest one in `CHANGELOG.md` (or the file
|
|
643
|
-
named after it), creating the file when needed. The version is the `--to` tag's, else the platform's
|
|
644
|
-
version in the catalog TOML, else the root `package.json` version, else `Unreleased`; with `--platform`
|
|
645
|
-
the heading is `## ios 1.4.0 (…)`. A version that already has a section is not added again; the
|
|
646
|
-
`Unreleased` section is rewritten in place on each run, so new commits keep landing in it.
|
|
647
|
-
|
|
648
|
-
In a shallow clone with no release tag in it (CI's default checkout) the range would be whatever was
|
|
649
|
-
fetched: `kit changelog` warns, and `--write` refuses (exit 4) until the history is there
|
|
650
|
-
(`git fetch --unshallow --tags`, or `fetch-depth: 0`). Any other git failure (a ref that does not
|
|
651
|
-
exist, not a repository) is an error, never an empty changelog.
|
|
652
|
-
`--json` prints `{ from, to, sections: [{ title, commits }] }`.
|
|
653
|
-
|
|
654
|
-
## Kotlin toolchain
|
|
655
|
-
|
|
656
|
-
Apps built with the [JetBrains Kotlin Toolchain](https://kotlin-toolchain.org/latest/) (formerly Amper)
|
|
657
|
-
have a `kotlin` wrapper, `project.yaml` and one `module.yaml` per module instead of Gradle.
|
|
658
|
-
[`kit init --template toolchain`](#new-repos) sets all of this up. By hand: install kit in
|
|
659
|
-
[`.kit/`](#install-dir-the-root-or-kit), set `toolchain.root` in place of `gradle` (they are exclusive)
|
|
660
|
-
and use the `kotlin` target kind:
|
|
661
|
-
|
|
662
|
-
```ts
|
|
663
62
|
export default defineConfig({
|
|
664
|
-
name: '
|
|
665
|
-
|
|
666
|
-
versions: { file: 'libs.versions.toml', keys: { ios: 'app-ios-version', android: 'app-android-version' } },
|
|
63
|
+
name: 'my-app',
|
|
64
|
+
gradle: { root: 'apps/client' },
|
|
667
65
|
targets: {
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
android: { packageName: 'app.bekindrewind', module: 'androidApp' },
|
|
672
|
-
ios: { bundleIds: ['app.bekindrewind'], project: 'iosApp/module.xcodeproj', scheme: 'app', output: 'App.ipa' },
|
|
673
|
-
},
|
|
674
|
-
})
|
|
675
|
-
```
|
|
676
|
-
|
|
677
|
-
| | Gradle | Kotlin toolchain |
|
|
678
|
-
| --- | --- | --- |
|
|
679
|
-
| `kit test` / `kit build` | `./gradlew test` / `build` | `./kotlin test` / `build` |
|
|
680
|
-
| `kit lint` / `kit format` | `spotlessCheck` / `spotlessApply` | `ktlint` / `ktlint -F` over `**/*.kt` and `**/*.kts`, skipping `build/` |
|
|
681
|
-
| `kit build <t> --release` | `<module>:bundleRelease` | `./kotlin package -m <module>` (AAB only) |
|
|
682
|
-
| passthrough | `kit gradle …` | `kit kotlin …` |
|
|
683
|
-
| `kit init` | `gradle.init` tasks | `toolchain.init` (default `./kotlin --version`, which downloads the toolchain) |
|
|
684
|
-
| `kit doctor` | java, Android SDK, catalog keys | the wrapper and its pinned `kotlin_cli_version`, and ktlint; no java or SDK needed |
|
|
685
|
-
|
|
686
|
-
The toolchain has no linter, so `kotlin` targets use the standalone `ktlint` binary: pin it in `mise.toml`
|
|
687
|
-
(`ktlint = "1.8.0"`) and style it with `.editorconfig`. `kit lint --staged --fix` passes only the staged
|
|
688
|
-
Kotlin files. Override with `lint:` / `format:` on the target, or `false` to turn one off.
|
|
689
|
-
|
|
690
|
-
`kit release android` runs `./kotlin package -m <release.android.module>`. The toolchain takes no build
|
|
691
|
-
properties, so kit writes `versionName`, `versionCode` and `signing` (a `keystore.properties` in kit's
|
|
692
|
-
0600 temp dir, built from the `ANDROID_KEYSTORE_*` secrets) into the module's `module.yaml` for the build and
|
|
693
|
-
restores the file afterwards, also on failure or Ctrl-C. `release.android.gates` tasks are `./kotlin`
|
|
694
|
-
arguments (`test -m shared`). `kit version bump` also rewrites `settings.android.versionName` in the app's
|
|
695
|
-
`module.yaml`, and releases and `kit doctor` fail if it differs from the TOML. There is no `BuildConstants.IS_INTERNAL`:
|
|
696
|
-
it comes from kit's Gradle plugin.
|
|
697
|
-
|
|
698
|
-
`kit release ios` is the same as for Gradle apps: the Xcode project's "Build Kotlin" phase runs the toolchain.
|
|
699
|
-
Give the Release configuration manual signing with the match profiles, a `DEVELOPMENT_TEAM`, and
|
|
700
|
-
`MARKETING_VERSION` in `release.ios.xcconfig`.
|
|
701
|
-
|
|
702
|
-
## Env
|
|
703
|
-
|
|
704
|
-
One `.env` per repo; `env.schema` (a zod object, usually `.kit/env.ts`) declares each key, and
|
|
705
|
-
`env.workerSecrets` / `env.githubSecrets` say which remotes hold it. Keys are secret unless marked
|
|
706
|
-
`.meta({ secret: false })`. Values never reach output: only names and statuses are printed.
|
|
707
|
-
|
|
708
|
-
| Command | Does |
|
|
709
|
-
| --- | --- |
|
|
710
|
-
| `kit env push` | Every worker in `env.workerSecrets` (`wrangler secret put`) and `env.githubSecrets` (`gh secret set`); lists names, confirms (`--yes` skips), `--dry-run` only lists |
|
|
711
|
-
| `kit env push --workers` | Every worker, GitHub skipped. Exclusive with `--all`, `--target` and `--github` |
|
|
712
|
-
| `kit env push --target <t>` / `--github` | One worker / GitHub only; both flags together push that worker and GitHub |
|
|
713
|
-
| `kit env rotate <KEY...> [--push]` | New generated value in `.env`, outputs re-rendered as `kit env sync` does, then prints where the key lives and the `kit env push …` to run; `--push` runs it |
|
|
714
|
-
|
|
715
|
-
`kit env rotate` only takes keys whose schema says how to make them:
|
|
716
|
-
|
|
717
|
-
```ts
|
|
718
|
-
INTERNAL_API_SECRET: z.string().min(32).meta({ generate: 'hex' }), // 32 random bytes, hex
|
|
719
|
-
SESSION_KEY: z.string().meta({ generate: 'base64url', length: 48 }), // length is in bytes
|
|
720
|
-
INSTALL_ID: z.uuid().meta({ generate: 'uuid' }),
|
|
721
|
-
```
|
|
722
|
-
|
|
723
|
-
- The new value is checked against the key's own rule before anything is written; only that line of
|
|
724
|
-
`.env` changes (comments, order, quotes and line endings stay), and a key `.env` lacks is added.
|
|
725
|
-
- kit reads `.env` the way dotenv and Bun do: on an unquoted value ` #` starts a comment
|
|
726
|
-
(`KEY=value # note` is `value`, `KEY= # note` is empty), a `#` inside `'…'`, `"…"` or backticks is
|
|
727
|
-
part of the value, `"…"` turns `\n` / `\r` into line breaks, and `\$` is a literal `$`. kit itself
|
|
728
|
-
never expands `$NAME`, but Bun (which loads `.env` before kit starts) does, so write a literal
|
|
729
|
-
dollar as `\$`.
|
|
730
|
-
- When kit writes a value (`env init`, `env rotate`, rendered outputs) it quotes one that holds a
|
|
731
|
-
`#`, has spaces at either end or starts with a quote, writes a multi-line value as `"…\n…"`, and in
|
|
732
|
-
`.env` writes `$` as `\$` (`.dev.vars` keeps `$` raw: wrangler does not expand there). It refuses
|
|
733
|
-
(exit 3, naming the key) a value no reader would get back intact: one that needs quotes and holds
|
|
734
|
-
`'`, `"` and a backtick or ends in a backslash, a multi-line value holding `"` or a literal `\n`,
|
|
735
|
-
and in `.env` one ending in `\$`. Base64-encode such a value.
|
|
736
|
-
- `kit env check`, `kit env push` and `kit doctor` warn about hand-written `.env` lines that Bun, dotenv
|
|
737
|
-
and kit read differently (names and line numbers only): a `#` inside an unquoted value, an unescaped
|
|
738
|
-
`$`, a quote that does not close on its line. What runs locally and what `kit env push` sends could
|
|
739
|
-
differ there; the warning says how to write the line. `kit env check --json` lists them under
|
|
740
|
-
`ambiguous`.
|
|
741
|
-
- It confirms first, since the old value stops working once the new one is pushed (`--yes` skips).
|
|
742
|
-
`--dry-run` writes nothing and lists what would rotate and where it would be pushed.
|
|
743
|
-
- `--push` pushes every secret of the remotes that hold the key. The remotes are listed first (a
|
|
744
|
-
remote kit cannot list stops the run, with `--yes` too) and one confirm covers rotating and pushing,
|
|
745
|
-
so nothing is written until the push can go ahead.
|
|
746
|
-
- `--json` reports `{ rotated: [{ key, destinations }], pushed }`, never a value. When `.env` holds
|
|
747
|
-
a new value that is not on its remotes yet, `pending` is the command that finishes the job; the
|
|
748
|
-
same note goes to stderr.
|
|
749
|
-
- A key without `generate` belongs to a provider: rotate it there, update `.env`, then `kit env push`.
|
|
750
|
-
|
|
751
|
-
## Releases
|
|
752
|
-
|
|
753
|
-
kit owns the release flow; one shared `fastlane/Fastfile` (shipped in this package) runs the lanes.
|
|
754
|
-
Each app keeps a one-line Fastfile in its fastlane dir (`release.fastlaneDir`, default `gradle.root`,
|
|
755
|
-
then the repo root):
|
|
756
|
-
|
|
757
|
-
```ruby
|
|
758
|
-
import(ENV.fetch("KIT_FASTFILE") { UI.user_error!("Run fastlane via `kit fastlane ...` or `kit release ...`") })
|
|
759
|
-
```
|
|
760
|
-
|
|
761
|
-
No Appfile, Matchfile, Pluginfile or app Gemfile: inputs reach the lanes as `KIT_*` env vars, and
|
|
762
|
-
`kit init` installs kit's bundle (frozen, in `~/.cache/kit/bundle`).
|
|
763
|
-
|
|
764
|
-
| Command | Does |
|
|
765
|
-
| --- | --- |
|
|
766
|
-
| `kit version show` | Version names from `versions.file` and the last release tags |
|
|
767
|
-
| `kit version bump <patch\|minor\|major> [--platform ios\|android\|all\|<service>]` | Edit the TOML value, commit `chore(release): …`, push (`--no-push`, `--pr`) |
|
|
768
|
-
| `kit release ios\|android --track internal\|alpha\|beta\|prod` | Preflight → next build number from the store → confirm → build → upload → tag `<platform>/v<version>+<build>` |
|
|
769
|
-
| `kit release <service>` | `release.services.<name>`: build, deploy, tag `<name>/v<version>`. A service cannot be named after a release command (`ios`, `android`, `certs`, `status`, `promote`, `rollout`, `metadata`, `rollback`) |
|
|
770
|
-
| `kit release rollback <service> [--to <version-id>]` | Worker services only: `wrangler rollback`; tags stay put (see [Cloudflare workers](#cloudflare-workers)) |
|
|
771
|
-
| `kit release certs [--add]` | match `appstore`, readonly; `--add` creates only what this app is missing (never nuke) |
|
|
772
|
-
| `kit fastlane …` | fastlane with kit's env and the ASC/Play key files |
|
|
773
|
-
| `kit release status [ios\|android]` | The TOML version and the latest build per store track (`--json`) |
|
|
774
|
-
| `kit release promote <ios\|android> --from alpha\|beta --to beta\|prod` | Move a build the store already has to a later track: no rebuild, no upload |
|
|
775
|
-
| `kit release rollout <ios\|android> --percent <1-100>\|--halt\|--resume\|--complete` | Change the production rollout of the released build |
|
|
776
|
-
|
|
777
|
-
- `kit release status`: Android lists every Play track (version codes and release names); iOS lists
|
|
778
|
-
`testflight` (one build list for every group) and `prod` (the live App Store build and its phased
|
|
779
|
-
release state; `unknown` with a warning and `phasedError` when it could not be read, which is not
|
|
780
|
-
the same as having none). A track the store will not answer for is `unknown` with a warning; the command fails
|
|
781
|
-
only when a platform has no readable track.
|
|
782
|
-
- `kit release promote`: `--build` picks the build number / version code (default: the latest on the
|
|
783
|
-
source track). It runs the branch check, the store credentials, `release.preflight` and the same
|
|
784
|
-
confirmation as a release to `--to`. A promotion never tags: a tag names a build, not a track
|
|
785
|
-
(release notes are computed from the last `<platform>/v*` tag), so the tag from the build's first
|
|
786
|
-
release stands. When `<platform>/v<version>+<build>` is missing, kit warns and prints the `git tag`
|
|
787
|
-
command to run on the commit that built it (`tagExisted` and `tagCommand` in `--json`); HEAD is not
|
|
788
|
-
that commit.
|
|
789
|
-
`--dry-run` prints the plan and runs nothing.
|
|
790
|
-
- **Internal builds are never promoted** (`--from internal` exits 2): they are compiled with
|
|
791
|
-
`KIT_INTERNAL` set, so a later track needs `kit release <platform> --track <track>`.
|
|
792
|
-
- Android: `--rollout` (prod, default `release.android.prodRollout` or 0.1) and `--draft` work as in
|
|
793
|
-
`kit release android`; `--notes` sets the changelog except on production.
|
|
794
|
-
- iOS: `--app-version <x.y.z>` promotes a build from before a version bump (default: the TOML version);
|
|
795
|
-
it is the lane's app version and the tag's version. On Android it is a usage error (the version
|
|
796
|
-
code alone finds the release).
|
|
797
|
-
- iOS: the build must be in the source tester group (`release.ios.testflightGroups.<from>`, default
|
|
798
|
-
the track name). A build that never reached it, an internal build included, is refused with
|
|
799
|
-
exit 1, `--build` or not; so is a destination group the app does not have.
|
|
800
|
-
- iOS: the source group must receive its builds explicitly, as `kit release ios --track alpha|beta`
|
|
801
|
-
distributes them. A group with automatic distribution (App Store Connect's default for an
|
|
802
|
-
internal group) holds every upload, internal builds included, and kit cannot tell them apart
|
|
803
|
-
there: promoting from it is refused. Turn automatic distribution off for that group, or point
|
|
804
|
-
`release.ios.testflightGroups` at one without it.
|
|
805
|
-
- iOS: `alpha → beta` distributes the build to `release.ios.testflightGroups.beta`;
|
|
806
|
-
`→ prod` submits it for App Store review (phased, manual release) and requires `--notes`.
|
|
807
|
-
- `kit release rollout` takes exactly one action. `--percent`, `--resume` and `--complete` widen
|
|
808
|
-
production exposure, so they use the `prod` confirmation: type `prod` locally (`--yes` doesn't skip),
|
|
809
|
-
the `production` environment's reviewers in CI. `--halt` is the emergency brake: a prompt that
|
|
810
|
-
`--yes` skips. `--dry-run` runs nothing.
|
|
811
|
-
Android changes the production staged rollout; `--percent 100` completes it, and a halted rollout
|
|
812
|
-
must be resumed before its percentage changes. Only a rollout in progress (or, for `--resume`, a
|
|
813
|
-
halted one) is touched, never a draft; `--build <version code>` names the release when the track
|
|
814
|
-
holds more than one, and the result names the version code that changed. A release halted at 100%
|
|
815
|
-
has no staged rollout to resume: `--resume` says so, use `--complete`. The App Store has no percentage (a phased release
|
|
816
|
-
follows Apple's 7-day schedule), so `--percent` is a usage error on iOS: `--halt` pauses the phased
|
|
817
|
-
release, `--resume` and `--complete` do what they say.
|
|
818
|
-
- Build numbers are never committed: `max(store) + 1`, or `--build` / `--code`.
|
|
819
|
-
- iOS: set `release.ios.xcconfig` to the xcconfig holding `MARKETING_VERSION` (what local Xcode builds
|
|
820
|
-
show). `kit version bump` rewrites it in the same commit, and `kit release ios` / `kit doctor` fail
|
|
821
|
-
if it ever differs from the TOML.
|
|
822
|
-
- Secrets: `kit doctor` warns about missing release secrets for each configured platform (`kit release`
|
|
823
|
-
itself stops on them). `kit env check` fails when GitHub lacks a name from `env.githubSecrets`, or a
|
|
824
|
-
release secret when a workflow releases; repo, environment and org secrets count. It flags old names
|
|
825
|
-
(`APPLE_*`, `FIREBASE_*`) to delete.
|
|
826
|
-
- Confirmation: `internal` none; `alpha`/`beta` a prompt (`--yes` skips); `prod` asks you to type `prod`
|
|
827
|
-
locally (`--yes` doesn't skip) and in CI relies on the `production` environment's reviewers.
|
|
828
|
-
- `--dry-run` runs preflight and the build, never uploads or tags.
|
|
829
|
-
- Notes default to commit subjects since the last `<platform>/v*` tag (else the last 20); Play notes
|
|
830
|
-
are clamped to 500 chars. iOS `prod` requires `--notes` (App Store What's New).
|
|
831
|
-
|
|
832
|
-
Secrets (canonical names, from `.env` or the CI job): `ASC_KEY_ID`, `ASC_ISSUER_ID`, `ASC_KEY_P8_BASE64`,
|
|
833
|
-
`MATCH_PASSWORD`, `MATCH_GIT_URL`, `MATCH_GIT_BASIC_AUTHORIZATION` (CI), `ANDROID_KEYSTORE_BASE64`,
|
|
834
|
-
`ANDROID_KEYSTORE_ALIAS`, `ANDROID_KEYSTORE_PASSWORD`, `PLAY_SERVICE_ACCOUNT_BASE64`, `SENTRY_AUTH_TOKEN`.
|
|
835
|
-
Files are decoded into a 0600 temp dir removed on exit; values are redacted from output.
|
|
836
|
-
|
|
837
|
-
### Preflight checks
|
|
838
|
-
|
|
839
|
-
`release.preflight` lists modules run before every mobile release:
|
|
840
|
-
|
|
841
|
-
```ts
|
|
842
|
-
// .kit/preflight/seed.ts
|
|
843
|
-
import { definePreflight, KitError } from '@jordond/kit'
|
|
844
|
-
|
|
845
|
-
export default definePreflight({
|
|
846
|
-
title: 'seed matches the deployed deck',
|
|
847
|
-
skipFlag: 'seed-check', // kit release ios --skip seed-check
|
|
848
|
-
platforms: ['ios', 'android'],
|
|
849
|
-
async check(ctx, { platform, track, version }) {
|
|
850
|
-
if (/* stale */ false) throw new KitError('seed is stale', 'run `kit seed pull`')
|
|
66
|
+
client: { kind: 'gradle', dir: 'apps/client' },
|
|
67
|
+
api: { kind: 'worker', dir: 'apps/api', paths: ['packages/shared'] },
|
|
68
|
+
site: { kind: 'astro', dir: 'apps/site' },
|
|
851
69
|
},
|
|
852
70
|
})
|
|
853
71
|
```
|
|
854
72
|
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
### Store listing
|
|
858
|
-
|
|
859
|
-
`kit release metadata` keeps the store listing in the repo, in fastlane's own layouts. Both keys are
|
|
860
|
-
optional paths relative to the repo root:
|
|
861
|
-
|
|
862
|
-
```ts
|
|
863
|
-
release: {
|
|
864
|
-
ios: { /* … */ metadata: 'client/fastlane/metadata' }, // deliver: <locale>/name.txt, …; screenshots in ../screenshots
|
|
865
|
-
android: { /* … */ metadata: 'client/fastlane/metadata/android' }, // supply: <locale>/title.txt, <locale>/images/
|
|
866
|
-
},
|
|
867
|
-
```
|
|
868
|
-
|
|
869
|
-
| Command | Does |
|
|
870
|
-
| --- | --- |
|
|
871
|
-
| `kit release metadata pull <ios\|android> [--screenshots] [--force]` | Download the listing text; `--screenshots` also downloads the screenshots (Play: and the feature graphic and icon) |
|
|
872
|
-
| `kit release metadata push <ios\|android> [--screenshots] [--only-screenshots]` | Upload the listing text; `--screenshots` also replaces the screenshots (Play: and the feature graphic and icon); `--only-screenshots` sends the images and no text |
|
|
873
|
-
|
|
874
|
-
- `push` never uploads a binary, submits for review, or changes a rollout or phased release. It asks
|
|
875
|
-
before changing the public listing (`--yes` skips); `--dry-run` prints the files it would send and
|
|
876
|
-
runs nothing.
|
|
877
|
-
- `pull` stops when what it would write has uncommitted changes (the text; with `--screenshots` the
|
|
878
|
-
screenshots too); `--force` overwrites them. Without `--screenshots` local screenshots are left alone.
|
|
879
|
-
- iOS `review_information/` (the App Review contact and the demo account's user and password, which
|
|
880
|
-
deliver writes as plaintext) never stays in the repo: `pull` removes it, and `push` neither lists nor
|
|
881
|
-
uploads it. Edit those fields in App Store Connect.
|
|
882
|
-
- Only the store key is needed: `ASC_*` for iOS, `PLAY_SERVICE_ACCOUNT_BASE64` for Android.
|
|
883
|
-
- iOS edits the version being prepared in App Store Connect; with none, `push` fails at once: create
|
|
884
|
-
the next version there, or push after `kit release ios --track prod`. Android needs a
|
|
885
|
-
release on some Play track, and `changelogs/` is never sent: `kit release android` writes those.
|
|
886
|
-
- A missing key or directory is a usage error (exit 2) naming `release.<platform>.metadata`.
|
|
887
|
-
|
|
888
|
-
#### Screenshots
|
|
889
|
-
|
|
890
|
-
`kit release metadata push <ios|android> --screenshots` uploads the listing text and the images.
|
|
891
|
-
`--only-screenshots` uploads the images alone: no text is sent, none has to exist in the repo, and the
|
|
892
|
-
store keeps the text it has. Use it after `kit shots export`.
|
|
893
|
-
|
|
894
|
-
One thing is still added on iOS: deliver creates a version localization for every local screenshot
|
|
895
|
-
locale the version being prepared lacks. `--only-screenshots` with a new `fr-FR/` directory adds a
|
|
896
|
-
fr-FR locale to that version with no text in it; fill it in App Store Connect or with a text push
|
|
897
|
-
before submitting.
|
|
73
|
+
Then:
|
|
898
74
|
|
|
899
75
|
```sh
|
|
900
|
-
kit
|
|
901
|
-
kit
|
|
902
|
-
kit
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
kit finds the images the way fastlane does, so what it checks, lists and counts is what goes up:
|
|
906
|
-
|
|
907
|
-
| Store | Uploaded | Not uploaded |
|
|
908
|
-
| --- | --- | --- |
|
|
909
|
-
| App Store (deliver) | The `.png`, `.jpg` and `.jpeg` files directly in `screenshots/<locale>/`, and in `screenshots/appleTV/<locale>/` and `screenshots/iMessage/<locale>/` | Files at the root of `screenshots/`, in deeper directories, and in `fonts/`, `android/` and `review_information/`. In a locale directory with a `*_framed` file, every file whose path names neither "framed" nor "watch" |
|
|
910
|
-
| Google Play (supply) | `<locale>/images/featureGraphic.<ext>`, `icon.<ext>` and `tvBanner.<ext>`, and the files directly in `<locale>/images/phoneScreenshots/`, `sevenInchScreenshots/`, `tenInchScreenshots/`, `tvScreenshots/` and `wearScreenshots/` | Any other file or directory under `<locale>/images/` |
|
|
911
|
-
|
|
912
|
-
Every other directory in `screenshots/` must be named after an App Store locale, in any case. The
|
|
913
|
-
names are deliver's list in the pinned fastlane: `ar-SA`, `bn-BD`, `ca`, `cs`, `da`, `de-DE`, `el`,
|
|
914
|
-
`en-AU`, `en-CA`, `en-GB`, `en-US`, `es-ES`, `es-MX`, `fi`, `fr-CA`, `fr-FR`, `gu-IN`, `he`, `hi`, `hr`,
|
|
915
|
-
`hu`, `id`, `it`, `ja`, `kn-IN`, `ko`, `ml-IN`, `mr-IN`, `ms`, `nl-NL`, `no`, `or-IN`, `pa-IN`, `pl`,
|
|
916
|
-
`pt-BR`, `pt-PT`, `ro`, `ru`, `sk`, `sl-SI`, `sv`, `ta-IN`, `te-IN`, `th`, `tr`, `uk`, `ur-PK`, `vi`,
|
|
917
|
-
`zh-Hans`, `zh-Hant`. Two layouts stop the push with exit 4, because deliver would fail on them, the
|
|
918
|
-
second one after deleting the store's screenshots:
|
|
919
|
-
|
|
920
|
-
- a directory with another name, such as `screenshots/en/`;
|
|
921
|
-
- `screenshots/default/`, or `default`, `appleTV` or `iMessage` inside `appleTV/` or `iMessage/`,
|
|
922
|
-
when it holds an image: deliver reads its files with no locale. Without one it is left alone.
|
|
923
|
-
|
|
924
|
-
An image push also stops with exit 4 when the absolute path of the screenshots directory (iOS) or
|
|
925
|
-
the metadata directory (Android) contains one of `[ ] { } * ? \`: fastlane cannot read such a path.
|
|
926
|
-
deliver and supply find the images with a glob, read these characters as a pattern, upload nothing
|
|
927
|
-
and report success. Of several files for one Play image type (`icon.png` beside `icon.jpg`) supply
|
|
928
|
-
uploads the last of `png`, `jpg`, `jpeg`, and that one is the file kit checks.
|
|
929
|
-
|
|
930
|
-
Before the confirmation (and in `--dry-run`) kit reads every image it is about to upload. If the store
|
|
931
|
-
would refuse any of them, the push stops with exit 4 and lists each file with its reason; nothing is
|
|
932
|
-
uploaded and kit never rewrites the files. A directory or a dangling link with an image name is listed
|
|
933
|
-
too: fastlane would still try to upload it.
|
|
934
|
-
|
|
935
|
-
| Store | Rule |
|
|
936
|
-
| --- | --- |
|
|
937
|
-
| Both | The file is a PNG or JPEG and its content matches its extension; no alpha channel |
|
|
938
|
-
| App Store | The pixel size is one App Store Connect takes; at most 10 screenshots per locale and display type. A file in `iMessage/<locale>/` is an iMessage display type: its own count, and no Mac, Watch, Apple TV or Vision Pro sizes |
|
|
939
|
-
| Google Play screenshots | Each side 320 to 3840 px; the long side at most twice the short side; at most 8 per type and locale. Fewer than 2 phone screenshots is a warning |
|
|
940
|
-
| Google Play images | `featureGraphic` is exactly 1024x500 and `tvBanner` exactly 1280x720, both with no alpha; `icon` is 512x512 and at most 1024 KB (alpha allowed) |
|
|
941
|
-
|
|
942
|
-
The confirmation shows, per locale and class, how many images go up and at what size. With `--json`
|
|
943
|
-
the document carries `files` (what goes up), `images` (`file`, `locale`, `class`, `width`, `height`
|
|
944
|
-
for each image that could be read), `problems` (what stopped the push) and `warnings` (what did not,
|
|
945
|
-
such as a single Play phone screenshot); the last three are empty arrays on a text-only push.
|
|
946
|
-
|
|
947
|
-
**An iOS screenshot push replaces whole locales.** For each locale that has local screenshots, every
|
|
948
|
-
screenshot set of that locale is deleted from the App Store before the new ones upload, including
|
|
949
|
-
sets you have no local files for: a locale with only iPhone screenshots in the repo loses its iPad
|
|
950
|
-
set. The confirmation names the locales ("replaces every screenshot set of: en-US, fr-FR"). Google
|
|
951
|
-
Play replaces only the screenshot types that have local files, and applies the change in one commit.
|
|
952
|
-
|
|
953
|
-
### CI
|
|
954
|
-
|
|
955
|
-
`.github/workflows/mobile-distribute.yml` is a reusable workflow. Pin it by SHA and pass named secrets:
|
|
956
|
-
|
|
957
|
-
```yaml
|
|
958
|
-
on:
|
|
959
|
-
workflow_dispatch:
|
|
960
|
-
inputs:
|
|
961
|
-
track: { type: choice, options: [internal, alpha, beta, prod], default: internal }
|
|
962
|
-
jobs:
|
|
963
|
-
ios:
|
|
964
|
-
uses: jordond/kit/.github/workflows/mobile-distribute.yml@<sha> # vX.Y.Z
|
|
965
|
-
permissions: { contents: write }
|
|
966
|
-
with: { platform: ios, track: ${{ inputs.track }} }
|
|
967
|
-
secrets:
|
|
968
|
-
ASC_KEY_ID: ${{ secrets.ASC_KEY_ID }}
|
|
969
|
-
ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
|
|
970
|
-
ASC_KEY_P8_BASE64: ${{ secrets.ASC_KEY_P8_BASE64 }}
|
|
971
|
-
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
|
|
972
|
-
MATCH_GIT_URL: ${{ secrets.MATCH_GIT_URL }}
|
|
973
|
-
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
|
|
974
|
-
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
|
76
|
+
kit doctor # are the tools this config needs installed?
|
|
77
|
+
kit check # lint and typecheck every target
|
|
78
|
+
kit test api -- --watch # arguments after -- go to the tool
|
|
79
|
+
kit dev site
|
|
80
|
+
kit deploy api --preview
|
|
975
81
|
```
|
|
976
82
|
|
|
977
|
-
|
|
83
|
+
Every field, with defaults and full examples, is in the [config reference](docs/CONFIG.md).
|
|
978
84
|
|
|
979
|
-
|
|
980
|
-
| --- | --- | --- |
|
|
981
|
-
| `release` | `kit release <platform> --track <track>` | `track`, `build`, `notes`, `rollout`, `draft`, `skip` |
|
|
982
|
-
| `promote` | `kit release promote <platform> --from <from> --to <track>` | `from`, `track` (the destination), `build`, `app-version`, `notes`, `rollout`, `draft`, `skip` |
|
|
983
|
-
| `rollout` | `kit release rollout <platform> --<rollout-action>` | `rollout-action` (`percent`, `halt`, `resume`, `complete`), `percent`, `build` |
|
|
85
|
+
## Commands
|
|
984
86
|
|
|
985
|
-
|
|
986
|
-
promote:
|
|
987
|
-
uses: jordond/kit/.github/workflows/mobile-distribute.yml@<sha> # vX.Y.Z
|
|
988
|
-
permissions: { contents: write }
|
|
989
|
-
with: { operation: promote, platform: android, from: beta, track: prod }
|
|
990
|
-
secrets:
|
|
991
|
-
PLAY_SERVICE_ACCOUNT_BASE64: ${{ secrets.PLAY_SERVICE_ACCOUNT_BASE64 }}
|
|
992
|
-
```
|
|
993
|
-
|
|
994
|
-
The job runs in the `production` environment for a release or promote to `prod` and for every
|
|
995
|
-
rollout, so its required reviewers approve whatever widens production. That is the gate kit relies on
|
|
996
|
-
when it skips the typed `prod` confirmation on GitHub Actions: run `kit release promote --to prod` and
|
|
997
|
-
`kit release rollout` in CI through this workflow, or from a job that sets `environment: production`.
|
|
998
|
-
|
|
999
|
-
### Lane tests
|
|
87
|
+
`kit --help` lists everything; `kit <command> --help` has the flags.
|
|
1000
88
|
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
89
|
+
| Group | Commands |
|
|
90
|
+
| ------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
91
|
+
| Develop | `dev`, `build`, `deploy`, `app`, `device`, `fixture`, `open`, `clean`, and the passthroughs `gradle`, `kotlin`, `wrangler`, `maestro`, `xcode` |
|
|
92
|
+
| Quality | `lint`, `format`, `typecheck`, `check`, `test`, `qa`, `shots` |
|
|
93
|
+
| Release | `release`, `version`, `fastlane`, `changelog` |
|
|
94
|
+
| Infra | `env`, `db`, `logs` |
|
|
95
|
+
| Setup | `doctor`, `init`, `add`, `deps`, `upgrade`, `config`, `completion` |
|
|
1007
96
|
|
|
1008
|
-
|
|
1009
|
-
(
|
|
1010
|
-
installed; each part is skipped when its tool is missing.
|
|
97
|
+
A repo adds its own commands, or wraps a built-in, with a file in `.kit/commands/`
|
|
98
|
+
([Repo commands](docs/commands.md)).
|
|
1011
99
|
|
|
1012
|
-
##
|
|
100
|
+
## Documentation
|
|
1013
101
|
|
|
1014
|
-
|
|
1015
|
-
|
|
102
|
+
| Page | Covers |
|
|
103
|
+
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
|
|
104
|
+
| [Config reference](docs/CONFIG.md) | Every `kit.config.ts` field, validation rules, environment variables, examples |
|
|
105
|
+
| [Installing and updating](docs/install.md) | The global launcher, the `.kit/` install dir, `kit upgrade`, Renovate, shell completion |
|
|
106
|
+
| [Scaffolding](docs/scaffolding.md) | `kit init` templates, `kit add module`, `kit add target`, `kit add maestro` |
|
|
107
|
+
| [Affected targets, timings and clean](docs/verbs.md) | `--affected`, `--staged`, step timings, `kit clean` |
|
|
108
|
+
| [Devices and the debug app](docs/devices.md) | `kit device`, `kit app`, emulator images and arguments |
|
|
109
|
+
| [Maestro](docs/maestro.md) | `kit qa`, `kit shots`, suites, fixtures, the reusable QA workflow |
|
|
110
|
+
| [Store screenshots](docs/shots.md) | `kit shots export`, `pages`, `studio` and `migrate` |
|
|
111
|
+
| [Releases](docs/releases.md) | Versions, `kit release`, promote, rollout, preflight checks, the store listing, the distribute workflow |
|
|
112
|
+
| [Env](docs/env.md) | The `.env` schema, `kit env push` and `kit env rotate` |
|
|
113
|
+
| [Cloudflare Workers](docs/cloudflare.md) | Preview deploys, rollback, logs, D1 |
|
|
114
|
+
| [Kotlin toolchain](docs/kotlin-toolchain.md) | Apps built with the JetBrains Kotlin Toolchain instead of Gradle |
|
|
115
|
+
| [Repo commands](docs/commands.md) | Adding commands and wrapping built-ins |
|
|
116
|
+
| [Doctor](docs/doctor.md) | What `kit doctor` checks and what `--fix` repairs |
|
|
117
|
+
| [Changelog](docs/changelog.md) | `kit changelog` from Conventional Commits |
|
|
1016
118
|
|
|
1017
|
-
|
|
1018
|
-
| --- | --- |
|
|
1019
|
-
| `kit deploy <target> --preview [--comment]` | `wrangler versions upload`: a new version, production traffic untouched. The preview URL is the only thing on stdout (`--json`: `{ ok, target, url, version }`) |
|
|
1020
|
-
| `kit release rollback <service> [--to <version-id>]` | `wrangler rollback` to the last deployment with different code, for a service whose `deploy` is `kit deploy <worker target>`; confirms first (`--yes` skips) |
|
|
1021
|
-
| `kit logs <target> [-- <wrangler tail flags>]` | `wrangler tail`, attached to the terminal; Ctrl-C stops |
|
|
1022
|
-
| `kit open <target> [--print]` | The worker's Cloudflare dashboard page; `--print` or `--json` writes the URL instead |
|
|
1023
|
-
| `kit db backup [--remote] [--out <file>]` | `wrangler d1 export` to `backups/<db>-<UTC timestamp>.sql`; prints the path |
|
|
1024
|
-
| `kit db restore <file> [--remote]` | Load a backup: locally it replaces the database; remotely the database must be empty |
|
|
1025
|
-
| `kit db seed [--remote]` | Run the file named by `cloudflare.d1.<db>.seed` (relative to the repo root) |
|
|
1026
|
-
| `kit db reset` | Local only: delete the local database, re-apply migrations, then seed if configured |
|
|
119
|
+
## CI
|
|
1027
120
|
|
|
1028
|
-
|
|
1029
|
-
to the branch (`feat/login` → `feat-login-<worker>.<subdomain>.workers.dev`); with no usable branch
|
|
1030
|
-
name the URL is the per-version one. A target with a custom `deploy` command runs its `build`
|
|
1031
|
-
first (and needs one: exit 2 otherwise); `deploy: false` has no preview.
|
|
1032
|
-
- `--comment` posts the URL on the branch's pull request with `gh`, and on the next preview updates
|
|
1033
|
-
that comment: only one the `gh` user wrote that opens with kit's marker. With no pull request it
|
|
1034
|
-
warns; any other `gh` failure exits 1, after the URL is printed (`comment: 'failed'`, `ok: false`).
|
|
1035
|
-
- `kit release rollback` works out the version itself: every `wrangler secret put` (`kit env push`)
|
|
1036
|
-
is a deployment, so "the previous deployment" would only undo the last secret. kit picks the last
|
|
1037
|
-
deployment whose code differs from what is live, shows its id and date, and warns when secrets
|
|
1038
|
-
changed since then: their values go back too, so run `kit env push` afterwards. `--to` names a
|
|
1039
|
-
version outright, and is required while a gradual deployment is live (exit 4 lists the candidates). Git tags are never moved or deleted: it names the `<service>/v*` tag that no
|
|
1040
|
-
longer matches production. A service whose deploy is not a worker exits 2.
|
|
1041
|
-
- `kit db restore`: a backup carries the schema and the applied-migrations table, so it loads into
|
|
1042
|
-
an empty database only. Locally kit deletes the database first (after a confirm, like `reset`).
|
|
1043
|
-
Remotely it checks the database has no tables and exits 4 naming them if it does; kit never drops
|
|
1044
|
-
remote tables.
|
|
1045
|
-
- `kit db backup` warns when git does not ignore the file it wrote: a `--remote` dump is production
|
|
1046
|
-
data. `kit init` adds `backups/` to `.gitignore`.
|
|
1047
|
-
- `kit db reset` and a local restore stop (exit 1, "layout not recognised") rather than report a
|
|
1048
|
-
reset that deleted nothing, when wrangler's local state is not where kit expects it.
|
|
1049
|
-
- `kit db` commands take `--db`; `--remote` writes (`restore`, `seed`) confirm first, and
|
|
1050
|
-
`kit db reset --remote` is a usage error.
|
|
1051
|
-
- `kit logs` has no `--json` document (exit 2): for JSON lines use `kit logs <target> -- --format json`.
|
|
1052
|
-
- `--dry-run` runs nothing in any of them.
|
|
121
|
+
kit runs the same in CI as locally. For GitHub Actions the repo also provides:
|
|
1053
122
|
|
|
1054
|
-
|
|
123
|
+
- a [setup action](.github/actions/setup/README.md): Bun, dependencies, and optionally Java, Ruby with
|
|
124
|
+
kit's fastlane bundle, and mise;
|
|
125
|
+
- [`mobile-distribute.yml`](docs/releases.md#ci), a reusable workflow that releases, promotes and
|
|
126
|
+
changes rollouts;
|
|
127
|
+
- [`mobile-qa.yml`](docs/maestro.md#maestro-in-ci), a reusable workflow that runs `kit qa` on an iOS
|
|
128
|
+
simulator and an Android emulator.
|
|
1055
129
|
|
|
1056
|
-
|
|
1057
|
-
program, so a checkout needs Node `^22.18`, `^24.11` or `>=26` next to Bun; a globally installed `vp`
|
|
1058
|
-
installs Node itself.
|
|
130
|
+
## Contributing
|
|
1059
131
|
|
|
1060
|
-
|
|
1061
|
-
| --- | --- |
|
|
1062
|
-
| `bun run check` | Format check, lint and type check in one pass (`vp check`); warnings fail |
|
|
1063
|
-
| `bun run format` | Rewrite files with the formatter (`vp fmt`) |
|
|
1064
|
-
| `bun run lint` | Lint only (`vp lint`) |
|
|
1065
|
-
| `bun test` | Tests. They run on Bun, not on `vp test` |
|
|
1066
|
-
| `bun run build` | Bundle `dist/` and its declarations (`vp pack`), then build the screenshot editor into `dist/shots-editor` |
|
|
1067
|
-
| `bun run dev:studio` | The studio server on the shots fixture (`KIT_STUDIO_ROOT` picks another repo) plus the editor's dev server |
|
|
1068
|
-
| `bun run test:pack` | Install the packed tarball into a temp app and run it |
|
|
132
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for the checkout, checks and tests.
|
|
1069
133
|
|
|
1070
|
-
|
|
134
|
+
## License
|
|
1071
135
|
|
|
1072
|
-
|
|
1073
|
-
project code from `src/lib/storeshots` by relative path, so those files must stay free of Node and Bun
|
|
1074
|
-
imports. `KIT_CHROME_TEST=1 bun test test/e2e/shots-editor.test.ts` checks the built editor in headless
|
|
1075
|
-
Chrome; run `bun run build` first.
|
|
136
|
+
[MIT](LICENSE)
|