@jordond/kit 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +139 -2
- package/bin/kit +39 -0
- package/dist/_verb-28xmg3d3.js +116 -0
- package/dist/android-fs3sesnn.js +60 -0
- package/dist/build-ak20h5cd.js +42 -0
- package/dist/builtins-bj2yypm6.js +10 -0
- package/dist/bump-hsfmz2rn.js +124 -0
- package/dist/certs-w5v0877b.js +76 -0
- package/dist/check-771pracn.js +33 -0
- package/dist/check-jf1apke7.js +54 -0
- package/dist/cleanup-hrcvxmh2.js +18 -0
- package/dist/cli/builtins.d.ts +13 -0
- package/dist/cli/command.d.ts +106 -0
- package/dist/cli/discover.d.ts +10 -0
- package/dist/cli/main.d.ts +1 -0
- package/dist/cli/plugin.d.ts +7 -0
- package/dist/cli/usage.d.ts +3 -0
- package/dist/cli-19me2qqg.js +1056 -0
- package/dist/cli-1htjx51v.js +80 -0
- package/dist/cli-51ha0t4k.js +70 -0
- package/dist/cli-540nme4e.js +46 -0
- package/dist/cli-5d61x8vg.js +675 -0
- package/dist/cli-5wasc5mr.js +76 -0
- package/dist/cli-699g070n.js +104 -0
- package/dist/cli-7wvrehng.js +23 -0
- package/dist/cli-cc13vv98.js +2023 -0
- package/dist/cli-dht27t4r.js +41 -0
- package/dist/cli-fqfan92n.js +135 -0
- package/dist/cli-fqxtcj42.js +75 -0
- package/dist/cli-g519ev8e.js +89 -0
- package/dist/cli-gqy1xp9t.js +97 -0
- package/dist/cli-qhs8ww91.js +51 -0
- package/dist/cli-qq1ktr8q.js +234 -0
- package/dist/cli-r6g14qrk.js +195 -0
- package/dist/cli-re3ntm60.js +48 -0
- package/dist/cli-sx073w8p.js +191 -0
- package/dist/cli-vt6582gp.js +122 -0
- package/dist/cli-xax5grx1.js +108 -0
- package/dist/cli-xjpjdc2c.js +70 -0
- package/dist/cli-y3mjprpv.js +31 -0
- package/dist/cli-zf47bkgh.js +227 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +35 -0
- package/dist/cloudflare-xf7e2dn3.js +43 -0
- package/dist/command-j1etpmj6.js +21 -0
- package/dist/commands/_verb.d.ts +15 -0
- package/dist/commands/build.d.ts +11 -0
- package/dist/commands/check.d.ts +8 -0
- package/dist/commands/completion.d.ts +15 -0
- package/dist/commands/config.d.ts +2 -0
- package/dist/commands/db/create.d.ts +7 -0
- package/dist/commands/db/exec.d.ts +16 -0
- package/dist/commands/db/list.d.ts +11 -0
- package/dist/commands/db/migrate.d.ts +11 -0
- package/dist/commands/deploy.d.ts +18 -0
- package/dist/commands/deps.d.ts +72 -0
- package/dist/commands/dev.d.ts +8 -0
- package/dist/commands/doctor.d.ts +63 -0
- package/dist/commands/env/check.d.ts +7 -0
- package/dist/commands/env/init.d.ts +2 -0
- package/dist/commands/env/push.d.ts +16 -0
- package/dist/commands/env/sync.d.ts +2 -0
- package/dist/commands/fastlane.d.ts +2 -0
- package/dist/commands/format.d.ts +11 -0
- package/dist/commands/gradle.d.ts +2 -0
- package/dist/commands/init.d.ts +70 -0
- package/dist/commands/lint.d.ts +12 -0
- package/dist/commands/release/android.d.ts +30 -0
- package/dist/commands/release/certs.d.ts +7 -0
- package/dist/commands/release/ios.d.ts +22 -0
- package/dist/commands/release/service.d.ts +6 -0
- package/dist/commands/test.d.ts +2 -0
- package/dist/commands/typecheck.d.ts +2 -0
- package/dist/commands/version/bump.d.ts +17 -0
- package/dist/commands/version/show.d.ts +2 -0
- package/dist/commands/wrangler.d.ts +2 -0
- package/dist/commands/xcode.d.ts +10 -0
- package/dist/completion-m051yvzk.js +38 -0
- package/dist/concurrent-zdz69ye5.js +96 -0
- package/dist/config/load.d.ts +6 -0
- package/dist/config/schema.d.ts +139 -0
- package/dist/config-c8yh5m9j.js +22 -0
- package/dist/create-j7ve677k.js +38 -0
- package/dist/creds-rhxhmpe6.js +22 -0
- package/dist/deploy-af2v2jhj.js +152 -0
- package/dist/deps-1apnsrre.js +334 -0
- package/dist/dev-6dv5xbv2.js +114 -0
- package/dist/doctor-cr3hcfvt.js +377 -0
- package/dist/errors-1fjbr7ee.js +10 -0
- package/dist/exec-wa94sqwn.js +53 -0
- package/dist/fastlane-2kjyfqjg.js +26 -0
- package/dist/fastlane-qsjmbxtj.js +38 -0
- package/dist/format-rehf6c8g.js +39 -0
- package/dist/git-3gyyfk0x.js +24 -0
- package/dist/gradle-wv77a2f1.js +39 -0
- package/dist/index-cx34x4np.js +874 -0
- package/dist/index-erv82p4z.js +1528 -0
- package/dist/index-jqfz6hfy.js +2659 -0
- package/dist/index-mm4ht8yh.js +9 -0
- package/dist/index-s3ehw02w.js +1610 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +55 -0
- package/dist/init-gtkmx54a.js +76 -0
- package/dist/init-kck1p6gj.js +250 -0
- package/dist/init-n38980zv.js +78 -0
- package/dist/ios-f6pwcqqt.js +50 -0
- package/dist/lib/cleanup.d.ts +21 -0
- package/dist/lib/cloudflare.d.ts +97 -0
- package/dist/lib/concurrent.d.ts +21 -0
- package/dist/lib/env/init.d.ts +22 -0
- package/dist/lib/env/load.d.ts +12 -0
- package/dist/lib/env/push.d.ts +54 -0
- package/dist/lib/env/render.d.ts +52 -0
- package/dist/lib/env/schema.d.ts +49 -0
- package/dist/lib/errors.d.ts +14 -0
- package/dist/lib/fastlane.d.ts +36 -0
- package/dist/lib/git.d.ts +36 -0
- package/dist/lib/log.d.ts +17 -0
- package/dist/lib/pm.d.ts +8 -0
- package/dist/lib/proc.d.ts +73 -0
- package/dist/lib/prompt.d.ts +32 -0
- package/dist/lib/release/creds.d.ts +26 -0
- package/dist/lib/release/mobile.d.ts +41 -0
- package/dist/lib/release/notes.d.ts +15 -0
- package/dist/lib/release/preflight.d.ts +30 -0
- package/dist/lib/release/version.d.ts +25 -0
- package/dist/lib/secrets.d.ts +32 -0
- package/dist/lib/steps.d.ts +38 -0
- package/dist/lib/targets.d.ts +46 -0
- package/dist/lib/toml.d.ts +15 -0
- package/dist/lint-e0j22mab.js +39 -0
- package/dist/list-fzwqsfsk.js +34 -0
- package/dist/load-dxhacsn4.js +137 -0
- package/dist/log-g1ebh60s.js +15 -0
- package/dist/main-jrcgdccz.js +1965 -0
- package/dist/migrate-4ncx9tqj.js +38 -0
- package/dist/mobile-9n86ytzx.js +384 -0
- package/dist/notes-1zsa7qac.js +21 -0
- package/dist/picocolors-0dxagz5d.js +6 -0
- package/dist/pm-5q5vz6w3.js +14 -0
- package/dist/proc-jv4bcyyx.js +33 -0
- package/dist/prompt-3wwegvqc.js +15 -0
- package/dist/push-acejr9gj.js +124 -0
- package/dist/push-fq5syn8c.js +117 -0
- package/dist/render-vn40fp54.js +22 -0
- package/dist/service-xekpd27p.js +102 -0
- package/dist/show-jw5bx55h.js +50 -0
- package/dist/steps-9knqpszw.js +16 -0
- package/dist/sync-9z8n875s.js +53 -0
- package/dist/targets-bywmzbtj.js +22 -0
- package/dist/test-8jws3x98.js +26 -0
- package/dist/toml-3fxsdkhr.js +14 -0
- package/dist/typecheck-1hn3hgz9.js +24 -0
- package/dist/version-4tz72w42.js +26 -0
- package/dist/wrangler-412fadcz.js +46 -0
- package/dist/xcode-qzyee632.js +75 -0
- package/fastlane/Fastfile +413 -0
- package/fastlane/Gemfile +21 -0
- package/fastlane/Gemfile.lock +275 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.2.0/io.github.jordond.kit.android.application.gradle.plugin-0.2.0.pom +15 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.2.0/io.github.jordond.kit.android.application.gradle.plugin-0.2.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.2.0/io.github.jordond.kit.android.application.gradle.plugin-0.2.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.2.0/io.github.jordond.kit.android.application.gradle.plugin-0.2.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.2.0/io.github.jordond.kit.android.application.gradle.plugin-0.2.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml +13 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.2.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.0.pom +15 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.2.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.2.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.2.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.2.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml +13 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.2.0/io.github.jordond.kit.compose.gradle.plugin-0.2.0.pom +15 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.2.0/io.github.jordond.kit.compose.gradle.plugin-0.2.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.2.0/io.github.jordond.kit.compose.gradle.plugin-0.2.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.2.0/io.github.jordond.kit.compose.gradle.plugin-0.2.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.2.0/io.github.jordond.kit.compose.gradle.plugin-0.2.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml +13 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.2.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.0.pom +15 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.2.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.2.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.2.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.2.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml +13 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.jar +0 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.jar.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.jar.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.jar.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.jar.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.module +64 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.module.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.module.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.module.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.module.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.pom +12 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.0/kit-plugins-0.2.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml +13 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.jar +0 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.jar.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.jar.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.jar.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.jar.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.module +64 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.module.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.module.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.module.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.module.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.pom +12 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.0/kit-settings-0.2.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml +13 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.2.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.0.pom +15 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.2.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.2.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.2.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.2.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml +13 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.2.0/io.github.jordond.kit.lint.gradle.plugin-0.2.0.pom +15 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.2.0/io.github.jordond.kit.lint.gradle.plugin-0.2.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.2.0/io.github.jordond.kit.lint.gradle.plugin-0.2.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.2.0/io.github.jordond.kit.lint.gradle.plugin-0.2.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.2.0/io.github.jordond.kit.lint.gradle.plugin-0.2.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml +13 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.2.0/io.github.jordond.kit.release.gradle.plugin-0.2.0.pom +15 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.2.0/io.github.jordond.kit.release.gradle.plugin-0.2.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.2.0/io.github.jordond.kit.release.gradle.plugin-0.2.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.2.0/io.github.jordond.kit.release.gradle.plugin-0.2.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.2.0/io.github.jordond.kit.release.gradle.plugin-0.2.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml +13 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.2.0/io.github.jordond.kit.settings.gradle.plugin-0.2.0.pom +15 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.2.0/io.github.jordond.kit.settings.gradle.plugin-0.2.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.2.0/io.github.jordond.kit.settings.gradle.plugin-0.2.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.2.0/io.github.jordond.kit.settings.gradle.plugin-0.2.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.2.0/io.github.jordond.kit.settings.gradle.plugin-0.2.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml +13 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha512 +1 -0
- package/package.json +58 -4
- package/templates/lefthook.yml +6 -0
- package/templates/mise.toml +6 -0
- package/templates/new/.env.example +20 -0
- package/templates/new/.github/workflows/ci.yml +45 -0
- package/templates/new/apps/client/fastlane/Fastfile +1 -0
- package/templates/new/apps/client/gradle/libs.versions.toml +25 -0
- package/templates/new/apps/client/settings.gradle.kts +25 -0
- package/templates/new/kit.config.ts +15 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Shells `kit completion` writes a script for. */
|
|
2
|
+
export declare const SHELLS: readonly ['zsh', 'bash', 'fish'];
|
|
3
|
+
/**
|
|
4
|
+
* `kit completion <shell>` prints the script; main.ts runs the completion plugin for a known shell
|
|
5
|
+
* (and for the script's own `kit complete -- <words>` callback) before this command loads. `run`
|
|
6
|
+
* only sees a missing or unknown shell.
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: import("..").KitCommand<{
|
|
9
|
+
readonly shell: {
|
|
10
|
+
readonly type: "positional";
|
|
11
|
+
readonly required: true;
|
|
12
|
+
readonly description: "zsh, bash or fish";
|
|
13
|
+
};
|
|
14
|
+
}>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("../..").KitCommand<{
|
|
2
|
+
readonly db: {
|
|
3
|
+
readonly type: 'string';
|
|
4
|
+
readonly description: 'cloudflare.d1 key or database name (default: the only one, or the default: true one)';
|
|
5
|
+
};
|
|
6
|
+
readonly remote: {
|
|
7
|
+
readonly type: 'boolean';
|
|
8
|
+
readonly description: 'Deployed D1 (default: local)';
|
|
9
|
+
};
|
|
10
|
+
readonly file: {
|
|
11
|
+
readonly type: "string";
|
|
12
|
+
readonly short: "f";
|
|
13
|
+
readonly description: "Run a .sql file instead of a statement";
|
|
14
|
+
};
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: import("../..").KitCommand<{
|
|
2
|
+
readonly db: {
|
|
3
|
+
readonly type: 'string';
|
|
4
|
+
readonly description: 'cloudflare.d1 key or database name (default: the only one, or the default: true one)';
|
|
5
|
+
};
|
|
6
|
+
readonly remote: {
|
|
7
|
+
readonly type: 'boolean';
|
|
8
|
+
readonly description: 'Deployed D1 (default: local)';
|
|
9
|
+
};
|
|
10
|
+
}>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: import("../..").KitCommand<{
|
|
2
|
+
readonly db: {
|
|
3
|
+
readonly type: 'string';
|
|
4
|
+
readonly description: 'cloudflare.d1 key or database name (default: the only one, or the default: true one)';
|
|
5
|
+
};
|
|
6
|
+
readonly remote: {
|
|
7
|
+
readonly type: 'boolean';
|
|
8
|
+
readonly description: 'Deployed D1 (default: local)';
|
|
9
|
+
};
|
|
10
|
+
}>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { KitConfig } from '../config/schema';
|
|
2
|
+
/** Validate `--env` against `targets.<t>.envs`. */
|
|
3
|
+
export declare function checkEnv(config: KitConfig, name: string, env: string | undefined): string | undefined;
|
|
4
|
+
/**
|
|
5
|
+
* `--env` across several targets: targets that declare `envs` get it (an unknown env is a usage
|
|
6
|
+
* error), targets without envs run their default. An env none of the targets declares is a usage error.
|
|
7
|
+
*/
|
|
8
|
+
export declare function envsFor(config: KitConfig, names: string[], env: string | undefined): Map<string, string | undefined>;
|
|
9
|
+
/** `deploy.before` entries are kit commands (`env sync`), run as child kit processes. */
|
|
10
|
+
export declare function beforeCommands(config: KitConfig, name: string): string[][];
|
|
11
|
+
declare const _default: import("..").KitCommand<{
|
|
12
|
+
readonly env: {
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly short: "e";
|
|
15
|
+
readonly description: "Environment, for targets that declare envs";
|
|
16
|
+
};
|
|
17
|
+
}>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `kit deps [update|latest]`, ported from brewd `cli deps` (+ `lib/manifests.ts`). What is out of
|
|
3
|
+
* date across the bun workspace, and the two ways to move: `update` stays inside the declared
|
|
4
|
+
* ranges (bun.lock only), `latest` rewrites the ranges themselves, the catalog entry first.
|
|
5
|
+
* Both defend the root manifest's `catalog:` references, which `bun update` unpins.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CATALOG_REF = "catalog:";
|
|
8
|
+
export declare const CATALOG_FIELD = "catalog";
|
|
9
|
+
export declare const DEPENDENCY_FIELDS: readonly ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies'];
|
|
10
|
+
export type DependencyField = (typeof DEPENDENCY_FIELDS)[number];
|
|
11
|
+
type DependencyMap = Record<string, string>;
|
|
12
|
+
export interface PackageManifest {
|
|
13
|
+
workspaces?: string[] | {
|
|
14
|
+
packages?: string[];
|
|
15
|
+
catalog?: DependencyMap;
|
|
16
|
+
};
|
|
17
|
+
catalog?: DependencyMap;
|
|
18
|
+
dependencies?: DependencyMap;
|
|
19
|
+
devDependencies?: DependencyMap;
|
|
20
|
+
peerDependencies?: DependencyMap;
|
|
21
|
+
optionalDependencies?: DependencyMap;
|
|
22
|
+
[key: string]: unknown;
|
|
23
|
+
}
|
|
24
|
+
export interface CatalogRef {
|
|
25
|
+
readonly field: DependencyField;
|
|
26
|
+
readonly name: string;
|
|
27
|
+
}
|
|
28
|
+
export interface RangeChange {
|
|
29
|
+
readonly field: DependencyField | typeof CATALOG_FIELD;
|
|
30
|
+
readonly from: string;
|
|
31
|
+
readonly to: string;
|
|
32
|
+
}
|
|
33
|
+
export declare function readManifest(path: string): PackageManifest;
|
|
34
|
+
export declare function writeManifest(path: string, manifest: PackageManifest): void;
|
|
35
|
+
/** The workspace catalog: `workspaces.catalog`, or a top-level `catalog` (both are bun's). */
|
|
36
|
+
export declare function catalogOf(manifest: PackageManifest): DependencyMap | undefined;
|
|
37
|
+
/** Member globs from `workspaces` (array or `{ packages }`). */
|
|
38
|
+
export declare function workspaceGlobs(manifest: PackageManifest): string[];
|
|
39
|
+
export declare function catalogRefs(manifest: PackageManifest): CatalogRef[];
|
|
40
|
+
/**
|
|
41
|
+
* Bun's `bun update` rewrites the **root** manifest's `catalog:` pins into the literal version it
|
|
42
|
+
* just resolved (workspace members keep theirs). Put back the pins that were there before.
|
|
43
|
+
*/
|
|
44
|
+
export declare function restoreCatalogRefs(manifest: PackageManifest, refs: readonly CatalogRef[]): string[];
|
|
45
|
+
/** The range for a bumped dependency, spelled like the current one: caret stays caret, exact stays exact. */
|
|
46
|
+
export declare function nextRange(current: string, latest: string): string;
|
|
47
|
+
export declare function setCatalogRange(manifest: PackageManifest, name: string, latest: string): RangeChange | undefined;
|
|
48
|
+
/** Every field of one manifest that names `name` with a literal range. `catalog:` and `workspace:` are references. */
|
|
49
|
+
export declare function setDeclaredRange(manifest: PackageManifest, name: string, latest: string): RangeChange[];
|
|
50
|
+
/** The root manifest and each workspace member's, as absolute paths. */
|
|
51
|
+
export declare function manifestPaths(root: string): string[];
|
|
52
|
+
/**
|
|
53
|
+
* Packages `bun outdated` lists with a newer version their declared range already allows. `(dev)`
|
|
54
|
+
* is the table's annotation, not part of the name.
|
|
55
|
+
*/
|
|
56
|
+
export declare function inRangeOutdated(table: string): string[];
|
|
57
|
+
/** `bun outdated`'s table as rows keyed by its lower-cased header (`package`, `current`, `update`, …). */
|
|
58
|
+
export declare function outdatedRows(table: string): Record<string, string>[];
|
|
59
|
+
export interface OpenManifest {
|
|
60
|
+
readonly path: string;
|
|
61
|
+
readonly manifest: PackageManifest;
|
|
62
|
+
}
|
|
63
|
+
export interface PlannedEdit {
|
|
64
|
+
readonly path: string;
|
|
65
|
+
readonly name: string;
|
|
66
|
+
readonly change: RangeChange;
|
|
67
|
+
}
|
|
68
|
+
/** Bump `name` to `latest` wherever the workspace declares its version. Edits in place, so two
|
|
69
|
+
* packages that share one file (the catalog) both survive the write. */
|
|
70
|
+
export declare function planEdits(files: readonly OpenManifest[], name: string, latest: string): PlannedEdit[];
|
|
71
|
+
declare const _default: import("..").KitCommand<import("gunshi").Args>;
|
|
72
|
+
export default _default;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { KitConfig } from '../config/schema';
|
|
2
|
+
/**
|
|
3
|
+
* `kit doctor`: one line per check on stderr (✔ ok, ▲ warning, ✖ failure), `--json` on stdout.
|
|
4
|
+
* Each check is a pure function over what the run probed, so the rules are unit-tested without the
|
|
5
|
+
* tools. A tool the project needs (java for a Gradle root, Xcode for an iOS release, …) fails; one
|
|
6
|
+
* it doesn't need only warns. Any failure exits 4.
|
|
7
|
+
*/
|
|
8
|
+
export type Status = 'ok' | 'warn' | 'fail' | 'skip';
|
|
9
|
+
export interface Check {
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
status: Status;
|
|
13
|
+
detail?: string;
|
|
14
|
+
hint?: string;
|
|
15
|
+
}
|
|
16
|
+
/** Output of a probed command; undefined when the binary is not on PATH. */
|
|
17
|
+
export type Probe = {
|
|
18
|
+
code: number;
|
|
19
|
+
output: string;
|
|
20
|
+
} | undefined;
|
|
21
|
+
export declare const MIN_JAVA = 21;
|
|
22
|
+
export declare function checkBun(version: string): Check;
|
|
23
|
+
/** `java -version` → '21.0.2' (and '1.8.0_292' → '8'). */
|
|
24
|
+
export declare function parseJavaVersion(output: string): string | undefined;
|
|
25
|
+
export declare function checkJava(probe: Probe, required: boolean): Check;
|
|
26
|
+
export declare function checkRuby(probe: Probe, required: boolean): Check;
|
|
27
|
+
export declare function checkXcode(probe: Probe, required: boolean, platform: string): Check;
|
|
28
|
+
/** ANDROID_HOME / ANDROID_SDK_ROOT, or `sdk.dir` in the Gradle root's local.properties (brewd init). */
|
|
29
|
+
export declare function checkAndroidSdk(env: Record<string, string | undefined>, localProperties: string | undefined, exists: (path: string) => boolean, required: boolean): Check;
|
|
30
|
+
/** `wrangler whoami`; undefined when the repo has no worker target. */
|
|
31
|
+
export declare function checkWranglerLogin(probe: Probe | 'skip'): Check;
|
|
32
|
+
/** `[tools]` of mise.toml → tool → version spec (`"21"`, `["21", "17"]`, `{ version = "21" }`). */
|
|
33
|
+
export declare function parseMiseTools(tools: unknown): Record<string, string>;
|
|
34
|
+
/** `"21"` matches `21.0.2`; `"temurin-21"` too; `latest`/`lts` always match. */
|
|
35
|
+
export declare function versionMatches(spec: string, actual: string): boolean;
|
|
36
|
+
export declare function checkMise(tools: Record<string, string> | undefined, detected: Record<string, string | undefined>): Check;
|
|
37
|
+
/** A project file kit reads (mise.toml, package.json) that does not parse: a failure, not a crash. */
|
|
38
|
+
export declare function checkUnreadable(id: string, label: string, file: string, error: unknown): Check;
|
|
39
|
+
/** Key names in a dotenv file. */
|
|
40
|
+
export declare function parseEnvKeys(text: string): string[];
|
|
41
|
+
/** `.env` has every key `.env.example` names (names only; values are never read into the result). */
|
|
42
|
+
export declare function checkEnvFile(example: string | undefined, env: string | undefined): Check;
|
|
43
|
+
/**
|
|
44
|
+
* Workflow `uses: jordond/kit/…@<sha> # vX.Y.Z` pins vs the package.json pin. The SHA itself isn't
|
|
45
|
+
* resolved (stub): the version comment Renovate keeps next to it is compared instead.
|
|
46
|
+
*/
|
|
47
|
+
export declare function checkCiPin(workflows: {
|
|
48
|
+
file: string;
|
|
49
|
+
text: string;
|
|
50
|
+
}[], pin: string | undefined, strict: boolean): Check;
|
|
51
|
+
/** `[versions]` keys kit's Gradle plugins read from the `libs` catalog (PLAN §13.5): a contract. */
|
|
52
|
+
export declare const CATALOG_KEYS: readonly ['app-name', 'app-android-sdk-compile', 'app-android-sdk-target', 'app-android-sdk-min', 'app-jvm-target', 'app-android-version', 'app-ios-version'];
|
|
53
|
+
/** The catalog's path, repo-relative: `versions.file`, else `<gradle root>/gradle/libs.versions.toml`. */
|
|
54
|
+
export declare function catalogPath(config: KitConfig | undefined): string | undefined;
|
|
55
|
+
/** Every key in CATALOG_KEYS under `[versions]`; `catalog` is the parsed TOML (undefined: no file). */
|
|
56
|
+
export declare function checkCatalogKeys(file: string | undefined, catalog: Record<string, unknown> | undefined): Check;
|
|
57
|
+
declare const _default: import("..").KitCommand<{
|
|
58
|
+
readonly ci: {
|
|
59
|
+
readonly type: "boolean";
|
|
60
|
+
readonly description: "Fail when CI workflow pins drift from the package.json pin";
|
|
61
|
+
};
|
|
62
|
+
}>;
|
|
63
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("../..").KitCommand<{
|
|
2
|
+
readonly target: {
|
|
3
|
+
readonly type: "string";
|
|
4
|
+
readonly short: "t";
|
|
5
|
+
readonly description: "Only this worker target (env.workerSecrets)";
|
|
6
|
+
};
|
|
7
|
+
readonly github: {
|
|
8
|
+
readonly type: "boolean";
|
|
9
|
+
readonly description: "Push env.githubSecrets with gh";
|
|
10
|
+
};
|
|
11
|
+
readonly all: {
|
|
12
|
+
readonly type: "boolean";
|
|
13
|
+
readonly description: "Every worker in env.workerSecrets and env.githubSecrets";
|
|
14
|
+
};
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: import("..").KitCommand<{
|
|
2
|
+
readonly check: {
|
|
3
|
+
readonly type: "boolean";
|
|
4
|
+
readonly description: "Check only (runs each target's lint command)";
|
|
5
|
+
};
|
|
6
|
+
readonly staged: {
|
|
7
|
+
readonly type: "boolean";
|
|
8
|
+
readonly description: "Only targets with staged files; workspace commands get the files";
|
|
9
|
+
};
|
|
10
|
+
}>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { KitConfig } from '../config/schema';
|
|
2
|
+
import type { PackageManager } from '../lib/pm';
|
|
3
|
+
/**
|
|
4
|
+
* `kit init`, existing-repo mode (brewd `cli init` + WhaleSay `ws init`, generalized): `.env` from
|
|
5
|
+
* `.env.example`, install, optional mise/lefthook scaffolds, `kit env sync`, `wrangler types`, then
|
|
6
|
+
* the native side: `gradle.init` tasks (needs java, and an Android SDK when release.android is set)
|
|
7
|
+
* and `bundle install` where a Gemfile is (the Gradle root, else the repo root). A missing tool
|
|
8
|
+
* skips its step with a hint instead of failing, so a JS-only machine still ends up set up.
|
|
9
|
+
* Idempotent: whatever is already there is skipped. Every step runs even after a failure, so one
|
|
10
|
+
* pass surfaces every problem; the exit code is 1 if any failed. New-repo scaffolding is Phase 2.
|
|
11
|
+
*/
|
|
12
|
+
export type Scaffold = 'mise' | 'lefthook';
|
|
13
|
+
export declare const SCAFFOLDS: Record<Scaffold, {
|
|
14
|
+
file: string;
|
|
15
|
+
alt: string[];
|
|
16
|
+
template: string;
|
|
17
|
+
}>;
|
|
18
|
+
export interface InitState {
|
|
19
|
+
root: string;
|
|
20
|
+
config: KitConfig | undefined;
|
|
21
|
+
exists: (repoPath: string) => boolean;
|
|
22
|
+
pm: PackageManager;
|
|
23
|
+
/** Scaffolds the user accepted (or `--yes` did). */
|
|
24
|
+
accepted: Scaffold[];
|
|
25
|
+
/** Why a missing scaffold isn't written, when nobody could be asked. */
|
|
26
|
+
declinedReason?: string;
|
|
27
|
+
/** argv prefix that runs this kit (`bun --no-env-file …/cli.ts`). */
|
|
28
|
+
self: string[];
|
|
29
|
+
/** A node_modules binary run with the package manager of `cwd` (`bun x wrangler …`). */
|
|
30
|
+
exec: (cwd: string, bin: string, ...args: string[]) => string[];
|
|
31
|
+
/** Whether a tool is on PATH. Default: nothing is. */
|
|
32
|
+
which?: (bin: string) => boolean;
|
|
33
|
+
/** Bundler env for kit's fastlane Gemfile. */
|
|
34
|
+
bundleEnv?: () => Record<string, string>;
|
|
35
|
+
/** ANDROID_HOME / ANDROID_SDK_ROOT set, or sdk.dir in `<gradle root>/local.properties`. */
|
|
36
|
+
androidSdk?: boolean;
|
|
37
|
+
platform?: NodeJS.Platform;
|
|
38
|
+
/** `--js-only`: skip the Gradle and bundler steps. */
|
|
39
|
+
jsOnly?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export type InitAction = {
|
|
42
|
+
kind: 'env-file';
|
|
43
|
+
title: string;
|
|
44
|
+
} | {
|
|
45
|
+
kind: 'scaffold';
|
|
46
|
+
title: string;
|
|
47
|
+
scaffold: Scaffold;
|
|
48
|
+
} | {
|
|
49
|
+
kind: 'cmd';
|
|
50
|
+
title: string;
|
|
51
|
+
cmd: string[];
|
|
52
|
+
cwd: string;
|
|
53
|
+
env?: Record<string, string>;
|
|
54
|
+
} | {
|
|
55
|
+
kind: 'skip';
|
|
56
|
+
title: string;
|
|
57
|
+
reason: string;
|
|
58
|
+
};
|
|
59
|
+
/** What init would do, in order. Pure: everything it reads comes in through `state`. */
|
|
60
|
+
export declare function planInit(s: InitState): InitAction[];
|
|
61
|
+
/** kit's package root (templates live there), from src/commands or dist/. */
|
|
62
|
+
export declare function kitPackageRoot(from?: string): string;
|
|
63
|
+
export declare function renderTemplate(text: string, vars: Record<string, string>): string;
|
|
64
|
+
declare const _default: import("..").KitCommand<{
|
|
65
|
+
readonly 'js-only': {
|
|
66
|
+
readonly type: "boolean";
|
|
67
|
+
readonly description: "Skip the Gradle and bundler steps";
|
|
68
|
+
};
|
|
69
|
+
}>;
|
|
70
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: import("..").KitCommand<{
|
|
2
|
+
readonly fix: {
|
|
3
|
+
readonly type: "boolean";
|
|
4
|
+
readonly short: "f";
|
|
5
|
+
readonly description: "Apply fixes (runs each target's format command)";
|
|
6
|
+
};
|
|
7
|
+
readonly staged: {
|
|
8
|
+
readonly type: "boolean";
|
|
9
|
+
readonly description: "Only targets with staged files; workspace commands get the files";
|
|
10
|
+
};
|
|
11
|
+
}>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const _default: import("../..").KitCommand<{
|
|
2
|
+
readonly track: {
|
|
3
|
+
readonly type: "enum";
|
|
4
|
+
readonly short: "t";
|
|
5
|
+
readonly choices: ["internal", "alpha", "beta", "prod"];
|
|
6
|
+
readonly required: true;
|
|
7
|
+
readonly description: "Play internal testing · closed (alpha) · open (beta) · production (prod)";
|
|
8
|
+
};
|
|
9
|
+
readonly code: {
|
|
10
|
+
readonly type: "number";
|
|
11
|
+
readonly description: "Version code (default: max across Play tracks + 1)";
|
|
12
|
+
};
|
|
13
|
+
readonly notes: {
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
readonly description: "Release notes (default: commits since the last android/v* tag; clamped to 500)";
|
|
16
|
+
};
|
|
17
|
+
readonly rollout: {
|
|
18
|
+
readonly type: "number";
|
|
19
|
+
readonly description: "prod staged-rollout fraction, 0 < r <= 1 (default release.android.prodRollout or 0.1)";
|
|
20
|
+
};
|
|
21
|
+
readonly draft: {
|
|
22
|
+
readonly type: "boolean";
|
|
23
|
+
readonly description: "Upload as a draft release (required while the Play app is a draft)";
|
|
24
|
+
};
|
|
25
|
+
readonly skip: {
|
|
26
|
+
readonly type: "string";
|
|
27
|
+
readonly description: "Skip release.preflight checks by skipFlag (comma-separated)";
|
|
28
|
+
};
|
|
29
|
+
}>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: import("../..").KitCommand<{
|
|
2
|
+
readonly track: {
|
|
3
|
+
readonly type: "enum";
|
|
4
|
+
readonly short: "t";
|
|
5
|
+
readonly choices: ["internal", "alpha", "beta", "prod"];
|
|
6
|
+
readonly required: true;
|
|
7
|
+
readonly description: "internal: TestFlight internal · alpha/beta: TestFlight group · prod: App Store";
|
|
8
|
+
};
|
|
9
|
+
readonly build: {
|
|
10
|
+
readonly type: "number";
|
|
11
|
+
readonly description: "Build number (default: max in App Store Connect + 1)";
|
|
12
|
+
};
|
|
13
|
+
readonly notes: {
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
readonly description: "Release notes (default: commits since the last ios/v* tag); prod: What's New, required";
|
|
16
|
+
};
|
|
17
|
+
readonly skip: {
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
readonly description: "Skip release.preflight checks by skipFlag (comma-separated)";
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Args } from 'gunshi';
|
|
2
|
+
import { type KitCommand } from '../../cli/command';
|
|
3
|
+
/** Split a config command: `kit …` runs this kit (same binary), anything else runs under sh. */
|
|
4
|
+
export declare function serviceCmd(command: string): string[];
|
|
5
|
+
/** `kit release <service>`: build, deploy, then tag `{service}/v{version}` (PLAN §9.2). */
|
|
6
|
+
export declare function serviceCommand(name: string): KitCommand<Args>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: import("../..").KitCommand<{
|
|
2
|
+
readonly platform: {
|
|
3
|
+
readonly type: "string";
|
|
4
|
+
readonly short: "p";
|
|
5
|
+
readonly default: "all";
|
|
6
|
+
readonly description: "ios | android | all (ios + android) | a service key from versions.keys";
|
|
7
|
+
};
|
|
8
|
+
readonly 'no-push': {
|
|
9
|
+
readonly type: "boolean";
|
|
10
|
+
readonly description: "Commit only; do not push";
|
|
11
|
+
};
|
|
12
|
+
readonly pr: {
|
|
13
|
+
readonly type: "boolean";
|
|
14
|
+
readonly description: "Commit on a new branch, push it and open a PR (gh)";
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { KitConfig } from '../config/schema';
|
|
2
|
+
/**
|
|
3
|
+
* The iOS project to open, repo-relative: `release.ios.project`, else the first workspace (then
|
|
4
|
+
* project) under `<gradle root>/ios`. A workspace wins so CocoaPods setups open whole.
|
|
5
|
+
*/
|
|
6
|
+
export declare function findIosProject(root: string, config: KitConfig): string | undefined;
|
|
7
|
+
/** Xcode is installed: the app in /Applications, or `xcodebuild` on PATH. */
|
|
8
|
+
export declare function hasXcode(which?: (bin: string) => boolean, exists?: (path: string) => boolean): boolean;
|
|
9
|
+
declare const _default: import("..").KitCommand<import("gunshi").Args>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
defineCommand
|
|
4
|
+
} from "./cli-gqy1xp9t.js";
|
|
5
|
+
import"./cli-7wvrehng.js";
|
|
6
|
+
import"./cli-540nme4e.js";
|
|
7
|
+
import"./cli-5wasc5mr.js";
|
|
8
|
+
import {
|
|
9
|
+
__require
|
|
10
|
+
} from "./cli-re3ntm60.js";
|
|
11
|
+
|
|
12
|
+
// src/commands/completion.ts
|
|
13
|
+
var SHELLS = ["zsh", "bash", "fish"];
|
|
14
|
+
var completion_default = defineCommand({
|
|
15
|
+
description: "Print a shell completion script",
|
|
16
|
+
group: "Setup",
|
|
17
|
+
args: {
|
|
18
|
+
shell: { type: "positional", required: true, description: "zsh, bash or fish" }
|
|
19
|
+
},
|
|
20
|
+
examples: [
|
|
21
|
+
"# zsh: add to ~/.zshrc (after compinit)",
|
|
22
|
+
"source <(kit completion zsh)",
|
|
23
|
+
"# bash: add to ~/.bashrc",
|
|
24
|
+
"source <(kit completion bash)",
|
|
25
|
+
"# fish",
|
|
26
|
+
"kit completion fish > ~/.config/fish/completions/kit.fish"
|
|
27
|
+
].join(`
|
|
28
|
+
`),
|
|
29
|
+
async run(ctx) {
|
|
30
|
+
const { ExitCode, KitError } = await import("./errors-1fjbr7ee.js");
|
|
31
|
+
const shell = ctx.args.shell;
|
|
32
|
+
throw new KitError(`Unknown shell "${shell}"`, `Use one of: ${SHELLS.join(", ")}. Run \`kit completion --help\` for setup`, ExitCode.usage);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
completion_default as default,
|
|
37
|
+
SHELLS
|
|
38
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
childEnv
|
|
4
|
+
} from "./cli-fqfan92n.js";
|
|
5
|
+
import {
|
|
6
|
+
interrupted,
|
|
7
|
+
trackChild
|
|
8
|
+
} from "./cli-fqxtcj42.js";
|
|
9
|
+
import {
|
|
10
|
+
require_picocolors
|
|
11
|
+
} from "./cli-5wasc5mr.js";
|
|
12
|
+
import {
|
|
13
|
+
__toESM
|
|
14
|
+
} from "./cli-re3ntm60.js";
|
|
15
|
+
|
|
16
|
+
// src/lib/concurrent.ts
|
|
17
|
+
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
18
|
+
var COLORS = [import_picocolors.default.cyan, import_picocolors.default.magenta, import_picocolors.default.green, import_picocolors.default.yellow, import_picocolors.default.blue, import_picocolors.default.red];
|
|
19
|
+
async function runConcurrent(lanes, opts = {}) {
|
|
20
|
+
const write = opts.write ?? ((s) => process.stdout.write(s));
|
|
21
|
+
const width = Math.max(...lanes.map((l) => l.name.length));
|
|
22
|
+
const running = new Set;
|
|
23
|
+
let stopping = false;
|
|
24
|
+
const stopOthers = () => {
|
|
25
|
+
if (stopping)
|
|
26
|
+
return;
|
|
27
|
+
stopping = true;
|
|
28
|
+
for (const p of running) {
|
|
29
|
+
try {
|
|
30
|
+
process.kill(-p.pid, "SIGTERM");
|
|
31
|
+
} catch {}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const pump = async (stream, prefix) => {
|
|
35
|
+
const decoder = new TextDecoder;
|
|
36
|
+
let carry = "";
|
|
37
|
+
for await (const chunk of stream) {
|
|
38
|
+
const lines = (carry + decoder.decode(chunk, { stream: true })).split(/\r?\n/);
|
|
39
|
+
carry = lines.pop() ?? "";
|
|
40
|
+
for (const l of lines)
|
|
41
|
+
write(`${prefix}${l}
|
|
42
|
+
`);
|
|
43
|
+
}
|
|
44
|
+
if (carry)
|
|
45
|
+
write(`${prefix}${carry}
|
|
46
|
+
`);
|
|
47
|
+
};
|
|
48
|
+
const runLane = async (lane, i) => {
|
|
49
|
+
const color = COLORS[i % COLORS.length];
|
|
50
|
+
const prefix = `${color(lane.name.padEnd(width))} ${import_picocolors.default.dim("\u2502")} `;
|
|
51
|
+
let code = 0;
|
|
52
|
+
for (const c of lane.commands) {
|
|
53
|
+
if (stopping || interrupted())
|
|
54
|
+
break;
|
|
55
|
+
const proc = Bun.spawn([...c.cmd], {
|
|
56
|
+
cwd: c.cwd,
|
|
57
|
+
env: childEnv(c.env),
|
|
58
|
+
stdin: "ignore",
|
|
59
|
+
stdout: "pipe",
|
|
60
|
+
stderr: "pipe",
|
|
61
|
+
detached: true
|
|
62
|
+
});
|
|
63
|
+
trackChild(proc, true);
|
|
64
|
+
running.add(proc);
|
|
65
|
+
await Promise.all([
|
|
66
|
+
pump(proc.stdout, prefix),
|
|
67
|
+
pump(proc.stderr, prefix)
|
|
68
|
+
]);
|
|
69
|
+
code = await proc.exited;
|
|
70
|
+
running.delete(proc);
|
|
71
|
+
if (code !== 0)
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
if (code !== 0 && !interrupted() && !stopping) {
|
|
75
|
+
write(`${prefix}${import_picocolors.default.red(`exited with ${code}`)}
|
|
76
|
+
`);
|
|
77
|
+
stopOthers();
|
|
78
|
+
return { name: lane.name, code };
|
|
79
|
+
}
|
|
80
|
+
return { name: lane.name, code: stopping || interrupted() ? 0 : code };
|
|
81
|
+
};
|
|
82
|
+
const safeLane = async (lane, i) => {
|
|
83
|
+
try {
|
|
84
|
+
return await runLane(lane, i);
|
|
85
|
+
} catch (e) {
|
|
86
|
+
write(`${lane.name} ${import_picocolors.default.red(e instanceof Error ? e.message : String(e))}
|
|
87
|
+
`);
|
|
88
|
+
stopOthers();
|
|
89
|
+
return { name: lane.name, code: 1 };
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
return await Promise.all(lanes.map(safeLane));
|
|
93
|
+
}
|
|
94
|
+
export {
|
|
95
|
+
runConcurrent
|
|
96
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type KitConfig } from './schema';
|
|
2
|
+
export declare const CONFIG_FILE = "kit.config.ts";
|
|
3
|
+
export declare function findRoot(from?: string): string | undefined;
|
|
4
|
+
/** Load `<root>/.env` into process.env without overriding values already set. */
|
|
5
|
+
export declare function loadDotEnv(root: string): Promise<void>;
|
|
6
|
+
export declare function loadConfig(root: string): Promise<KitConfig>;
|