@gluhar/cli 3.0.2 → 6.0.0-next.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/package.json +53 -46
- package/src/GlobalOptions.d.ts +8 -0
- package/src/GlobalOptions.d.ts.map +1 -0
- package/src/GlobalOptions.js +2 -0
- package/src/commands/blank/BlankOptions.d.ts +4 -0
- package/src/commands/blank/BlankOptions.d.ts.map +1 -0
- package/src/commands/blank/BlankOptions.js +2 -0
- package/src/commands/blank/blank.d.ts +3 -0
- package/src/commands/blank/blank.d.ts.map +1 -0
- package/src/commands/blank/blank.js +8 -0
- package/src/commands/blank/index.d.ts +4 -0
- package/src/commands/blank/index.d.ts.map +1 -0
- package/src/commands/blank/index.js +9 -0
- package/src/commands/blank/log.d.ts +2 -0
- package/src/commands/blank/log.d.ts.map +1 -0
- package/src/commands/blank/log.js +5 -0
- package/src/commands/build/BuildOptions.d.ts +4 -0
- package/src/commands/build/BuildOptions.d.ts.map +1 -0
- package/src/commands/build/BuildOptions.js +2 -0
- package/src/commands/build/build.d.ts +3 -0
- package/src/commands/build/build.d.ts.map +1 -0
- package/src/commands/build/build.js +22 -0
- package/src/commands/build/index.d.ts +4 -0
- package/src/commands/build/index.d.ts.map +1 -0
- package/src/commands/build/index.js +9 -0
- package/src/commands/build/log.d.ts +2 -0
- package/src/commands/build/log.d.ts.map +1 -0
- package/src/commands/build/log.js +5 -0
- package/src/commands/danka/DankaOptions.d.ts +4 -0
- package/src/commands/danka/DankaOptions.d.ts.map +1 -0
- package/src/commands/danka/DankaOptions.js +2 -0
- package/src/commands/danka/danka.d.ts +3 -0
- package/src/commands/danka/danka.d.ts.map +1 -0
- package/src/commands/danka/danka.js +8 -0
- package/src/commands/danka/index.d.ts +4 -0
- package/src/commands/danka/index.d.ts.map +1 -0
- package/src/commands/danka/index.js +9 -0
- package/src/commands/danka/log.d.ts +2 -0
- package/src/commands/danka/log.d.ts.map +1 -0
- package/src/commands/danka/log.js +5 -0
- package/src/commands/deinstall/DeinstallOptions.d.ts +4 -0
- package/src/commands/deinstall/DeinstallOptions.d.ts.map +1 -0
- package/src/commands/deinstall/DeinstallOptions.js +2 -0
- package/src/commands/deinstall/deinstall.d.ts +3 -0
- package/src/commands/deinstall/deinstall.d.ts.map +1 -0
- package/src/commands/deinstall/deinstall.js +21 -0
- package/src/commands/deinstall/index.d.ts +4 -0
- package/src/commands/deinstall/index.d.ts.map +1 -0
- package/src/commands/deinstall/index.js +9 -0
- package/src/commands/deinstall/log.d.ts +2 -0
- package/src/commands/deinstall/log.d.ts.map +1 -0
- package/src/commands/deinstall/log.js +5 -0
- package/src/commands/deploy/DeployOptions.d.ts +7 -0
- package/src/commands/deploy/DeployOptions.d.ts.map +1 -0
- package/src/commands/deploy/DeployOptions.js +2 -0
- package/src/commands/deploy/deploy.d.ts +3 -0
- package/src/commands/deploy/deploy.d.ts.map +1 -0
- package/src/commands/deploy/deploy.js +33 -0
- package/src/commands/deploy/deployIos.d.ts +2 -0
- package/src/commands/deploy/deployIos.d.ts.map +1 -0
- package/src/commands/deploy/deployIos.js +44 -0
- package/src/commands/deploy/index.d.ts +4 -0
- package/src/commands/deploy/index.d.ts.map +1 -0
- package/src/commands/deploy/index.js +12 -0
- package/src/commands/deploy/log.d.ts +2 -0
- package/src/commands/deploy/log.d.ts.map +1 -0
- package/src/commands/deploy/log.js +5 -0
- package/src/commands/deploy/setSsr.d.ts +2 -0
- package/src/commands/deploy/setSsr.d.ts.map +1 -0
- package/src/commands/deploy/setSsr.js +25 -0
- package/src/commands/dev/DevOptions.d.ts +5 -0
- package/src/commands/dev/DevOptions.d.ts.map +1 -0
- package/src/commands/dev/DevOptions.js +2 -0
- package/src/commands/dev/dev.d.ts +3 -0
- package/src/commands/dev/dev.d.ts.map +1 -0
- package/src/commands/dev/dev.js +16 -0
- package/src/commands/dev/devIos.d.ts +3 -0
- package/src/commands/dev/devIos.d.ts.map +1 -0
- package/src/commands/dev/devIos.js +26 -0
- package/src/commands/dev/index.d.ts +4 -0
- package/src/commands/dev/index.d.ts.map +1 -0
- package/src/commands/dev/index.js +10 -0
- package/src/commands/dev/log.d.ts +2 -0
- package/src/commands/dev/log.d.ts.map +1 -0
- package/src/commands/dev/log.js +5 -0
- package/src/commands/generate/GenerateOptions.d.ts +9 -0
- package/src/commands/generate/GenerateOptions.d.ts.map +1 -0
- package/src/commands/generate/GenerateOptions.js +4 -0
- package/src/commands/generate/generate.d.ts +3 -0
- package/src/commands/generate/generate.d.ts.map +1 -0
- package/src/commands/generate/generate.js +22 -0
- package/src/commands/generate/generateCommand.d.ts +2 -0
- package/src/commands/generate/generateCommand.d.ts.map +1 -0
- package/src/commands/generate/generateCommand.js +36 -0
- package/src/commands/generate/generateProject.d.ts +3 -0
- package/src/commands/generate/generateProject.d.ts.map +1 -0
- package/src/commands/generate/generateProject.js +86 -0
- package/src/commands/generate/index.d.ts +4 -0
- package/src/commands/generate/index.d.ts.map +1 -0
- package/src/commands/generate/index.js +14 -0
- package/src/commands/generate/log.d.ts +2 -0
- package/src/commands/generate/log.d.ts.map +1 -0
- package/src/commands/generate/log.js +5 -0
- package/src/commands/index.d.ts +3 -0
- package/src/commands/index.d.ts.map +1 -0
- package/src/commands/index.js +25 -0
- package/src/commands/kiss/KissOptions.d.ts +4 -0
- package/src/commands/kiss/KissOptions.d.ts.map +1 -0
- package/src/commands/kiss/KissOptions.js +2 -0
- package/src/commands/kiss/index.d.ts +4 -0
- package/src/commands/kiss/index.d.ts.map +1 -0
- package/src/commands/kiss/index.js +9 -0
- package/src/commands/kiss/kiss.d.ts +3 -0
- package/src/commands/kiss/kiss.d.ts.map +1 -0
- package/src/commands/kiss/kiss.js +8 -0
- package/src/commands/kiss/log.d.ts +2 -0
- package/src/commands/kiss/log.d.ts.map +1 -0
- package/src/commands/kiss/log.js +5 -0
- package/src/commands/reinstall/ReinstallOptions.d.ts +4 -0
- package/src/commands/reinstall/ReinstallOptions.d.ts.map +1 -0
- package/src/commands/reinstall/ReinstallOptions.js +2 -0
- package/src/commands/reinstall/index.d.ts +4 -0
- package/src/commands/reinstall/index.d.ts.map +1 -0
- package/src/commands/reinstall/index.js +9 -0
- package/src/commands/reinstall/log.d.ts +2 -0
- package/src/commands/reinstall/log.d.ts.map +1 -0
- package/src/commands/reinstall/log.js +5 -0
- package/src/commands/reinstall/reinstall.d.ts +3 -0
- package/src/commands/reinstall/reinstall.d.ts.map +1 -0
- package/src/commands/reinstall/reinstall.js +14 -0
- package/src/commands/release/ReleaseOptions.d.ts +10 -0
- package/src/commands/release/ReleaseOptions.d.ts.map +1 -0
- package/src/commands/release/ReleaseOptions.js +2 -0
- package/src/commands/release/index.d.ts +4 -0
- package/src/commands/release/index.d.ts.map +1 -0
- package/src/commands/release/index.js +26 -0
- package/src/commands/release/log.d.ts +2 -0
- package/src/commands/release/log.d.ts.map +1 -0
- package/src/commands/release/log.js +5 -0
- package/src/commands/release/publish.d.ts +3 -0
- package/src/commands/release/publish.d.ts.map +1 -0
- package/src/commands/release/publish.js +20 -0
- package/src/commands/release/release.d.ts +3 -0
- package/src/commands/release/release.d.ts.map +1 -0
- package/src/commands/release/release.js +31 -0
- package/src/commands/release/tag.d.ts +23 -0
- package/src/commands/release/tag.d.ts.map +1 -0
- package/src/commands/release/tag.js +93 -0
- package/src/commands/upgrade/UpgradeOptions.d.ts +5 -0
- package/src/commands/upgrade/UpgradeOptions.d.ts.map +1 -0
- package/src/commands/upgrade/UpgradeOptions.js +2 -0
- package/src/commands/upgrade/index.d.ts +4 -0
- package/src/commands/upgrade/index.d.ts.map +1 -0
- package/src/commands/upgrade/index.js +9 -0
- package/src/commands/upgrade/log.d.ts +2 -0
- package/src/commands/upgrade/log.d.ts.map +1 -0
- package/src/commands/upgrade/log.js +5 -0
- package/src/commands/upgrade/upgrade.d.ts +3 -0
- package/src/commands/upgrade/upgrade.d.ts.map +1 -0
- package/src/commands/upgrade/upgrade.js +22 -0
- package/src/commands/version/VersionOptions.d.ts +8 -0
- package/src/commands/version/VersionOptions.d.ts.map +1 -0
- package/src/commands/version/VersionOptions.js +2 -0
- package/src/commands/version/getPreid.d.ts +2 -0
- package/src/commands/version/getPreid.d.ts.map +1 -0
- package/src/commands/version/getPreid.js +10 -0
- package/src/commands/version/index.d.ts +4 -0
- package/src/commands/version/index.d.ts.map +1 -0
- package/src/commands/version/index.js +12 -0
- package/src/commands/version/log.d.ts +2 -0
- package/src/commands/version/log.d.ts.map +1 -0
- package/src/commands/version/log.js +5 -0
- package/src/commands/version/pimpChangelogs.d.ts +2 -0
- package/src/commands/version/pimpChangelogs.d.ts.map +1 -0
- package/src/commands/version/pimpChangelogs.js +37 -0
- package/src/commands/version/version.d.ts +3 -0
- package/src/commands/version/version.d.ts.map +1 -0
- package/src/commands/version/version.js +35 -0
- package/src/constants.d.ts +4 -0
- package/src/constants.d.ts.map +1 -0
- package/src/constants.js +7 -0
- package/src/index.d.ts +3 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.js +24 -0
- package/src/preAction.d.ts +3 -0
- package/src/preAction.d.ts.map +1 -0
- package/src/preAction.js +82 -0
- package/src/scripts/cmd/cd.d.ts +2 -0
- package/src/scripts/cmd/cd.d.ts.map +1 -0
- package/src/scripts/cmd/cd.js +15 -0
- package/src/scripts/cmd/{executeBash.ts → executeBash.d.ts} +10 -20
- package/src/scripts/cmd/executeBash.d.ts.map +1 -0
- package/src/scripts/cmd/executeBash.js +21 -0
- package/src/scripts/cmd/executeCmd.d.ts +9 -0
- package/src/scripts/cmd/executeCmd.d.ts.map +1 -0
- package/src/scripts/cmd/executeCmd.js +23 -0
- package/src/scripts/cmd/exitOnFailure.d.ts +8 -0
- package/src/scripts/cmd/exitOnFailure.d.ts.map +1 -0
- package/src/scripts/cmd/exitOnFailure.js +20 -0
- package/src/scripts/cmd/{getBashOutput.ts → getBashOutput.d.ts} +10 -23
- package/src/scripts/cmd/getBashOutput.d.ts.map +1 -0
- package/src/scripts/cmd/getBashOutput.js +19 -0
- package/src/scripts/cmd/getCmdOutput.d.ts +10 -0
- package/src/scripts/cmd/getCmdOutput.d.ts.map +1 -0
- package/src/scripts/cmd/getCmdOutput.js +26 -0
- package/src/scripts/cmd/{index.ts → index.d.ts} +9 -10
- package/src/scripts/cmd/index.d.ts.map +1 -0
- package/src/scripts/cmd/index.js +26 -0
- package/src/scripts/cmd/log.d.ts +2 -0
- package/src/scripts/cmd/log.d.ts.map +1 -0
- package/src/scripts/cmd/log.js +5 -0
- package/src/scripts/cmd/parseArgs.d.ts +3 -0
- package/src/scripts/cmd/parseArgs.d.ts.map +1 -0
- package/src/scripts/cmd/parseArgs.js +41 -0
- package/src/scripts/cmd/parseBashArgs.d.ts +3 -0
- package/src/scripts/cmd/parseBashArgs.d.ts.map +1 -0
- package/src/scripts/cmd/parseBashArgs.js +16 -0
- package/src/scripts/cmd/types.d.ts +12 -0
- package/src/scripts/cmd/types.d.ts.map +1 -0
- package/src/scripts/cmd/types.js +2 -0
- package/src/scripts/filesystem/copyDir.d.ts +9 -0
- package/src/scripts/filesystem/copyDir.d.ts.map +1 -0
- package/src/scripts/filesystem/copyDir.js +26 -0
- package/src/scripts/filesystem/copyFiles.d.ts +11 -0
- package/src/scripts/filesystem/copyFiles.d.ts.map +1 -0
- package/src/scripts/filesystem/copyFiles.js +59 -0
- package/src/scripts/filesystem/findFile.d.ts +2 -0
- package/src/scripts/filesystem/findFile.d.ts.map +1 -0
- package/src/scripts/filesystem/findFile.js +24 -0
- package/src/scripts/filesystem/index.d.ts +10 -0
- package/src/scripts/filesystem/index.d.ts.map +1 -0
- package/src/scripts/filesystem/index.js +17 -0
- package/src/scripts/filesystem/loadJsonFile.d.ts +2 -0
- package/src/scripts/filesystem/loadJsonFile.d.ts.map +1 -0
- package/src/scripts/filesystem/loadJsonFile.js +18 -0
- package/src/scripts/filesystem/log.d.ts +2 -0
- package/src/scripts/filesystem/log.d.ts.map +1 -0
- package/src/scripts/filesystem/log.js +5 -0
- package/src/scripts/filesystem/readDirRecursive.d.ts +2 -0
- package/src/scripts/filesystem/readDirRecursive.d.ts.map +1 -0
- package/src/scripts/filesystem/readDirRecursive.js +16 -0
- package/src/scripts/git/branch/branchDelete.d.ts +6 -0
- package/src/scripts/git/branch/branchDelete.d.ts.map +1 -0
- package/src/scripts/git/branch/branchDelete.js +24 -0
- package/src/scripts/git/branch/branchExists.d.ts +5 -0
- package/src/scripts/git/branch/branchExists.d.ts.map +1 -0
- package/src/scripts/git/branch/branchExists.js +15 -0
- package/src/scripts/git/branch/checkout.d.ts +5 -0
- package/src/scripts/git/branch/checkout.d.ts.map +1 -0
- package/src/scripts/git/branch/checkout.js +15 -0
- package/src/scripts/git/branch/getCurrentBranch.d.ts +11 -0
- package/src/scripts/git/branch/getCurrentBranch.d.ts.map +1 -0
- package/src/scripts/git/branch/getCurrentBranch.js +28 -0
- package/src/scripts/git/clone.d.ts +10 -0
- package/src/scripts/git/clone.d.ts.map +1 -0
- package/src/scripts/git/clone.js +14 -0
- package/src/scripts/git/commit.sh +0 -0
- package/src/scripts/git/getRepo.d.ts +2 -0
- package/src/scripts/git/getRepo.d.ts.map +1 -0
- package/src/scripts/git/getRepo.js +13 -0
- package/src/scripts/git/index.d.ts +29 -0
- package/src/scripts/git/index.d.ts.map +1 -0
- package/src/scripts/git/index.js +40 -0
- package/src/scripts/git/log.d.ts +2 -0
- package/src/scripts/git/log.d.ts.map +1 -0
- package/src/scripts/git/log.js +5 -0
- package/src/scripts/git/openPr.d.ts +2 -0
- package/src/scripts/git/openPr.d.ts.map +1 -0
- package/src/scripts/git/openPr.js +20 -0
- package/src/scripts/git/remoteStatus.d.ts +3 -0
- package/src/scripts/git/remoteStatus.d.ts.map +1 -0
- package/src/scripts/git/remoteStatus.js +22 -0
- package/src/scripts/git/tag/createTag.d.ts +18 -0
- package/src/scripts/git/tag/createTag.d.ts.map +1 -0
- package/src/scripts/git/tag/createTag.js +18 -0
- package/src/scripts/git/tag/deleteTag.d.ts +2 -0
- package/src/scripts/git/tag/deleteTag.d.ts.map +1 -0
- package/src/scripts/git/tag/deleteTag.js +13 -0
- package/src/scripts/git/tag/getTags.d.ts +2 -0
- package/src/scripts/git/tag/getTags.d.ts.map +1 -0
- package/src/scripts/git/tag/getTags.js +8 -0
- package/src/scripts/git/tag/pushAllTags.d.ts +2 -0
- package/src/scripts/git/tag/pushAllTags.d.ts.map +1 -0
- package/src/scripts/git/tag/pushAllTags.js +8 -0
- package/src/scripts/git/tag/renameTag.d.ts +2 -0
- package/src/scripts/git/tag/renameTag.d.ts.map +1 -0
- package/src/scripts/git/tag/renameTag.js +14 -0
- package/src/scripts/lerna/changed.d.ts +3 -0
- package/src/scripts/lerna/changed.d.ts.map +1 -0
- package/src/scripts/lerna/changed.js +13 -0
- package/src/scripts/lerna/constants.d.ts +5 -0
- package/src/scripts/lerna/constants.d.ts.map +1 -0
- package/src/scripts/lerna/constants.js +7 -0
- package/src/scripts/lerna/filterByDependency.d.ts +7 -0
- package/src/scripts/lerna/filterByDependency.d.ts.map +1 -0
- package/src/scripts/lerna/filterByDependency.js +18 -0
- package/src/scripts/lerna/getConfig.d.ts +3 -0
- package/src/scripts/lerna/getConfig.d.ts.map +1 -0
- package/src/scripts/lerna/getConfig.js +13 -0
- package/src/scripts/lerna/getDependencies.d.ts +9 -0
- package/src/scripts/lerna/getDependencies.d.ts.map +1 -0
- package/src/scripts/lerna/getDependencies.js +23 -0
- package/src/scripts/lerna/getDetails.d.ts +3 -0
- package/src/scripts/lerna/getDetails.d.ts.map +1 -0
- package/src/scripts/lerna/getDetails.js +38 -0
- package/src/scripts/lerna/index.d.ts +14 -0
- package/src/scripts/lerna/index.d.ts.map +1 -0
- package/src/scripts/lerna/index.js +19 -0
- package/src/scripts/lerna/log.d.ts +2 -0
- package/src/scripts/lerna/log.d.ts.map +1 -0
- package/src/scripts/lerna/log.js +5 -0
- package/src/scripts/lerna/publish.sh +0 -0
- package/src/scripts/lerna/types.d.ts +62 -0
- package/src/scripts/lerna/types.d.ts.map +1 -0
- package/src/scripts/lerna/types.js +2 -0
- package/src/scripts/lerna/version.sh +1 -1
- package/src/utils/chalk.d.ts +4 -0
- package/src/utils/chalk.d.ts.map +1 -0
- package/src/utils/chalk.js +9 -0
- package/src/utils/common.d.ts +8 -0
- package/src/utils/common.d.ts.map +1 -0
- package/src/utils/common.js +21 -0
- package/src/utils/{index.ts → index.d.ts} +4 -3
- package/src/utils/index.d.ts.map +1 -0
- package/src/utils/index.js +19 -0
- package/src/utils/inquirer.d.ts +5 -0
- package/src/utils/inquirer.d.ts.map +1 -0
- package/src/utils/inquirer.js +21 -0
- package/src/utils/logger.d.ts +9 -0
- package/src/utils/logger.d.ts.map +1 -0
- package/src/utils/logger.js +36 -0
- package/CHANGELOG.md +0 -628
- package/README.md +0 -11
- package/src/GlobalOptions.ts +0 -8
- package/src/commands/blank/BlankOptions.ts +0 -3
- package/src/commands/blank/blank.ts +0 -6
- package/src/commands/blank/index.ts +0 -8
- package/src/commands/blank/log.ts +0 -3
- package/src/commands/build/BuildOptions.ts +0 -3
- package/src/commands/build/build.ts +0 -24
- package/src/commands/build/index.ts +0 -8
- package/src/commands/build/log.ts +0 -3
- package/src/commands/deinstall/DeinstallOptions.ts +0 -3
- package/src/commands/deinstall/deinstall.ts +0 -19
- package/src/commands/deinstall/index.ts +0 -11
- package/src/commands/deinstall/log.ts +0 -3
- package/src/commands/deploy/DeployOptions.ts +0 -6
- package/src/commands/deploy/deploy.ts +0 -39
- package/src/commands/deploy/deployIos.ts +0 -48
- package/src/commands/deploy/index.ts +0 -20
- package/src/commands/deploy/log.ts +0 -3
- package/src/commands/deploy/setSsr.ts +0 -25
- package/src/commands/dev/DevOptions.ts +0 -4
- package/src/commands/dev/dev.ts +0 -15
- package/src/commands/dev/devIos.ts +0 -23
- package/src/commands/dev/index.ts +0 -12
- package/src/commands/dev/log.ts +0 -3
- package/src/commands/generate/GenerateOptions.ts +0 -9
- package/src/commands/generate/generate.ts +0 -29
- package/src/commands/generate/generateCommand.ts +0 -46
- package/src/commands/generate/generateProject.ts +0 -115
- package/src/commands/generate/index.ts +0 -19
- package/src/commands/generate/log.ts +0 -3
- package/src/commands/index.ts +0 -21
- package/src/commands/reinstall/ReinstallOptions.ts +0 -3
- package/src/commands/reinstall/index.ts +0 -11
- package/src/commands/reinstall/log.ts +0 -3
- package/src/commands/reinstall/reinstall.ts +0 -13
- package/src/commands/release/ReleaseOptions.ts +0 -8
- package/src/commands/release/index.ts +0 -40
- package/src/commands/release/log.ts +0 -3
- package/src/commands/release/publish.ts +0 -18
- package/src/commands/release/release.ts +0 -24
- package/src/commands/release/tag.ts +0 -119
- package/src/commands/upgrade/UpgradeOptions.ts +0 -3
- package/src/commands/upgrade/index.ts +0 -10
- package/src/commands/upgrade/log.ts +0 -3
- package/src/commands/upgrade/upgrade.ts +0 -10
- package/src/commands/version/VersionOptions.ts +0 -7
- package/src/commands/version/getPreid.ts +0 -7
- package/src/commands/version/index.ts +0 -18
- package/src/commands/version/log.ts +0 -3
- package/src/commands/version/pimpChangelogs.ts +0 -43
- package/src/commands/version/version.ts +0 -33
- package/src/constants.ts +0 -5
- package/src/index.ts +0 -24
- package/src/preAction.ts +0 -93
- package/src/scripts/cmd/cd.ts +0 -9
- package/src/scripts/cmd/executeCmd.ts +0 -23
- package/src/scripts/cmd/getCmdOutput.ts +0 -26
- package/src/scripts/cmd/log.ts +0 -3
- package/src/scripts/cmd/parseArgs.ts +0 -44
- package/src/scripts/cmd/parseBashArgs.ts +0 -21
- package/src/scripts/cmd/types.ts +0 -13
- package/src/scripts/filesystem/copyDir.ts +0 -29
- package/src/scripts/filesystem/copyFiles.ts +0 -75
- package/src/scripts/filesystem/findFile.ts +0 -29
- package/src/scripts/filesystem/index.ts +0 -15
- package/src/scripts/filesystem/loadJsonFile.ts +0 -17
- package/src/scripts/filesystem/log.ts +0 -3
- package/src/scripts/filesystem/readDirRecursive.ts +0 -21
- package/src/scripts/git/branch/branchDelete.ts +0 -32
- package/src/scripts/git/branch/branchExists.ts +0 -14
- package/src/scripts/git/branch/checkout.ts +0 -19
- package/src/scripts/git/branch/getCurrentBranch.ts +0 -37
- package/src/scripts/git/clone.ts +0 -20
- package/src/scripts/git/getRepo.ts +0 -11
- package/src/scripts/git/index.ts +0 -44
- package/src/scripts/git/log.ts +0 -3
- package/src/scripts/git/openPr.ts +0 -21
- package/src/scripts/git/remoteStatus.ts +0 -28
- package/src/scripts/git/tag/createTag.ts +0 -28
- package/src/scripts/git/tag/deleteTag.ts +0 -11
- package/src/scripts/git/tag/getTags.ts +0 -6
- package/src/scripts/git/tag/pushAllTags.ts +0 -6
- package/src/scripts/git/tag/renameTag.ts +0 -12
- package/src/scripts/lerna/changed.ts +0 -11
- package/src/scripts/lerna/constants.ts +0 -6
- package/src/scripts/lerna/filterByDependency.ts +0 -21
- package/src/scripts/lerna/getConfig.ts +0 -12
- package/src/scripts/lerna/getDependencies.ts +0 -25
- package/src/scripts/lerna/getDetails.ts +0 -44
- package/src/scripts/lerna/index.ts +0 -18
- package/src/scripts/lerna/log.ts +0 -3
- package/src/scripts/lerna/types.ts +0 -64
- package/src/utils/chalk.ts +0 -4
- package/src/utils/common.ts +0 -16
- package/src/utils/inquirer.ts +0 -20
- package/src/utils/logger.ts +0 -51
- package/tsconfig.json +0 -28
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDetails = void 0;
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
const cmd_1 = require("../cmd");
|
|
6
|
+
const constants_1 = require("./constants");
|
|
7
|
+
const log_1 = require("./log");
|
|
8
|
+
// TODO might want to move this 2 funcs to a more global cross package util
|
|
9
|
+
const removePrefix = (txt, prefix) => txt.startsWith(prefix) ? txt.substring(prefix.length) : txt;
|
|
10
|
+
const toRelativePath = (absolutePath, baseDirName) => {
|
|
11
|
+
const basePath = `${path_1.sep}${baseDirName}${path_1.sep}`;
|
|
12
|
+
return absolutePath.substring(absolutePath.lastIndexOf(basePath) + basePath.length);
|
|
13
|
+
};
|
|
14
|
+
const getDetails = (excludePrivate = true) => {
|
|
15
|
+
log_1.log.verbose('getDetails', excludePrivate);
|
|
16
|
+
const result = (0, cmd_1.getBashOutput)('lerna/list', {
|
|
17
|
+
json: true,
|
|
18
|
+
all: !excludePrivate || undefined,
|
|
19
|
+
noPrivate: excludePrivate || undefined,
|
|
20
|
+
loglevel: 'silent',
|
|
21
|
+
});
|
|
22
|
+
const lernaPackages = JSON.parse(result);
|
|
23
|
+
return lernaPackages.map((pkg) => {
|
|
24
|
+
const relativePath = toRelativePath(pkg.location, constants_1.packagesDir);
|
|
25
|
+
const displayName = `${relativePath} (${pkg.name})`;
|
|
26
|
+
const shortName = removePrefix(pkg.name, constants_1.packagesPrefix);
|
|
27
|
+
return {
|
|
28
|
+
name: pkg.name,
|
|
29
|
+
version: pkg.version,
|
|
30
|
+
isPrivate: pkg.private,
|
|
31
|
+
absolutePath: pkg.location,
|
|
32
|
+
relativePath,
|
|
33
|
+
displayName,
|
|
34
|
+
shortName,
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
exports.getDetails = getDetails;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { getDependencies } from './getDependencies';
|
|
2
|
+
import { filterByDependency } from './filterByDependency';
|
|
3
|
+
import type { Args } from '../cmd/types';
|
|
4
|
+
export declare const lerna: {
|
|
5
|
+
version: (args?: Args) => import("child_process").SpawnSyncReturns<Buffer>;
|
|
6
|
+
publish: (args?: Args) => import("child_process").SpawnSyncReturns<Buffer>;
|
|
7
|
+
list: (args?: Args) => import("child_process").SpawnSyncReturns<Buffer>;
|
|
8
|
+
changed: () => import("./types").LernaPackage[];
|
|
9
|
+
getConfig: () => import("./types").LernaConfig | null;
|
|
10
|
+
getDependencies: typeof getDependencies;
|
|
11
|
+
filterByDependency: typeof filterByDependency;
|
|
12
|
+
getDetails: (excludePrivate?: boolean) => import("./types").PackageDetails[];
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/scripts/lerna/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,eAAO,MAAM,KAAK;qBACC,IAAI;qBACJ,IAAI;kBACP,IAAI;;;;;;CAMnB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.lerna = void 0;
|
|
4
|
+
const cmd_1 = require("../../scripts/cmd");
|
|
5
|
+
const getConfig_1 = require("./getConfig");
|
|
6
|
+
const changed_1 = require("./changed");
|
|
7
|
+
const getDependencies_1 = require("./getDependencies");
|
|
8
|
+
const filterByDependency_1 = require("./filterByDependency");
|
|
9
|
+
const getDetails_1 = require("./getDetails");
|
|
10
|
+
exports.lerna = {
|
|
11
|
+
version: (args) => (0, cmd_1.executeBash)('lerna/version', args),
|
|
12
|
+
publish: (args) => (0, cmd_1.executeBash)('lerna/publish', args),
|
|
13
|
+
list: (args) => (0, cmd_1.executeBash)('lerna/list', args),
|
|
14
|
+
changed: changed_1.changed,
|
|
15
|
+
getConfig: getConfig_1.getConfig,
|
|
16
|
+
getDependencies: getDependencies_1.getDependencies,
|
|
17
|
+
filterByDependency: filterByDependency_1.filterByDependency,
|
|
18
|
+
getDetails: getDetails_1.getDetails,
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../src/scripts/lerna/log.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,4BAAkB,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export interface LernaConfig extends Record<string, unknown> {
|
|
2
|
+
version: string;
|
|
3
|
+
}
|
|
4
|
+
export interface LernaPackage {
|
|
5
|
+
/**
|
|
6
|
+
* Name of the package from `package.json`.
|
|
7
|
+
* @example '@gluhar/core'
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* Version of the package from `package.json`.
|
|
12
|
+
* @example '1.2.3'
|
|
13
|
+
*/
|
|
14
|
+
version: string;
|
|
15
|
+
/**
|
|
16
|
+
* Looks for `private` property in the `package.json` file.
|
|
17
|
+
*/
|
|
18
|
+
private: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Absolute path to the package folder.
|
|
21
|
+
* @example 'Users/someone/Projects/gluhar/packages/core'
|
|
22
|
+
*/
|
|
23
|
+
location: string;
|
|
24
|
+
}
|
|
25
|
+
export type ModuleName = "" | "dev" | "ui" | "sn";
|
|
26
|
+
export interface PackageDetails {
|
|
27
|
+
/**
|
|
28
|
+
* Relative path & package name.
|
|
29
|
+
* @example 'ui/app (@gluhar/core)'
|
|
30
|
+
*/
|
|
31
|
+
displayName: string;
|
|
32
|
+
/**
|
|
33
|
+
* Name of the package from `package.json`.
|
|
34
|
+
* @example '@gluhar/core'
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* Name without the `@gluhar/` prefix.
|
|
39
|
+
* @example 'core'
|
|
40
|
+
*/
|
|
41
|
+
shortName: string;
|
|
42
|
+
/**
|
|
43
|
+
* Absolute path to the package folder.
|
|
44
|
+
* @example 'Users/someone/Projects/gluhar/packages/core'
|
|
45
|
+
*/
|
|
46
|
+
absolutePath: string;
|
|
47
|
+
/**
|
|
48
|
+
* Relative path to the package folder, from the `packages` folder.
|
|
49
|
+
* @example 'core'
|
|
50
|
+
*/
|
|
51
|
+
relativePath: string;
|
|
52
|
+
/**
|
|
53
|
+
* Version of the package from `package.json`.
|
|
54
|
+
* @example 'v1.2.3'
|
|
55
|
+
*/
|
|
56
|
+
version: string;
|
|
57
|
+
/**
|
|
58
|
+
* Looks for `private` property in the `package.json` file.
|
|
59
|
+
*/
|
|
60
|
+
isPrivate: boolean;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/scripts/lerna/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAY,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC1D,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,UAAU,GAAG,EAAE,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,CAAC;AAElD,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
npx lerna version "$@"
|
|
1
|
+
npx lerna version "$@"
|
|
2
2
|
# "$@" is for propagating all arguments passed
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chalk.d.ts","sourceRoot":"","sources":["../../../src/utils/chalk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,WAAW,aAAkB,CAAC;AAC3C,eAAO,MAAM,IAAI,aAA8B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.$cmd = exports.$branchName = void 0;
|
|
7
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
8
|
+
exports.$branchName = chalk_1.default.blue.bold;
|
|
9
|
+
exports.$cmd = chalk_1.default.whiteBright.underline;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const capitalize: (s: string) => string;
|
|
2
|
+
/**
|
|
3
|
+
* Check if a command exists in the system PATH
|
|
4
|
+
* @param command The command to check
|
|
5
|
+
* @returns true if the command exists, false otherwise
|
|
6
|
+
*/
|
|
7
|
+
export declare const commandExists: (command: string) => boolean;
|
|
8
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/utils/common.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,GAAI,GAAG,MAAM,WAAoC,CAAC;AAEzE;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,SAAS,MAAM,KAAG,OAQ/C,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.commandExists = exports.capitalize = void 0;
|
|
4
|
+
const capitalize = (s) => s[0].toUpperCase() + s.slice(1);
|
|
5
|
+
exports.capitalize = capitalize;
|
|
6
|
+
/**
|
|
7
|
+
* Check if a command exists in the system PATH
|
|
8
|
+
* @param command The command to check
|
|
9
|
+
* @returns true if the command exists, false otherwise
|
|
10
|
+
*/
|
|
11
|
+
const commandExists = (command) => {
|
|
12
|
+
try {
|
|
13
|
+
const { spawnSync } = require("child_process");
|
|
14
|
+
const result = spawnSync("which", [command], { stdio: "ignore" });
|
|
15
|
+
return result.status === 0;
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
exports.commandExists = commandExists;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export * from './chalk';
|
|
2
|
-
export * from './inquirer';
|
|
3
|
-
export * from './logger';
|
|
1
|
+
export * from './chalk';
|
|
2
|
+
export * from './inquirer';
|
|
3
|
+
export * from './logger';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./chalk"), exports);
|
|
18
|
+
__exportStar(require("./inquirer"), exports);
|
|
19
|
+
__exportStar(require("./logger"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inquirer.d.ts","sourceRoot":"","sources":["../../../src/utils/inquirer.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,eAAe,GAAU,SAAS,MAAM,EAAE,MAAM,OAAO,qBAanE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.confirmQuestion = void 0;
|
|
7
|
+
const inquirer_1 = __importDefault(require("inquirer"));
|
|
8
|
+
const confirmQuestion = async (message, yes) => {
|
|
9
|
+
if (yes) {
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
const answer = await inquirer_1.default.prompt([
|
|
13
|
+
{
|
|
14
|
+
name: "confirm",
|
|
15
|
+
type: "confirm",
|
|
16
|
+
message,
|
|
17
|
+
},
|
|
18
|
+
]);
|
|
19
|
+
return answer.confirm;
|
|
20
|
+
};
|
|
21
|
+
exports.confirmQuestion = confirmQuestion;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type LogLevels, type Logger as NpmLogger } from 'npmlog';
|
|
2
|
+
export type LogLevel = LogLevels;
|
|
3
|
+
export declare const init: (heading: string, level: LogLevel, prefixes?: string[]) => void;
|
|
4
|
+
export type LogArgs<Level extends LogLevel> = Parameters<NpmLogger[Level]> extends [prefix: string, ...args: infer Args] ? Args : never;
|
|
5
|
+
export type Logger = {
|
|
6
|
+
[Level in LogLevel]: (...args: LogArgs<Level>) => ReturnType<NpmLogger[Level]>;
|
|
7
|
+
};
|
|
8
|
+
export declare const logger: (prefix: string) => Logger;
|
|
9
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AAAA,OAAe,EAAE,KAAK,SAAS,EAAE,KAAK,MAAM,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAC;AAE1E,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC;AAgBjC,eAAO,MAAM,IAAI,GAAI,SAAS,MAAM,EAAE,OAAO,QAAQ,EAAE,WAAW,MAAM,EAAE,SAQzE,CAAC;AAEF,MAAM,MAAM,OAAO,CAAC,KAAK,SAAS,QAAQ,IAAI,UAAU,CACtD,SAAS,CAAC,KAAK,CAAC,CACjB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,MAAM,IAAI,CAAC,GAC3C,IAAI,GACJ,KAAK,CAAC;AAEV,MAAM,MAAM,MAAM,GAAG;KAClB,KAAK,IAAI,QAAQ,GAAG,CACnB,GAAG,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,KACpB,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,QAAQ,MAAM,WAUpC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.logger = exports.init = void 0;
|
|
7
|
+
const npmlog_1 = __importDefault(require("npmlog"));
|
|
8
|
+
const allLevels = [
|
|
9
|
+
'silent',
|
|
10
|
+
'silly',
|
|
11
|
+
'verbose',
|
|
12
|
+
'info',
|
|
13
|
+
'timing',
|
|
14
|
+
'http',
|
|
15
|
+
'notice',
|
|
16
|
+
'warn',
|
|
17
|
+
'error',
|
|
18
|
+
];
|
|
19
|
+
let enabledPrefixes;
|
|
20
|
+
const init = (heading, level, prefixes) => {
|
|
21
|
+
npmlog_1.default.heading = heading;
|
|
22
|
+
npmlog_1.default.level = level;
|
|
23
|
+
enabledPrefixes = prefixes;
|
|
24
|
+
if (!allLevels.includes(level)) {
|
|
25
|
+
npmlog_1.default.warn('log', 'Invalid log level:', level);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.init = init;
|
|
29
|
+
const logger = (prefix) => {
|
|
30
|
+
const prefixEnabled = !enabledPrefixes || enabledPrefixes.includes(prefix);
|
|
31
|
+
return allLevels.reduce((result, level) => ({
|
|
32
|
+
...result,
|
|
33
|
+
[level]: (...args) => prefixEnabled ? npmlog_1.default[level](prefix, ...args) : undefined,
|
|
34
|
+
}), {});
|
|
35
|
+
};
|
|
36
|
+
exports.logger = logger;
|