@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,334 @@
|
|
|
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
|
+
__toESM
|
|
11
|
+
} from "./cli-re3ntm60.js";
|
|
12
|
+
|
|
13
|
+
// src/commands/deps.ts
|
|
14
|
+
import { existsSync, readFileSync, writeFileSync } from "fs";
|
|
15
|
+
import { join, relative } from "path";
|
|
16
|
+
var CATALOG_REF = "catalog:";
|
|
17
|
+
var CATALOG_FIELD = "catalog";
|
|
18
|
+
var DEPENDENCY_FIELDS = [
|
|
19
|
+
"dependencies",
|
|
20
|
+
"devDependencies",
|
|
21
|
+
"peerDependencies",
|
|
22
|
+
"optionalDependencies"
|
|
23
|
+
];
|
|
24
|
+
function readManifest(path) {
|
|
25
|
+
return JSON.parse(readFileSync(path, "utf8"));
|
|
26
|
+
}
|
|
27
|
+
function writeManifest(path, manifest) {
|
|
28
|
+
writeFileSync(path, `${JSON.stringify(manifest, null, 2)}
|
|
29
|
+
`);
|
|
30
|
+
}
|
|
31
|
+
function catalogOf(manifest) {
|
|
32
|
+
const ws = manifest.workspaces;
|
|
33
|
+
return (ws && !Array.isArray(ws) ? ws.catalog : undefined) ?? manifest.catalog;
|
|
34
|
+
}
|
|
35
|
+
function workspaceGlobs(manifest) {
|
|
36
|
+
const ws = manifest.workspaces;
|
|
37
|
+
if (!ws)
|
|
38
|
+
return [];
|
|
39
|
+
return Array.isArray(ws) ? ws : ws.packages ?? [];
|
|
40
|
+
}
|
|
41
|
+
function catalogRefs(manifest) {
|
|
42
|
+
const refs = [];
|
|
43
|
+
for (const field of DEPENDENCY_FIELDS) {
|
|
44
|
+
for (const [name, range] of Object.entries(manifest[field] ?? {})) {
|
|
45
|
+
if (range === CATALOG_REF)
|
|
46
|
+
refs.push({ field, name });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return refs;
|
|
50
|
+
}
|
|
51
|
+
function restoreCatalogRefs(manifest, refs) {
|
|
52
|
+
const restored = [];
|
|
53
|
+
for (const { field, name } of refs) {
|
|
54
|
+
const declared = manifest[field];
|
|
55
|
+
if (declared === undefined || declared[name] === undefined || declared[name] === CATALOG_REF)
|
|
56
|
+
continue;
|
|
57
|
+
declared[name] = CATALOG_REF;
|
|
58
|
+
restored.push(name);
|
|
59
|
+
}
|
|
60
|
+
return restored;
|
|
61
|
+
}
|
|
62
|
+
function nextRange(current, latest) {
|
|
63
|
+
if (current.startsWith("~"))
|
|
64
|
+
return `~${latest}`;
|
|
65
|
+
if (/^\d/.test(current))
|
|
66
|
+
return latest;
|
|
67
|
+
return `^${latest}`;
|
|
68
|
+
}
|
|
69
|
+
function setCatalogRange(manifest, name, latest) {
|
|
70
|
+
const catalog = catalogOf(manifest);
|
|
71
|
+
const current = catalog?.[name];
|
|
72
|
+
if (catalog === undefined || current === undefined)
|
|
73
|
+
return;
|
|
74
|
+
const to = nextRange(current, latest);
|
|
75
|
+
catalog[name] = to;
|
|
76
|
+
return { field: CATALOG_FIELD, from: current, to };
|
|
77
|
+
}
|
|
78
|
+
function setDeclaredRange(manifest, name, latest) {
|
|
79
|
+
const changes = [];
|
|
80
|
+
for (const field of DEPENDENCY_FIELDS) {
|
|
81
|
+
const declared = manifest[field];
|
|
82
|
+
const current = declared?.[name];
|
|
83
|
+
if (declared === undefined || current === undefined)
|
|
84
|
+
continue;
|
|
85
|
+
if (current === CATALOG_REF || current.startsWith("workspace:"))
|
|
86
|
+
continue;
|
|
87
|
+
const to = nextRange(current, latest);
|
|
88
|
+
declared[name] = to;
|
|
89
|
+
changes.push({ field, from: current, to });
|
|
90
|
+
}
|
|
91
|
+
return changes;
|
|
92
|
+
}
|
|
93
|
+
function manifestPaths(root) {
|
|
94
|
+
const rootManifest = join(root, "package.json");
|
|
95
|
+
if (!existsSync(rootManifest))
|
|
96
|
+
return [];
|
|
97
|
+
const paths = [rootManifest];
|
|
98
|
+
for (const pattern of workspaceGlobs(readManifest(rootManifest))) {
|
|
99
|
+
const glob = new Bun.Glob(`${pattern.replace(/\/$/, "")}/package.json`);
|
|
100
|
+
for (const file of [...glob.scanSync({ cwd: root, onlyFiles: true })].sort()) {
|
|
101
|
+
if (!file.includes("node_modules"))
|
|
102
|
+
paths.push(join(root, file));
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return paths;
|
|
106
|
+
}
|
|
107
|
+
var OUTDATED_CMD = ["bun", "outdated", "--filter", "*"];
|
|
108
|
+
function inRangeOutdated(table) {
|
|
109
|
+
const names = new Set;
|
|
110
|
+
for (const row of table.split(`
|
|
111
|
+
`)) {
|
|
112
|
+
const [, name, current, update] = row.split("|").map((cell) => cell.trim());
|
|
113
|
+
if (name === undefined || update === undefined || name === "Package")
|
|
114
|
+
continue;
|
|
115
|
+
if (current === update)
|
|
116
|
+
continue;
|
|
117
|
+
names.add(name.replace(/ \(dev\)$/, ""));
|
|
118
|
+
}
|
|
119
|
+
return [...names];
|
|
120
|
+
}
|
|
121
|
+
function outdatedRows(table) {
|
|
122
|
+
let header;
|
|
123
|
+
const rows = [];
|
|
124
|
+
for (const line of table.split(`
|
|
125
|
+
`)) {
|
|
126
|
+
const trimmed = line.trim();
|
|
127
|
+
if (!trimmed.startsWith("|"))
|
|
128
|
+
continue;
|
|
129
|
+
const cells = trimmed.replace(/^\||\|$/g, "").split("|").map((c) => c.trim());
|
|
130
|
+
if (!header) {
|
|
131
|
+
if (cells[0] === "Package")
|
|
132
|
+
header = cells.map((h) => h.toLowerCase());
|
|
133
|
+
continue;
|
|
134
|
+
}
|
|
135
|
+
if (cells.every((c) => /^[-:]*$/.test(c)))
|
|
136
|
+
continue;
|
|
137
|
+
const keys = header;
|
|
138
|
+
rows.push(Object.fromEntries(keys.map((h, i) => [h, cells[i] ?? ""])));
|
|
139
|
+
}
|
|
140
|
+
return rows;
|
|
141
|
+
}
|
|
142
|
+
function planEdits(files, name, latest) {
|
|
143
|
+
return files.flatMap(({ path, manifest }) => {
|
|
144
|
+
const inCatalog = setCatalogRange(manifest, name, latest);
|
|
145
|
+
const changes = [
|
|
146
|
+
...inCatalog === undefined ? [] : [inCatalog],
|
|
147
|
+
...setDeclaredRange(manifest, name, latest)
|
|
148
|
+
];
|
|
149
|
+
return changes.map((change) => ({ path, name, change }));
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
async function latestVersion(name) {
|
|
153
|
+
const registry = (process.env.npm_config_registry ?? "https://registry.npmjs.org").replace(/\/$/, "");
|
|
154
|
+
const res = await fetch(`${registry}/${name.replace("/", "%2f")}/latest`);
|
|
155
|
+
if (!res.ok)
|
|
156
|
+
throw new Error(`Registry lookup failed for ${name}: ${res.status} ${res.statusText}`);
|
|
157
|
+
const body = await res.json();
|
|
158
|
+
if (typeof body.version !== "string")
|
|
159
|
+
throw new Error(`Registry returned no version for ${name}`);
|
|
160
|
+
return body.version;
|
|
161
|
+
}
|
|
162
|
+
var deps_default = defineCommand({
|
|
163
|
+
description: "List or update npm dependencies across the workspace (catalog-aware)",
|
|
164
|
+
group: "Setup",
|
|
165
|
+
examples: [
|
|
166
|
+
"kit deps # list everything with a newer version",
|
|
167
|
+
"kit deps update # newest versions the declared ranges allow (bun.lock only)",
|
|
168
|
+
"kit deps latest wrangler # rewrite ranges to latest (catalog entry first), then install"
|
|
169
|
+
].join(`
|
|
170
|
+
`),
|
|
171
|
+
async run(ctx) {
|
|
172
|
+
const { requireProject } = await import("./command-j1etpmj6.js");
|
|
173
|
+
const { ExitCode, KitError } = await import("./errors-1fjbr7ee.js");
|
|
174
|
+
const { detectPackageManager } = await import("./pm-5q5vz6w3.js");
|
|
175
|
+
const { root } = requireProject(ctx);
|
|
176
|
+
if (detectPackageManager(root, root) !== "bun") {
|
|
177
|
+
throw new KitError("kit deps supports bun workspaces only", undefined, ExitCode.usage);
|
|
178
|
+
}
|
|
179
|
+
const [sub, ...names] = ctx.positionals;
|
|
180
|
+
switch (sub) {
|
|
181
|
+
case undefined:
|
|
182
|
+
return await list(ctx, root);
|
|
183
|
+
case "update":
|
|
184
|
+
if (names.length) {
|
|
185
|
+
throw new KitError("kit deps update takes no package names", "To move a range, use `kit deps latest <pkgs\u2026>`", ExitCode.usage);
|
|
186
|
+
}
|
|
187
|
+
return await update(ctx, root);
|
|
188
|
+
case "latest":
|
|
189
|
+
if (!names.length) {
|
|
190
|
+
throw new KitError("kit deps latest needs package names", "e.g. `kit deps latest wrangler astro`", ExitCode.usage);
|
|
191
|
+
}
|
|
192
|
+
return await latest(ctx, root, names);
|
|
193
|
+
default:
|
|
194
|
+
throw new KitError(`Unknown deps command "${sub}"`, "Use `kit deps`, `update` or `latest`", ExitCode.usage);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
async function list(ctx, root) {
|
|
199
|
+
const { run, runCapture } = await import("./proc-jv4bcyyx.js");
|
|
200
|
+
const { emitJson } = await import("./log-g1ebh60s.js");
|
|
201
|
+
if (ctx.flags.dryRun) {
|
|
202
|
+
if (ctx.flags.json)
|
|
203
|
+
emitJson({ dryRun: true, cmd: OUTDATED_CMD });
|
|
204
|
+
else
|
|
205
|
+
ctx.log.step(OUTDATED_CMD.join(" "));
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
if (ctx.flags.json) {
|
|
209
|
+
const { code, stdout } = await runCapture(OUTDATED_CMD, { cwd: root });
|
|
210
|
+
emitJson({ ok: code === 0, outdated: outdatedRows(stdout) });
|
|
211
|
+
if (code !== 0)
|
|
212
|
+
process.exitCode = code;
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
process.exitCode = await run(OUTDATED_CMD, { cwd: root });
|
|
216
|
+
}
|
|
217
|
+
async function update(ctx, root) {
|
|
218
|
+
const { run, runCapture, runToStderr } = await import("./proc-jv4bcyyx.js");
|
|
219
|
+
const { onCleanup } = await import("./cleanup-hrcvxmh2.js");
|
|
220
|
+
const { emitJson } = await import("./log-g1ebh60s.js");
|
|
221
|
+
const exec = ctx.flags.json ? runToStderr : run;
|
|
222
|
+
const report = (doc) => {
|
|
223
|
+
if (ctx.flags.json)
|
|
224
|
+
emitJson({ dryRun: ctx.flags.dryRun, ...doc });
|
|
225
|
+
};
|
|
226
|
+
const listed = await runCapture(OUTDATED_CMD, { cwd: root });
|
|
227
|
+
if (listed.code !== 0) {
|
|
228
|
+
report({ ok: false, packages: [] });
|
|
229
|
+
process.exitCode = listed.code;
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
const names = inRangeOutdated(listed.stdout);
|
|
233
|
+
if (!names.length) {
|
|
234
|
+
report({ ok: true, packages: [] });
|
|
235
|
+
ctx.log.success("Every declared range already has its newest match installed");
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
ctx.log.dim(`in range: ${names.join(", ")}`);
|
|
239
|
+
const cmds = [
|
|
240
|
+
["bun", "update"],
|
|
241
|
+
["bun", "update", ...names],
|
|
242
|
+
["bun", "install"]
|
|
243
|
+
];
|
|
244
|
+
if (ctx.flags.dryRun) {
|
|
245
|
+
report({ ok: true, packages: names, cmds });
|
|
246
|
+
if (!ctx.flags.json)
|
|
247
|
+
for (const c of cmds)
|
|
248
|
+
ctx.log.step(c.join(" "));
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
const before = manifestPaths(root).map((path) => ({ path, text: readFileSync(path, "utf8") }));
|
|
252
|
+
const restore = () => {
|
|
253
|
+
for (const { path, text } of before)
|
|
254
|
+
writeFileSync(path, text);
|
|
255
|
+
};
|
|
256
|
+
const off = onCleanup(restore);
|
|
257
|
+
let code = 0;
|
|
258
|
+
try {
|
|
259
|
+
for (const cmd of cmds.slice(0, 2)) {
|
|
260
|
+
code = await exec(cmd, { cwd: root });
|
|
261
|
+
if (code !== 0)
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
} finally {
|
|
265
|
+
off();
|
|
266
|
+
restore();
|
|
267
|
+
}
|
|
268
|
+
if (code === 0)
|
|
269
|
+
code = await exec(cmds[2], { cwd: root });
|
|
270
|
+
report({ ok: code === 0, packages: names });
|
|
271
|
+
if (code !== 0)
|
|
272
|
+
process.exitCode = code;
|
|
273
|
+
}
|
|
274
|
+
async function latest(ctx, root, names) {
|
|
275
|
+
const pc = (await import("./picocolors-0dxagz5d.js").then((m)=>__toESM(m.default,1))).default;
|
|
276
|
+
const { ExitCode, KitError } = await import("./errors-1fjbr7ee.js");
|
|
277
|
+
const { emitJson } = await import("./log-g1ebh60s.js");
|
|
278
|
+
const { run, runToStderr } = await import("./proc-jv4bcyyx.js");
|
|
279
|
+
const rootManifest = join(root, "package.json");
|
|
280
|
+
const files = manifestPaths(root).map((path) => ({ path, manifest: readManifest(path) }));
|
|
281
|
+
const pinned = catalogRefs(readManifest(rootManifest));
|
|
282
|
+
const planned = await Promise.all(names.map(async (name) => ({ name, edits: planEdits(files, name, await latestVersion(name)) })));
|
|
283
|
+
const undeclared = planned.filter((p) => !p.edits.length).map((p) => p.name);
|
|
284
|
+
if (undeclared.length) {
|
|
285
|
+
throw new KitError(`Not a dependency of this workspace: ${undeclared.join(", ")}`, undefined, ExitCode.usage);
|
|
286
|
+
}
|
|
287
|
+
const edits = planned.flatMap((p) => p.edits);
|
|
288
|
+
const shown = edits.map((e) => ({ ...e, path: relative(root, e.path) || "package.json" }));
|
|
289
|
+
if (!ctx.flags.json) {
|
|
290
|
+
for (const { path, name, change } of edits) {
|
|
291
|
+
const where = change.field === CATALOG_FIELD ? "catalog" : `${relative(root, path)} ${change.field}`;
|
|
292
|
+
ctx.log.info(` ${pc.bold(name)} ${change.from} \u2192 ${pc.green(change.to)} ${pc.dim(where)}`);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
if (ctx.flags.dryRun) {
|
|
296
|
+
if (ctx.flags.json)
|
|
297
|
+
emitJson({ dryRun: true, edits: shown });
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
const touched = new Set(edits.map((e) => e.path));
|
|
301
|
+
for (const { path, manifest: manifest2 } of files)
|
|
302
|
+
if (touched.has(path))
|
|
303
|
+
writeManifest(path, manifest2);
|
|
304
|
+
const code = await (ctx.flags.json ? runToStderr : run)(["bun", "install"], { cwd: root });
|
|
305
|
+
const manifest = readManifest(rootManifest);
|
|
306
|
+
const restored = restoreCatalogRefs(manifest, pinned);
|
|
307
|
+
if (restored.length) {
|
|
308
|
+
writeManifest(rootManifest, manifest);
|
|
309
|
+
ctx.log.dim(`re-pinned to the catalog: ${restored.join(", ")}`);
|
|
310
|
+
}
|
|
311
|
+
if (ctx.flags.json)
|
|
312
|
+
emitJson({ dryRun: false, ok: code === 0, edits: shown, restored });
|
|
313
|
+
if (code !== 0)
|
|
314
|
+
process.exitCode = code;
|
|
315
|
+
}
|
|
316
|
+
export {
|
|
317
|
+
writeManifest,
|
|
318
|
+
workspaceGlobs,
|
|
319
|
+
setDeclaredRange,
|
|
320
|
+
setCatalogRange,
|
|
321
|
+
restoreCatalogRefs,
|
|
322
|
+
readManifest,
|
|
323
|
+
planEdits,
|
|
324
|
+
outdatedRows,
|
|
325
|
+
nextRange,
|
|
326
|
+
manifestPaths,
|
|
327
|
+
inRangeOutdated,
|
|
328
|
+
deps_default as default,
|
|
329
|
+
catalogRefs,
|
|
330
|
+
catalogOf,
|
|
331
|
+
DEPENDENCY_FIELDS,
|
|
332
|
+
CATALOG_REF,
|
|
333
|
+
CATALOG_FIELD
|
|
334
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
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/dev.ts
|
|
13
|
+
var dev_default = defineCommand({
|
|
14
|
+
description: "Run dev servers: one target, several, or every target with a dev command (Ctrl-C stops all)",
|
|
15
|
+
group: "Develop",
|
|
16
|
+
args: {
|
|
17
|
+
env: { type: "string", short: "e", description: "Environment, for targets that declare envs" }
|
|
18
|
+
},
|
|
19
|
+
examples: [
|
|
20
|
+
"kit dev # workspace.dev and every target with a dev command, together",
|
|
21
|
+
"kit dev api # one dev server, attached to the terminal",
|
|
22
|
+
"kit dev api admin # several, output prefixed by target",
|
|
23
|
+
"kit dev web --env staging",
|
|
24
|
+
"kit dev --dry-run --json"
|
|
25
|
+
].join(`
|
|
26
|
+
`),
|
|
27
|
+
async run(ctx) {
|
|
28
|
+
const { relative } = await import("path");
|
|
29
|
+
const { requireProject } = await import("./command-j1etpmj6.js");
|
|
30
|
+
const { selectTargets, targetCommands, WORKSPACE } = await import("./targets-bywmzbtj.js");
|
|
31
|
+
const { envsFor } = await import("./deploy-af2v2jhj.js");
|
|
32
|
+
const { runInteractive, shell } = await import("./proc-jv4bcyyx.js");
|
|
33
|
+
const { interrupted } = await import("./cleanup-hrcvxmh2.js");
|
|
34
|
+
const { emitJson } = await import("./log-g1ebh60s.js");
|
|
35
|
+
const { ExitCode, KitError } = await import("./errors-1fjbr7ee.js");
|
|
36
|
+
const { root, config } = requireProject(ctx);
|
|
37
|
+
if (config.cloudflare?.accountId) {
|
|
38
|
+
try {
|
|
39
|
+
(await import("./cloudflare-xf7e2dn3.js")).pinCloudflareAccount(root, config);
|
|
40
|
+
} catch (e) {
|
|
41
|
+
if (!(e instanceof KitError))
|
|
42
|
+
throw e;
|
|
43
|
+
ctx.log.warn(`${e.message}; CLOUDFLARE_ACCOUNT_ID not pinned`);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
const named = ctx.positionals;
|
|
47
|
+
const bare = !named.length;
|
|
48
|
+
const names = selectTargets(config, named).targets.map(([n]) => n);
|
|
49
|
+
const envs = envsFor(config, names, ctx.args.env);
|
|
50
|
+
const lanes = [];
|
|
51
|
+
if (bare || named.includes(WORKSPACE)) {
|
|
52
|
+
const ws = config.workspace?.dev;
|
|
53
|
+
if (ws) {
|
|
54
|
+
const list = Array.isArray(ws) ? ws : [ws];
|
|
55
|
+
lanes.push({
|
|
56
|
+
name: WORKSPACE,
|
|
57
|
+
commands: list.map((s) => ({ title: s, cmd: shell(s, ctx.rest), cwd: root }))
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
for (const name of names) {
|
|
62
|
+
const cmds = targetCommands(root, config, name, "dev", { env: envs.get(name), extra: ctx.rest });
|
|
63
|
+
if (cmds)
|
|
64
|
+
lanes.push({ name, commands: cmds });
|
|
65
|
+
else if (!bare) {
|
|
66
|
+
throw new KitError(`Target "${name}" has no dev command`, `Set targets.${name}.dev in kit.config.ts`, ExitCode.usage);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
if (!lanes.length) {
|
|
70
|
+
throw new KitError("No target has a dev command", "Set workspace.dev or targets.<name>.dev in kit.config.ts", ExitCode.usage);
|
|
71
|
+
}
|
|
72
|
+
const where = (cwd) => relative(root, cwd) || ".";
|
|
73
|
+
if (ctx.flags.dryRun) {
|
|
74
|
+
if (ctx.flags.json) {
|
|
75
|
+
emitJson({
|
|
76
|
+
dryRun: true,
|
|
77
|
+
plan: lanes.map((l) => ({
|
|
78
|
+
target: l.name,
|
|
79
|
+
commands: l.commands.map((c) => ({ cmd: c.cmd, cwd: where(c.cwd) }))
|
|
80
|
+
}))
|
|
81
|
+
});
|
|
82
|
+
} else {
|
|
83
|
+
for (const l of lanes)
|
|
84
|
+
for (const c of l.commands)
|
|
85
|
+
ctx.log.step(`${l.name} ${where(c.cwd)} $ ${c.cmd.join(" ")}`);
|
|
86
|
+
}
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
let results;
|
|
90
|
+
if (lanes.length === 1 && !ctx.flags.json) {
|
|
91
|
+
const lane = lanes[0];
|
|
92
|
+
let code = 0;
|
|
93
|
+
for (const c of lane.commands) {
|
|
94
|
+
code = await runInteractive(c.cmd, { cwd: c.cwd, env: c.env });
|
|
95
|
+
if (interrupted() || code !== 0)
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
results = [{ name: lane.name, code }];
|
|
99
|
+
} else {
|
|
100
|
+
const { runConcurrent } = await import("./concurrent-zdz69ye5.js");
|
|
101
|
+
if (!ctx.flags.json)
|
|
102
|
+
ctx.log.step(`dev: ${lanes.map((l) => l.name).join(", ")} (Ctrl-C stops all)`);
|
|
103
|
+
results = await runConcurrent(lanes, ctx.flags.json ? { write: (s) => process.stderr.write(s) } : {});
|
|
104
|
+
}
|
|
105
|
+
const ok = results.every((r) => r.code === 0);
|
|
106
|
+
if (ctx.flags.json)
|
|
107
|
+
emitJson({ ok, interrupted: interrupted(), targets: results });
|
|
108
|
+
if (!ok)
|
|
109
|
+
process.exitCode = ExitCode.failed;
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
export {
|
|
113
|
+
dev_default as default
|
|
114
|
+
};
|