@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 @@
|
|
|
1
|
+
{"version":3,"file":"branchDelete.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/branch/branchDelete.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,YAAY,GACvB,QAAQ,MAAM,EACd,UAAS,mBAAwB,SAalC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// BRANCH=${npm_config_branch};
|
|
3
|
+
// LOCAL=$(git branch --list $BRANCH);
|
|
4
|
+
// if [ $LOCAL ];
|
|
5
|
+
// then git branch -D $BRANCH; fi;
|
|
6
|
+
// REMOTE=$(git ls-remote --heads origin $BRANCH);
|
|
7
|
+
// if [ $REMOTE ];
|
|
8
|
+
// then git push origin -d $BRANCH; fi
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.branchDelete = void 0;
|
|
11
|
+
const cmd_1 = require("../../../scripts/cmd");
|
|
12
|
+
const log_1 = require("../log");
|
|
13
|
+
const branchDelete = (branch, options = {}) => {
|
|
14
|
+
const { local, remote } = options;
|
|
15
|
+
if (local) {
|
|
16
|
+
log_1.log.verbose('Delete local branch:', branch);
|
|
17
|
+
(0, cmd_1.executeCmd)(`git branch -D ${branch}`);
|
|
18
|
+
}
|
|
19
|
+
if (remote) {
|
|
20
|
+
log_1.log.verbose('Delete remote branch:', branch);
|
|
21
|
+
(0, cmd_1.executeCmd)(`git push origin -d ${branch}`);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.branchDelete = branchDelete;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branchExists.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/branch/branchExists.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,GAAI,YAAY,MAAM;;;CAU9C,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.branchExists = void 0;
|
|
4
|
+
const cmd_1 = require("../../../scripts/cmd");
|
|
5
|
+
const log_1 = require("../log");
|
|
6
|
+
const branchExists = (branchName) => {
|
|
7
|
+
const local = !!(0, cmd_1.getCmdOutput)(`git branch --list ${branchName}`);
|
|
8
|
+
const remote = !!(0, cmd_1.getCmdOutput)(`git ls-remote --heads origin ${branchName}`);
|
|
9
|
+
log_1.log.verbose('branchExists:', { local, remote });
|
|
10
|
+
return {
|
|
11
|
+
local,
|
|
12
|
+
remote,
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.branchExists = branchExists;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/branch/checkout.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,QAAQ,GAAI,YAAY,MAAM,EAAE,MAAK,eAAoB,qDAYrE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.checkout = void 0;
|
|
4
|
+
const cmd_1 = require("../../../scripts/cmd");
|
|
5
|
+
const checkout = (branchName, opt = {}) => {
|
|
6
|
+
const { newBranch = false } = opt;
|
|
7
|
+
const cmd = ['git checkout'];
|
|
8
|
+
if (newBranch) {
|
|
9
|
+
cmd.push('-b');
|
|
10
|
+
}
|
|
11
|
+
cmd.push(branchName);
|
|
12
|
+
const fullCmd = cmd.join(' ');
|
|
13
|
+
return (0, cmd_1.executeCmd)(fullCmd);
|
|
14
|
+
};
|
|
15
|
+
exports.checkout = checkout;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface BranchInfo {
|
|
2
|
+
fullName: string;
|
|
3
|
+
type?: 'dev' | 'prep' | 'release' | string;
|
|
4
|
+
name: string;
|
|
5
|
+
isDev: boolean;
|
|
6
|
+
isPrep: boolean;
|
|
7
|
+
isRelease: boolean;
|
|
8
|
+
isOther: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const getCurrentBranch: () => BranchInfo;
|
|
11
|
+
//# sourceMappingURL=getCurrentBranch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCurrentBranch.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/branch/getCurrentBranch.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,gBAAgB,QAAO,UAuBnC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCurrentBranch = void 0;
|
|
4
|
+
const cmd_1 = require("../../../scripts/cmd");
|
|
5
|
+
const log_1 = require("../log");
|
|
6
|
+
const getCurrentBranch = () => {
|
|
7
|
+
const fullName = (0, cmd_1.getCmdOutput)('git rev-parse --abbrev-ref HEAD');
|
|
8
|
+
let [type, name] = fullName.split('/');
|
|
9
|
+
if (!name) {
|
|
10
|
+
name = type;
|
|
11
|
+
type = undefined;
|
|
12
|
+
}
|
|
13
|
+
const isDev = type === 'dev';
|
|
14
|
+
const isPrep = type === 'prep';
|
|
15
|
+
const isRelease = type === 'release';
|
|
16
|
+
const isOther = !isDev && !isPrep && !isRelease;
|
|
17
|
+
log_1.log.verbose('Current branch:', fullName);
|
|
18
|
+
return {
|
|
19
|
+
fullName,
|
|
20
|
+
type,
|
|
21
|
+
name,
|
|
22
|
+
isDev,
|
|
23
|
+
isPrep,
|
|
24
|
+
isRelease,
|
|
25
|
+
isOther,
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
exports.getCurrentBranch = getCurrentBranch;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface CloneOptions {
|
|
2
|
+
branch?: string;
|
|
3
|
+
singleBranch?: boolean;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Clone a repo.
|
|
7
|
+
* @param repo The repo name in the format: 'gluharry/starters'.
|
|
8
|
+
*/
|
|
9
|
+
export declare const clone: (repo: string, dir?: string, options?: CloneOptions) => void;
|
|
10
|
+
//# sourceMappingURL=clone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clone.d.ts","sourceRoot":"","sources":["../../../../src/scripts/git/clone.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,GAChB,MAAM,MAAM,EACZ,MAAK,MAAW,EAChB,UAAS,YAAiB,SAI3B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.clone = void 0;
|
|
4
|
+
const cmd_1 = require("../../scripts/cmd");
|
|
5
|
+
const log_1 = require("./log");
|
|
6
|
+
/**
|
|
7
|
+
* Clone a repo.
|
|
8
|
+
* @param repo The repo name in the format: 'gluharry/starters'.
|
|
9
|
+
*/
|
|
10
|
+
const clone = (repo, dir = "", options = {}) => {
|
|
11
|
+
log_1.log.verbose("Cloning:", repo, dir, options);
|
|
12
|
+
(0, cmd_1.executeCmd)(`git clone https://github.com/${repo}.git ${dir}`, options);
|
|
13
|
+
};
|
|
14
|
+
exports.clone = clone;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRepo.d.ts","sourceRoot":"","sources":["../../../../src/scripts/git/getRepo.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,QAAO,MAQ1B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRepo = void 0;
|
|
4
|
+
const cmd_1 = require("../cmd");
|
|
5
|
+
const getRepo = () => {
|
|
6
|
+
const url = (0, cmd_1.getCmdOutput)("git remote get-url origin");
|
|
7
|
+
const urlParts = url.split("/");
|
|
8
|
+
// "dev-tools.git"
|
|
9
|
+
const lastPart = urlParts[urlParts.length - 1];
|
|
10
|
+
// "dev-tools"
|
|
11
|
+
return lastPart.split(".")[0];
|
|
12
|
+
};
|
|
13
|
+
exports.getRepo = getRepo;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Args } from "../cmd/types";
|
|
2
|
+
export declare const git: {
|
|
3
|
+
openPr: (sourceBranch: string, destinationBranch: string) => void;
|
|
4
|
+
getRepo: () => string;
|
|
5
|
+
remoteStatus: (branch?: string, upstream?: string) => import("./remoteStatus").RemoteStatus;
|
|
6
|
+
commit: (args: Args) => import("child_process").SpawnSyncReturns<Buffer>;
|
|
7
|
+
push: (branchOrTag: string, remote?: string) => import("child_process").SpawnSyncReturns<Buffer>;
|
|
8
|
+
pull: (branchName: string, remote?: string) => import("child_process").SpawnSyncReturns<Buffer>;
|
|
9
|
+
merge: (branchName: string, y?: boolean) => import("child_process").SpawnSyncReturns<Buffer>;
|
|
10
|
+
branch: {
|
|
11
|
+
exists: (branchName: string) => {
|
|
12
|
+
local: boolean;
|
|
13
|
+
remote: boolean;
|
|
14
|
+
};
|
|
15
|
+
delete: (branch: string, options?: import("./branch/branchDelete").BranchDeleteOptions) => void;
|
|
16
|
+
getCurrent: () => import("./branch/getCurrentBranch").BranchInfo;
|
|
17
|
+
checkout: (branchName: string, opt?: import("./branch/checkout").CheckoutOptions) => import("child_process").SpawnSyncReturns<Buffer>;
|
|
18
|
+
};
|
|
19
|
+
tag: {
|
|
20
|
+
getAll: () => string[];
|
|
21
|
+
create: (name: string, options?: import("./tag/createTag").TagCreateOptions) => import("child_process").SpawnSyncReturns<Buffer>;
|
|
22
|
+
delete: (name: string) => void;
|
|
23
|
+
rename: (oldTagName: string, newTagName: string) => void;
|
|
24
|
+
pushAll: (remote?: string) => import("child_process").SpawnSyncReturns<Buffer>;
|
|
25
|
+
};
|
|
26
|
+
clone: (repo: string, dir?: string, options?: import("./clone").CloneOptions) => void;
|
|
27
|
+
};
|
|
28
|
+
export type { BranchInfo } from "./branch/getCurrentBranch";
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/scripts/git/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAQzC,eAAO,MAAM,GAAG;;;;mBAIC,IAAI;wBACC,MAAM;uBAEP,MAAM;wBAEL,MAAM,MAAM,OAAO;;;;;;;;;;;;;;;;;;CAgBxC,CAAC;AAEF,YAAY,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.git = void 0;
|
|
4
|
+
const cmd_1 = require("../../scripts/cmd");
|
|
5
|
+
const branchDelete_1 = require("./branch/branchDelete");
|
|
6
|
+
const openPr_1 = require("./openPr");
|
|
7
|
+
const remoteStatus_1 = require("./remoteStatus");
|
|
8
|
+
const getCurrentBranch_1 = require("./branch/getCurrentBranch");
|
|
9
|
+
const checkout_1 = require("./branch/checkout");
|
|
10
|
+
const branchExists_1 = require("./branch/branchExists");
|
|
11
|
+
const createTag_1 = require("./tag/createTag");
|
|
12
|
+
const getRepo_1 = require("./getRepo");
|
|
13
|
+
const getTags_1 = require("./tag/getTags");
|
|
14
|
+
const pushAllTags_1 = require("./tag/pushAllTags");
|
|
15
|
+
const deleteTag_1 = require("./tag/deleteTag");
|
|
16
|
+
const renameTag_1 = require("./tag/renameTag");
|
|
17
|
+
const clone_1 = require("./clone");
|
|
18
|
+
exports.git = {
|
|
19
|
+
openPr: openPr_1.openPr,
|
|
20
|
+
getRepo: getRepo_1.getRepo,
|
|
21
|
+
remoteStatus: remoteStatus_1.remoteStatus,
|
|
22
|
+
commit: (args) => (0, cmd_1.executeBash)(`git/commit`, args),
|
|
23
|
+
push: (branchOrTag, remote = "origin") => (0, cmd_1.executeCmd)(`git push ${remote} ${branchOrTag}`),
|
|
24
|
+
pull: (branchName, remote = "origin") => (0, cmd_1.executeCmd)(`git pull ${remote} ${branchName}`),
|
|
25
|
+
merge: (branchName, y) => (0, cmd_1.executeCmd)(`git merge ${branchName}${y ? " --no-edit" : ""}`),
|
|
26
|
+
branch: {
|
|
27
|
+
exists: branchExists_1.branchExists,
|
|
28
|
+
delete: branchDelete_1.branchDelete,
|
|
29
|
+
getCurrent: getCurrentBranch_1.getCurrentBranch,
|
|
30
|
+
checkout: checkout_1.checkout,
|
|
31
|
+
},
|
|
32
|
+
tag: {
|
|
33
|
+
getAll: getTags_1.getTags,
|
|
34
|
+
create: createTag_1.createTag,
|
|
35
|
+
delete: deleteTag_1.deleteTag,
|
|
36
|
+
rename: renameTag_1.renameTag,
|
|
37
|
+
pushAll: pushAllTags_1.pushAllTags,
|
|
38
|
+
},
|
|
39
|
+
clone: clone_1.clone,
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../src/scripts/git/log.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,4BAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openPr.d.ts","sourceRoot":"","sources":["../../../../src/scripts/git/openPr.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,GAAI,cAAc,MAAM,EAAE,mBAAmB,MAAM,SAgBrE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.openPr = void 0;
|
|
4
|
+
const log_1 = require("./log");
|
|
5
|
+
const getRepo_1 = require("./getRepo");
|
|
6
|
+
const openPr = (sourceBranch, destinationBranch) => {
|
|
7
|
+
const repo = (0, getRepo_1.getRepo)();
|
|
8
|
+
const link = [
|
|
9
|
+
"https://bitbucket.org/pezak/",
|
|
10
|
+
repo,
|
|
11
|
+
"/pull-requests/new?",
|
|
12
|
+
`source=${sourceBranch}`,
|
|
13
|
+
"&",
|
|
14
|
+
`dest=${destinationBranch}`,
|
|
15
|
+
].join("");
|
|
16
|
+
log_1.log.verbose("Open PR Link:", link);
|
|
17
|
+
log_1.log.error("Har: This command does not work for the moment.");
|
|
18
|
+
// shell.open(link);
|
|
19
|
+
};
|
|
20
|
+
exports.openPr = openPr;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remoteStatus.d.ts","sourceRoot":"","sources":["../../../../src/scripts/git/remoteStatus.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,YAAY,GACpB,YAAY,GACZ,cAAc,GACd,cAAc,GACd,UAAU,CAAC;AAEf,eAAO,MAAM,YAAY,GAAI,eAAY,EAAE,iBAAiB,KAAG,YAkB9D,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.remoteStatus = void 0;
|
|
4
|
+
const cmd_1 = require("../../scripts/cmd");
|
|
5
|
+
const log_1 = require("./log");
|
|
6
|
+
const remoteStatus = (branch = '@', upstream = '@{u}') => {
|
|
7
|
+
const local = (0, cmd_1.getCmdOutput)(`git rev-parse ${branch}`);
|
|
8
|
+
const remote = (0, cmd_1.getCmdOutput)(`git rev-parse ${upstream}`);
|
|
9
|
+
const base = (0, cmd_1.getCmdOutput)(`git merge-base ${branch} ${upstream}`);
|
|
10
|
+
log_1.log.verbose('remoteStatus:', { local, remote, base });
|
|
11
|
+
if (local === remote) {
|
|
12
|
+
return 'up-to-date';
|
|
13
|
+
}
|
|
14
|
+
if (local === base) {
|
|
15
|
+
return 'need-to-pull';
|
|
16
|
+
}
|
|
17
|
+
if (remote === base) {
|
|
18
|
+
return 'need-to-push';
|
|
19
|
+
}
|
|
20
|
+
return 'diverged';
|
|
21
|
+
};
|
|
22
|
+
exports.remoteStatus = remoteStatus;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface TagCreateOptions {
|
|
2
|
+
/**
|
|
3
|
+
* The object that the new tag will refer to, usually a commit.
|
|
4
|
+
* Defaults to HEAD.
|
|
5
|
+
*/
|
|
6
|
+
object?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Replace an existing tag with the given name (instead of failing)
|
|
9
|
+
*/
|
|
10
|
+
force?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Create a new annotated tag. Doesn't push it to the remote.
|
|
14
|
+
* @param name The name of the tag to create.
|
|
15
|
+
* @param object The object that the new tag will refer to, usually a commit. Defaults to HEAD.
|
|
16
|
+
*/
|
|
17
|
+
export declare const createTag: (name: string, options?: TagCreateOptions) => import("child_process").SpawnSyncReturns<Buffer>;
|
|
18
|
+
//# sourceMappingURL=createTag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTag.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/tag/createTag.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,EAAE,UAAS,gBAAqB,qDAOrE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createTag = void 0;
|
|
4
|
+
const cmd_1 = require("../../cmd");
|
|
5
|
+
/**
|
|
6
|
+
* Create a new annotated tag. Doesn't push it to the remote.
|
|
7
|
+
* @param name The name of the tag to create.
|
|
8
|
+
* @param object The object that the new tag will refer to, usually a commit. Defaults to HEAD.
|
|
9
|
+
*/
|
|
10
|
+
const createTag = (name, options = {}) => {
|
|
11
|
+
const { object = '', force } = options;
|
|
12
|
+
return (0, cmd_1.executeCmd)(`git tag ${name} ${object}`, {
|
|
13
|
+
force,
|
|
14
|
+
annotate: true,
|
|
15
|
+
message: '',
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
exports.createTag = createTag;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteTag.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/tag/deleteTag.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,SAOrC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteTag = void 0;
|
|
4
|
+
const cmd_1 = require("../../../scripts/cmd");
|
|
5
|
+
const log_1 = require("../log");
|
|
6
|
+
const deleteTag = (name) => {
|
|
7
|
+
log_1.log.verbose('Deleting tag locally and from remote:', name);
|
|
8
|
+
(0, cmd_1.executeCmd)('git tag', {
|
|
9
|
+
d: name,
|
|
10
|
+
});
|
|
11
|
+
(0, cmd_1.executeCmd)(`git push origin :${name}`);
|
|
12
|
+
};
|
|
13
|
+
exports.deleteTag = deleteTag;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTags.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/tag/getTags.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,QAAO,MAAM,EAGR,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTags = void 0;
|
|
4
|
+
const cmd_1 = require("../../cmd");
|
|
5
|
+
const getTags = () => (0, cmd_1.getCmdOutput)('git tag', { list: true })
|
|
6
|
+
.split('\n')
|
|
7
|
+
.map((t) => t.trim());
|
|
8
|
+
exports.getTags = getTags;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pushAllTags.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/tag/pushAllTags.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,GAAI,eAAiB,qDAGzC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pushAllTags = void 0;
|
|
4
|
+
const cmd_1 = require("../../../scripts/cmd");
|
|
5
|
+
const pushAllTags = (remote = 'origin') => (0, cmd_1.executeCmd)(`git push ${remote}`, {
|
|
6
|
+
tags: true,
|
|
7
|
+
});
|
|
8
|
+
exports.pushAllTags = pushAllTags;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renameTag.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/tag/renameTag.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,GAAI,YAAY,MAAM,EAAE,YAAY,MAAM,SAO/D,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.renameTag = void 0;
|
|
4
|
+
const log_1 = require("../log");
|
|
5
|
+
const createTag_1 = require("./createTag");
|
|
6
|
+
const deleteTag_1 = require("./deleteTag");
|
|
7
|
+
const renameTag = (oldTagName, newTagName) => {
|
|
8
|
+
log_1.log.verbose('Renaming tag ', oldTagName, ' -> ', newTagName);
|
|
9
|
+
(0, createTag_1.createTag)(newTagName, {
|
|
10
|
+
object: `${oldTagName}^{}`,
|
|
11
|
+
});
|
|
12
|
+
(0, deleteTag_1.deleteTag)(oldTagName);
|
|
13
|
+
};
|
|
14
|
+
exports.renameTag = renameTag;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"changed.d.ts","sourceRoot":"","sources":["../../../../src/scripts/lerna/changed.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,OAAO,QAAO,YAAY,EAOtC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.changed = void 0;
|
|
4
|
+
const cmd_1 = require("../cmd");
|
|
5
|
+
const changed = () => {
|
|
6
|
+
const jsonResult = (0, cmd_1.getCmdOutput)('npx lerna changed --json');
|
|
7
|
+
if (!jsonResult) {
|
|
8
|
+
return [];
|
|
9
|
+
}
|
|
10
|
+
const result = JSON.parse(jsonResult);
|
|
11
|
+
return result;
|
|
12
|
+
};
|
|
13
|
+
exports.changed = changed;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/scripts/lerna/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,eAAe,CAAC;AAEtC,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AAEjD,eAAO,MAAM,WAAW,aAAa,CAAC;AACtC,eAAO,MAAM,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.packagesPrefix = exports.packagesDir = exports.INDEPENDENT_VERSION = exports.lernaJson = void 0;
|
|
4
|
+
exports.lernaJson = "lerna.json";
|
|
5
|
+
exports.INDEPENDENT_VERSION = "independent";
|
|
6
|
+
exports.packagesDir = "packages";
|
|
7
|
+
exports.packagesPrefix = "@pezak/";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get packages that have a given dependency.
|
|
3
|
+
* @param dependency Name of the dependency.
|
|
4
|
+
* @returns List of package names, that have the given dependency.
|
|
5
|
+
*/
|
|
6
|
+
export declare function filterByDependency(dependency: string, excludePrivate?: boolean): string[];
|
|
7
|
+
//# sourceMappingURL=filterByDependency.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filterByDependency.d.ts","sourceRoot":"","sources":["../../../../src/scripts/lerna/filterByDependency.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,EAClB,cAAc,UAAO,GACpB,MAAM,EAAE,CASV"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.filterByDependency = filterByDependency;
|
|
4
|
+
const getDependencies_1 = require("./getDependencies");
|
|
5
|
+
const log_1 = require("./log");
|
|
6
|
+
/**
|
|
7
|
+
* Get packages that have a given dependency.
|
|
8
|
+
* @param dependency Name of the dependency.
|
|
9
|
+
* @returns List of package names, that have the given dependency.
|
|
10
|
+
*/
|
|
11
|
+
function filterByDependency(dependency, excludePrivate = true) {
|
|
12
|
+
log_1.log.verbose('getConfig', dependency, excludePrivate);
|
|
13
|
+
const allPackages = (0, getDependencies_1.getDependencies)(excludePrivate);
|
|
14
|
+
return Object.keys(allPackages).filter((name) => {
|
|
15
|
+
const deps = allPackages[name];
|
|
16
|
+
return deps.includes(dependency);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../../src/scripts/lerna/getConfig.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAI3C,eAAO,MAAM,SAAS,0BAKrB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getConfig = void 0;
|
|
4
|
+
const findFile_1 = require("../../scripts/filesystem/findFile");
|
|
5
|
+
const loadJsonFile_1 = require("../../scripts/filesystem/loadJsonFile");
|
|
6
|
+
const constants_1 = require("./constants");
|
|
7
|
+
const log_1 = require("./log");
|
|
8
|
+
const getConfig = () => {
|
|
9
|
+
const configPath = (0, findFile_1.findFile)(constants_1.lernaJson) ?? '';
|
|
10
|
+
log_1.log.verbose('getConfig', configPath);
|
|
11
|
+
return (0, loadJsonFile_1.loadJsonFile)(configPath);
|
|
12
|
+
};
|
|
13
|
+
exports.getConfig = getConfig;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get list of all packages in this monorepo,
|
|
3
|
+
* with all their dependant packages.
|
|
4
|
+
*
|
|
5
|
+
* Each key of the object is a package from this monorepo.
|
|
6
|
+
* The value is array of dependencies for each package.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getDependencies(excludePrivate?: boolean): Record<string, string[]>;
|
|
9
|
+
//# sourceMappingURL=getDependencies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDependencies.d.ts","sourceRoot":"","sources":["../../../../src/scripts/lerna/getDependencies.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,cAAc,UAAO,GACpB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAY1B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDependencies = getDependencies;
|
|
4
|
+
const cmd_1 = require("../cmd");
|
|
5
|
+
const log_1 = require("./log");
|
|
6
|
+
/**
|
|
7
|
+
* Get list of all packages in this monorepo,
|
|
8
|
+
* with all their dependant packages.
|
|
9
|
+
*
|
|
10
|
+
* Each key of the object is a package from this monorepo.
|
|
11
|
+
* The value is array of dependencies for each package.
|
|
12
|
+
*/
|
|
13
|
+
function getDependencies(excludePrivate = true) {
|
|
14
|
+
log_1.log.verbose('getDependencies', excludePrivate);
|
|
15
|
+
const cmdResult = (0, cmd_1.getBashOutput)('lerna/list', {
|
|
16
|
+
graph: true,
|
|
17
|
+
all: !excludePrivate || undefined,
|
|
18
|
+
noPrivate: excludePrivate || undefined,
|
|
19
|
+
loglevel: 'silent',
|
|
20
|
+
});
|
|
21
|
+
const packages = JSON.parse(cmdResult);
|
|
22
|
+
return packages;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDetails.d.ts","sourceRoot":"","sources":["../../../../src/scripts/lerna/getDetails.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAgB,cAAc,EAAE,MAAM,SAAS,CAAC;AAe5D,eAAO,MAAM,UAAU,GAAI,wBAAqB,KAAG,cAAc,EA0BhE,CAAC"}
|