@gluhar/cli 3.0.1 → 3.0.2
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/CHANGELOG.md +628 -0
- package/README.md +11 -0
- package/package.json +46 -46
- package/src/GlobalOptions.ts +8 -0
- package/src/commands/blank/BlankOptions.ts +3 -0
- package/src/commands/blank/blank.ts +6 -0
- package/src/commands/blank/index.ts +8 -0
- package/src/commands/blank/log.ts +3 -0
- package/src/commands/build/BuildOptions.ts +3 -0
- package/src/commands/build/build.ts +24 -0
- package/src/commands/build/index.ts +8 -0
- package/src/commands/build/log.ts +3 -0
- package/src/commands/deinstall/DeinstallOptions.ts +3 -0
- package/src/commands/deinstall/deinstall.ts +19 -0
- package/src/commands/deinstall/index.ts +11 -0
- package/src/commands/deinstall/log.ts +3 -0
- package/src/commands/deploy/DeployOptions.ts +6 -0
- package/src/commands/deploy/deploy.ts +39 -0
- package/src/commands/deploy/deployIos.ts +48 -0
- package/src/commands/deploy/index.ts +20 -0
- package/src/commands/deploy/log.ts +3 -0
- package/src/commands/deploy/setSsr.ts +25 -0
- package/src/commands/dev/DevOptions.ts +4 -0
- package/src/commands/dev/dev.ts +15 -0
- package/src/commands/dev/devIos.ts +23 -0
- package/src/commands/dev/index.ts +12 -0
- package/src/commands/dev/log.ts +3 -0
- package/src/commands/generate/GenerateOptions.ts +9 -0
- package/src/commands/generate/generate.ts +29 -0
- package/src/commands/generate/generateCommand.ts +46 -0
- package/src/commands/generate/generateProject.ts +115 -0
- package/src/commands/generate/index.ts +19 -0
- package/src/commands/generate/log.ts +3 -0
- package/src/commands/index.ts +21 -0
- package/src/commands/reinstall/ReinstallOptions.ts +3 -0
- package/src/commands/reinstall/index.ts +11 -0
- package/src/commands/reinstall/log.ts +3 -0
- package/src/commands/reinstall/reinstall.ts +13 -0
- package/src/commands/release/ReleaseOptions.ts +8 -0
- package/src/commands/release/index.ts +40 -0
- package/src/commands/release/log.ts +3 -0
- package/src/commands/release/publish.ts +18 -0
- package/src/commands/release/release.ts +24 -0
- package/src/commands/release/tag.ts +119 -0
- package/src/commands/upgrade/UpgradeOptions.ts +3 -0
- package/src/commands/upgrade/index.ts +10 -0
- package/src/commands/upgrade/log.ts +3 -0
- package/src/commands/upgrade/upgrade.ts +10 -0
- package/src/commands/version/VersionOptions.ts +7 -0
- package/src/commands/version/getPreid.ts +7 -0
- package/src/commands/version/index.ts +18 -0
- package/src/commands/version/log.ts +3 -0
- package/src/commands/version/pimpChangelogs.ts +43 -0
- package/src/commands/version/version.ts +33 -0
- package/src/constants.ts +5 -0
- package/src/index.ts +24 -0
- package/src/preAction.ts +93 -0
- package/src/scripts/cmd/cd.ts +9 -0
- package/src/scripts/cmd/{executeBash.d.ts → executeBash.ts} +20 -10
- package/src/scripts/cmd/executeCmd.ts +23 -0
- package/src/scripts/cmd/{getBashOutput.d.ts → getBashOutput.ts} +23 -10
- package/src/scripts/cmd/getCmdOutput.ts +26 -0
- package/src/scripts/cmd/{index.d.ts → index.ts} +10 -8
- package/src/scripts/cmd/log.ts +3 -0
- package/src/scripts/cmd/parseArgs.ts +44 -0
- package/src/scripts/cmd/parseBashArgs.ts +21 -0
- package/src/scripts/cmd/types.ts +13 -0
- package/src/scripts/filesystem/copyDir.ts +29 -0
- package/src/scripts/filesystem/copyFiles.ts +75 -0
- package/src/scripts/filesystem/findFile.ts +29 -0
- package/src/scripts/filesystem/index.ts +15 -0
- package/src/scripts/filesystem/loadJsonFile.ts +17 -0
- package/src/scripts/filesystem/log.ts +3 -0
- package/src/scripts/filesystem/readDirRecursive.ts +21 -0
- package/src/scripts/git/branch/branchDelete.ts +32 -0
- package/src/scripts/git/branch/branchExists.ts +14 -0
- package/src/scripts/git/branch/checkout.ts +19 -0
- package/src/scripts/git/branch/getCurrentBranch.ts +37 -0
- package/src/scripts/git/clone.ts +20 -0
- package/src/scripts/git/commit.sh +0 -0
- package/src/scripts/git/getRepo.ts +11 -0
- package/src/scripts/git/index.ts +44 -0
- package/src/scripts/git/log.ts +3 -0
- package/src/scripts/git/openPr.ts +21 -0
- package/src/scripts/git/remoteStatus.ts +28 -0
- package/src/scripts/git/tag/createTag.ts +28 -0
- package/src/scripts/git/tag/deleteTag.ts +11 -0
- package/src/scripts/git/tag/getTags.ts +6 -0
- package/src/scripts/git/tag/pushAllTags.ts +6 -0
- package/src/scripts/git/tag/renameTag.ts +12 -0
- package/src/scripts/lerna/changed.ts +11 -0
- package/src/scripts/lerna/constants.ts +6 -0
- package/src/scripts/lerna/filterByDependency.ts +21 -0
- package/src/scripts/lerna/getConfig.ts +12 -0
- package/src/scripts/lerna/getDependencies.ts +25 -0
- package/src/scripts/lerna/getDetails.ts +44 -0
- package/src/scripts/lerna/index.ts +18 -0
- package/src/scripts/lerna/log.ts +3 -0
- package/src/scripts/lerna/publish.sh +0 -0
- package/src/scripts/lerna/types.ts +64 -0
- package/src/scripts/lerna/version.sh +1 -1
- package/src/utils/chalk.ts +4 -0
- package/src/utils/common.ts +16 -0
- package/src/utils/{index.d.ts → index.ts} +3 -4
- package/src/utils/inquirer.ts +20 -0
- package/src/utils/logger.ts +51 -0
- package/tsconfig.json +28 -0
- package/src/GlobalOptions.d.ts +0 -8
- package/src/GlobalOptions.d.ts.map +0 -1
- package/src/GlobalOptions.js +0 -2
- package/src/commands/blank/BlankOptions.d.ts +0 -4
- package/src/commands/blank/BlankOptions.d.ts.map +0 -1
- package/src/commands/blank/BlankOptions.js +0 -2
- package/src/commands/blank/blank.d.ts +0 -3
- package/src/commands/blank/blank.d.ts.map +0 -1
- package/src/commands/blank/blank.js +0 -8
- package/src/commands/blank/index.d.ts +0 -4
- package/src/commands/blank/index.d.ts.map +0 -1
- package/src/commands/blank/index.js +0 -9
- package/src/commands/blank/log.d.ts +0 -2
- package/src/commands/blank/log.d.ts.map +0 -1
- package/src/commands/blank/log.js +0 -5
- package/src/commands/build/BuildOptions.d.ts +0 -4
- package/src/commands/build/BuildOptions.d.ts.map +0 -1
- package/src/commands/build/BuildOptions.js +0 -2
- package/src/commands/build/build.d.ts +0 -3
- package/src/commands/build/build.d.ts.map +0 -1
- package/src/commands/build/build.js +0 -22
- package/src/commands/build/index.d.ts +0 -4
- package/src/commands/build/index.d.ts.map +0 -1
- package/src/commands/build/index.js +0 -9
- package/src/commands/build/log.d.ts +0 -2
- package/src/commands/build/log.d.ts.map +0 -1
- package/src/commands/build/log.js +0 -5
- package/src/commands/danka/DankaOptions.d.ts +0 -4
- package/src/commands/danka/DankaOptions.d.ts.map +0 -1
- package/src/commands/danka/DankaOptions.js +0 -2
- package/src/commands/danka/danka.d.ts +0 -3
- package/src/commands/danka/danka.d.ts.map +0 -1
- package/src/commands/danka/danka.js +0 -8
- package/src/commands/danka/index.d.ts +0 -4
- package/src/commands/danka/index.d.ts.map +0 -1
- package/src/commands/danka/index.js +0 -9
- package/src/commands/danka/log.d.ts +0 -2
- package/src/commands/danka/log.d.ts.map +0 -1
- package/src/commands/danka/log.js +0 -5
- package/src/commands/deinstall/DeinstallOptions.d.ts +0 -4
- package/src/commands/deinstall/DeinstallOptions.d.ts.map +0 -1
- package/src/commands/deinstall/DeinstallOptions.js +0 -2
- package/src/commands/deinstall/deinstall.d.ts +0 -3
- package/src/commands/deinstall/deinstall.d.ts.map +0 -1
- package/src/commands/deinstall/deinstall.js +0 -21
- package/src/commands/deinstall/index.d.ts +0 -4
- package/src/commands/deinstall/index.d.ts.map +0 -1
- package/src/commands/deinstall/index.js +0 -9
- package/src/commands/deinstall/log.d.ts +0 -2
- package/src/commands/deinstall/log.d.ts.map +0 -1
- package/src/commands/deinstall/log.js +0 -5
- package/src/commands/deploy/DeployOptions.d.ts +0 -7
- package/src/commands/deploy/DeployOptions.d.ts.map +0 -1
- package/src/commands/deploy/DeployOptions.js +0 -2
- package/src/commands/deploy/deploy.d.ts +0 -3
- package/src/commands/deploy/deploy.d.ts.map +0 -1
- package/src/commands/deploy/deploy.js +0 -33
- package/src/commands/deploy/deployIos.d.ts +0 -2
- package/src/commands/deploy/deployIos.d.ts.map +0 -1
- package/src/commands/deploy/deployIos.js +0 -44
- package/src/commands/deploy/index.d.ts +0 -4
- package/src/commands/deploy/index.d.ts.map +0 -1
- package/src/commands/deploy/index.js +0 -12
- package/src/commands/deploy/log.d.ts +0 -2
- package/src/commands/deploy/log.d.ts.map +0 -1
- package/src/commands/deploy/log.js +0 -5
- package/src/commands/deploy/setSsr.d.ts +0 -2
- package/src/commands/deploy/setSsr.d.ts.map +0 -1
- package/src/commands/deploy/setSsr.js +0 -25
- package/src/commands/dev/DevOptions.d.ts +0 -5
- package/src/commands/dev/DevOptions.d.ts.map +0 -1
- package/src/commands/dev/DevOptions.js +0 -2
- package/src/commands/dev/dev.d.ts +0 -3
- package/src/commands/dev/dev.d.ts.map +0 -1
- package/src/commands/dev/dev.js +0 -16
- package/src/commands/dev/devIos.d.ts +0 -3
- package/src/commands/dev/devIos.d.ts.map +0 -1
- package/src/commands/dev/devIos.js +0 -26
- package/src/commands/dev/index.d.ts +0 -4
- package/src/commands/dev/index.d.ts.map +0 -1
- package/src/commands/dev/index.js +0 -10
- package/src/commands/dev/log.d.ts +0 -2
- package/src/commands/dev/log.d.ts.map +0 -1
- package/src/commands/dev/log.js +0 -5
- package/src/commands/generate/GenerateOptions.d.ts +0 -9
- package/src/commands/generate/GenerateOptions.d.ts.map +0 -1
- package/src/commands/generate/GenerateOptions.js +0 -4
- package/src/commands/generate/generate.d.ts +0 -3
- package/src/commands/generate/generate.d.ts.map +0 -1
- package/src/commands/generate/generate.js +0 -22
- package/src/commands/generate/generateCommand.d.ts +0 -2
- package/src/commands/generate/generateCommand.d.ts.map +0 -1
- package/src/commands/generate/generateCommand.js +0 -36
- package/src/commands/generate/generateProject.d.ts +0 -3
- package/src/commands/generate/generateProject.d.ts.map +0 -1
- package/src/commands/generate/generateProject.js +0 -85
- package/src/commands/generate/index.d.ts +0 -4
- package/src/commands/generate/index.d.ts.map +0 -1
- package/src/commands/generate/index.js +0 -14
- package/src/commands/generate/log.d.ts +0 -2
- package/src/commands/generate/log.d.ts.map +0 -1
- package/src/commands/generate/log.js +0 -5
- package/src/commands/index.d.ts +0 -3
- package/src/commands/index.d.ts.map +0 -1
- package/src/commands/index.js +0 -25
- package/src/commands/kiss/KissOptions.d.ts +0 -4
- package/src/commands/kiss/KissOptions.d.ts.map +0 -1
- package/src/commands/kiss/KissOptions.js +0 -2
- package/src/commands/kiss/index.d.ts +0 -4
- package/src/commands/kiss/index.d.ts.map +0 -1
- package/src/commands/kiss/index.js +0 -9
- package/src/commands/kiss/kiss.d.ts +0 -3
- package/src/commands/kiss/kiss.d.ts.map +0 -1
- package/src/commands/kiss/kiss.js +0 -8
- package/src/commands/kiss/log.d.ts +0 -2
- package/src/commands/kiss/log.d.ts.map +0 -1
- package/src/commands/kiss/log.js +0 -5
- package/src/commands/reinstall/ReinstallOptions.d.ts +0 -4
- package/src/commands/reinstall/ReinstallOptions.d.ts.map +0 -1
- package/src/commands/reinstall/ReinstallOptions.js +0 -2
- package/src/commands/reinstall/index.d.ts +0 -4
- package/src/commands/reinstall/index.d.ts.map +0 -1
- package/src/commands/reinstall/index.js +0 -9
- package/src/commands/reinstall/log.d.ts +0 -2
- package/src/commands/reinstall/log.d.ts.map +0 -1
- package/src/commands/reinstall/log.js +0 -5
- package/src/commands/reinstall/reinstall.d.ts +0 -3
- package/src/commands/reinstall/reinstall.d.ts.map +0 -1
- package/src/commands/reinstall/reinstall.js +0 -14
- package/src/commands/release/ReleaseOptions.d.ts +0 -9
- package/src/commands/release/ReleaseOptions.d.ts.map +0 -1
- package/src/commands/release/ReleaseOptions.js +0 -2
- package/src/commands/release/index.d.ts +0 -4
- package/src/commands/release/index.d.ts.map +0 -1
- package/src/commands/release/index.js +0 -22
- package/src/commands/release/log.d.ts +0 -2
- package/src/commands/release/log.d.ts.map +0 -1
- package/src/commands/release/log.js +0 -5
- package/src/commands/release/publish.d.ts +0 -3
- package/src/commands/release/publish.d.ts.map +0 -1
- package/src/commands/release/publish.js +0 -18
- package/src/commands/release/release.d.ts +0 -3
- package/src/commands/release/release.d.ts.map +0 -1
- package/src/commands/release/release.js +0 -24
- package/src/commands/release/tag.d.ts +0 -23
- package/src/commands/release/tag.d.ts.map +0 -1
- package/src/commands/release/tag.js +0 -90
- package/src/commands/upgrade/UpgradeOptions.d.ts +0 -4
- package/src/commands/upgrade/UpgradeOptions.d.ts.map +0 -1
- package/src/commands/upgrade/UpgradeOptions.js +0 -2
- package/src/commands/upgrade/index.d.ts +0 -4
- package/src/commands/upgrade/index.d.ts.map +0 -1
- package/src/commands/upgrade/index.js +0 -9
- package/src/commands/upgrade/log.d.ts +0 -2
- package/src/commands/upgrade/log.d.ts.map +0 -1
- package/src/commands/upgrade/log.js +0 -5
- package/src/commands/upgrade/upgrade.d.ts +0 -3
- package/src/commands/upgrade/upgrade.d.ts.map +0 -1
- package/src/commands/upgrade/upgrade.js +0 -11
- package/src/commands/version/VersionOptions.d.ts +0 -8
- package/src/commands/version/VersionOptions.d.ts.map +0 -1
- package/src/commands/version/VersionOptions.js +0 -2
- package/src/commands/version/getPreid.d.ts +0 -2
- package/src/commands/version/getPreid.d.ts.map +0 -1
- package/src/commands/version/getPreid.js +0 -10
- package/src/commands/version/index.d.ts +0 -4
- package/src/commands/version/index.d.ts.map +0 -1
- package/src/commands/version/index.js +0 -12
- package/src/commands/version/log.d.ts +0 -2
- package/src/commands/version/log.d.ts.map +0 -1
- package/src/commands/version/log.js +0 -5
- package/src/commands/version/pimpChangelogs.d.ts +0 -2
- package/src/commands/version/pimpChangelogs.d.ts.map +0 -1
- package/src/commands/version/pimpChangelogs.js +0 -37
- package/src/commands/version/version.d.ts +0 -3
- package/src/commands/version/version.d.ts.map +0 -1
- package/src/commands/version/version.js +0 -33
- package/src/constants.d.ts +0 -4
- package/src/constants.d.ts.map +0 -1
- package/src/constants.js +0 -7
- package/src/index.d.ts +0 -3
- package/src/index.d.ts.map +0 -1
- package/src/index.js +0 -24
- package/src/preAction.d.ts +0 -3
- package/src/preAction.d.ts.map +0 -1
- package/src/preAction.js +0 -76
- package/src/scripts/cmd/cd.d.ts +0 -2
- package/src/scripts/cmd/cd.d.ts.map +0 -1
- package/src/scripts/cmd/cd.js +0 -15
- package/src/scripts/cmd/executeBash.d.ts.map +0 -1
- package/src/scripts/cmd/executeBash.js +0 -21
- package/src/scripts/cmd/executeCmd.d.ts +0 -9
- package/src/scripts/cmd/executeCmd.d.ts.map +0 -1
- package/src/scripts/cmd/executeCmd.js +0 -23
- package/src/scripts/cmd/getBashOutput.d.ts.map +0 -1
- package/src/scripts/cmd/getBashOutput.js +0 -19
- package/src/scripts/cmd/getCmdOutput.d.ts +0 -10
- package/src/scripts/cmd/getCmdOutput.d.ts.map +0 -1
- package/src/scripts/cmd/getCmdOutput.js +0 -26
- package/src/scripts/cmd/index.d.ts.map +0 -1
- package/src/scripts/cmd/index.js +0 -25
- package/src/scripts/cmd/log.d.ts +0 -2
- package/src/scripts/cmd/log.d.ts.map +0 -1
- package/src/scripts/cmd/log.js +0 -5
- package/src/scripts/cmd/parseArgs.d.ts +0 -3
- package/src/scripts/cmd/parseArgs.d.ts.map +0 -1
- package/src/scripts/cmd/parseArgs.js +0 -41
- package/src/scripts/cmd/parseBashArgs.d.ts +0 -3
- package/src/scripts/cmd/parseBashArgs.d.ts.map +0 -1
- package/src/scripts/cmd/parseBashArgs.js +0 -16
- package/src/scripts/cmd/types.d.ts +0 -12
- package/src/scripts/cmd/types.d.ts.map +0 -1
- package/src/scripts/cmd/types.js +0 -2
- package/src/scripts/filesystem/copyDir.d.ts +0 -9
- package/src/scripts/filesystem/copyDir.d.ts.map +0 -1
- package/src/scripts/filesystem/copyDir.js +0 -26
- package/src/scripts/filesystem/copyFiles.d.ts +0 -11
- package/src/scripts/filesystem/copyFiles.d.ts.map +0 -1
- package/src/scripts/filesystem/copyFiles.js +0 -59
- package/src/scripts/filesystem/findFile.d.ts +0 -2
- package/src/scripts/filesystem/findFile.d.ts.map +0 -1
- package/src/scripts/filesystem/findFile.js +0 -24
- package/src/scripts/filesystem/index.d.ts +0 -10
- package/src/scripts/filesystem/index.d.ts.map +0 -1
- package/src/scripts/filesystem/index.js +0 -17
- package/src/scripts/filesystem/loadJsonFile.d.ts +0 -2
- package/src/scripts/filesystem/loadJsonFile.d.ts.map +0 -1
- package/src/scripts/filesystem/loadJsonFile.js +0 -18
- package/src/scripts/filesystem/log.d.ts +0 -2
- package/src/scripts/filesystem/log.d.ts.map +0 -1
- package/src/scripts/filesystem/log.js +0 -5
- package/src/scripts/filesystem/readDirRecursive.d.ts +0 -2
- package/src/scripts/filesystem/readDirRecursive.d.ts.map +0 -1
- package/src/scripts/filesystem/readDirRecursive.js +0 -16
- package/src/scripts/git/branch/branchDelete.d.ts +0 -6
- package/src/scripts/git/branch/branchDelete.d.ts.map +0 -1
- package/src/scripts/git/branch/branchDelete.js +0 -24
- package/src/scripts/git/branch/branchExists.d.ts +0 -5
- package/src/scripts/git/branch/branchExists.d.ts.map +0 -1
- package/src/scripts/git/branch/branchExists.js +0 -15
- package/src/scripts/git/branch/checkout.d.ts +0 -5
- package/src/scripts/git/branch/checkout.d.ts.map +0 -1
- package/src/scripts/git/branch/checkout.js +0 -15
- package/src/scripts/git/branch/getCurrentBranch.d.ts +0 -11
- package/src/scripts/git/branch/getCurrentBranch.d.ts.map +0 -1
- package/src/scripts/git/branch/getCurrentBranch.js +0 -28
- package/src/scripts/git/clone.d.ts +0 -10
- package/src/scripts/git/clone.d.ts.map +0 -1
- package/src/scripts/git/clone.js +0 -14
- package/src/scripts/git/getRepo.d.ts +0 -2
- package/src/scripts/git/getRepo.d.ts.map +0 -1
- package/src/scripts/git/getRepo.js +0 -13
- package/src/scripts/git/index.d.ts +0 -29
- package/src/scripts/git/index.d.ts.map +0 -1
- package/src/scripts/git/index.js +0 -40
- package/src/scripts/git/log.d.ts +0 -2
- package/src/scripts/git/log.d.ts.map +0 -1
- package/src/scripts/git/log.js +0 -5
- package/src/scripts/git/openPr.d.ts +0 -2
- package/src/scripts/git/openPr.d.ts.map +0 -1
- package/src/scripts/git/openPr.js +0 -20
- package/src/scripts/git/remoteStatus.d.ts +0 -3
- package/src/scripts/git/remoteStatus.d.ts.map +0 -1
- package/src/scripts/git/remoteStatus.js +0 -22
- package/src/scripts/git/tag/createTag.d.ts +0 -18
- package/src/scripts/git/tag/createTag.d.ts.map +0 -1
- package/src/scripts/git/tag/createTag.js +0 -18
- package/src/scripts/git/tag/deleteTag.d.ts +0 -2
- package/src/scripts/git/tag/deleteTag.d.ts.map +0 -1
- package/src/scripts/git/tag/deleteTag.js +0 -13
- package/src/scripts/git/tag/getTags.d.ts +0 -2
- package/src/scripts/git/tag/getTags.d.ts.map +0 -1
- package/src/scripts/git/tag/getTags.js +0 -8
- package/src/scripts/git/tag/pushAllTags.d.ts +0 -2
- package/src/scripts/git/tag/pushAllTags.d.ts.map +0 -1
- package/src/scripts/git/tag/pushAllTags.js +0 -8
- package/src/scripts/git/tag/renameTag.d.ts +0 -2
- package/src/scripts/git/tag/renameTag.d.ts.map +0 -1
- package/src/scripts/git/tag/renameTag.js +0 -14
- package/src/scripts/lerna/changed.d.ts +0 -3
- package/src/scripts/lerna/changed.d.ts.map +0 -1
- package/src/scripts/lerna/changed.js +0 -13
- package/src/scripts/lerna/constants.d.ts +0 -5
- package/src/scripts/lerna/constants.d.ts.map +0 -1
- package/src/scripts/lerna/constants.js +0 -7
- package/src/scripts/lerna/filterByDependency.d.ts +0 -7
- package/src/scripts/lerna/filterByDependency.d.ts.map +0 -1
- package/src/scripts/lerna/filterByDependency.js +0 -18
- package/src/scripts/lerna/getConfig.d.ts +0 -3
- package/src/scripts/lerna/getConfig.d.ts.map +0 -1
- package/src/scripts/lerna/getConfig.js +0 -13
- package/src/scripts/lerna/getDependencies.d.ts +0 -9
- package/src/scripts/lerna/getDependencies.d.ts.map +0 -1
- package/src/scripts/lerna/getDependencies.js +0 -23
- package/src/scripts/lerna/getDetails.d.ts +0 -3
- package/src/scripts/lerna/getDetails.d.ts.map +0 -1
- package/src/scripts/lerna/getDetails.js +0 -38
- package/src/scripts/lerna/index.d.ts +0 -14
- package/src/scripts/lerna/index.d.ts.map +0 -1
- package/src/scripts/lerna/index.js +0 -19
- package/src/scripts/lerna/log.d.ts +0 -2
- package/src/scripts/lerna/log.d.ts.map +0 -1
- package/src/scripts/lerna/log.js +0 -5
- package/src/scripts/lerna/types.d.ts +0 -62
- package/src/scripts/lerna/types.d.ts.map +0 -1
- package/src/scripts/lerna/types.js +0 -2
- package/src/utils/chalk.d.ts +0 -4
- package/src/utils/chalk.d.ts.map +0 -1
- package/src/utils/chalk.js +0 -9
- package/src/utils/common.d.ts +0 -8
- package/src/utils/common.d.ts.map +0 -1
- package/src/utils/common.js +0 -21
- package/src/utils/index.d.ts.map +0 -1
- package/src/utils/index.js +0 -19
- package/src/utils/inquirer.d.ts +0 -5
- package/src/utils/inquirer.d.ts.map +0 -1
- package/src/utils/inquirer.js +0 -21
- package/src/utils/logger.d.ts +0 -9
- package/src/utils/logger.d.ts.map +0 -1
- package/src/utils/logger.js +0 -36
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.loadJsonFile = void 0;
|
|
4
|
-
const fs_1 = require("fs");
|
|
5
|
-
const log_1 = require("./log");
|
|
6
|
-
const loadJsonFile = (filePath) => {
|
|
7
|
-
log_1.log.verbose('Try to load JSON file:', filePath);
|
|
8
|
-
const invalidPath = !filePath || !(0, fs_1.existsSync)(filePath);
|
|
9
|
-
if (invalidPath) {
|
|
10
|
-
log_1.log.verbose('Invalid file path:', filePath);
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
const json = (0, fs_1.readFileSync)(filePath).toString();
|
|
14
|
-
const result = JSON.parse(json);
|
|
15
|
-
log_1.log.verbose('Successfully loaded JSON file:', filePath);
|
|
16
|
-
return result;
|
|
17
|
-
};
|
|
18
|
-
exports.loadJsonFile = loadJsonFile;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../src/scripts/filesystem/log.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,4BAAuB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readDirRecursive.d.ts","sourceRoot":"","sources":["../../../../src/scripts/filesystem/readDirRecursive.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,gBAAgB,YAAa,MAAM,KAAG,MAAM,EAC/B,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.readDirRecursive = void 0;
|
|
4
|
-
const fs_extra_1 = require("fs-extra");
|
|
5
|
-
const path_1 = require("path");
|
|
6
|
-
const readDirStep = (absoluteDirPath, relativeDirPath) => (0, fs_extra_1.readdirSync)(absoluteDirPath).reduce((result, current) => {
|
|
7
|
-
const absPath = (0, path_1.resolve)(absoluteDirPath, current);
|
|
8
|
-
const relPath = (0, path_1.join)(relativeDirPath, current);
|
|
9
|
-
const isDirectory = (0, fs_extra_1.statSync)(absPath).isDirectory();
|
|
10
|
-
if (isDirectory) {
|
|
11
|
-
return [...result, ...readDirStep(absPath, relPath)];
|
|
12
|
-
}
|
|
13
|
-
return [...result, relPath];
|
|
14
|
-
}, []);
|
|
15
|
-
const readDirRecursive = (dirPath) => readDirStep(dirPath, '');
|
|
16
|
-
exports.readDirRecursive = readDirRecursive;
|
|
@@ -1 +0,0 @@
|
|
|
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,WACf,MAAM,YACL,mBAAmB,SAa7B,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"branchExists.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/branch/branchExists.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,eAAgB,MAAM;;;CAU9C,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
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,eAAgB,MAAM,QAAO,eAAe,qDAYhE,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
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;
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,28 +0,0 @@
|
|
|
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;
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,SACV,MAAM,QACP,MAAM,YACF,YAAY,SAItB,CAAC"}
|
package/src/scripts/git/clone.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getRepo.d.ts","sourceRoot":"","sources":["../../../../src/scripts/git/getRepo.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,QAAO,MAQ1B,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
|
@@ -1,29 +0,0 @@
|
|
|
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) => void;
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/src/scripts/git/index.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
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
|
-
};
|
package/src/scripts/git/log.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../src/scripts/git/log.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,4BAAgB,CAAC"}
|
package/src/scripts/git/log.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"openPr.d.ts","sourceRoot":"","sources":["../../../../src/scripts/git/openPr.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,iBAAkB,MAAM,qBAAqB,MAAM,SAgBrE,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
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,0CAAsC,YAkB9D,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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;
|
|
@@ -1,18 +0,0 @@
|
|
|
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) => void;
|
|
18
|
-
//# sourceMappingURL=createTag.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,SAAU,MAAM,YAAW,gBAAgB,SAOhE,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
(0, cmd_1.executeCmd)(`git tag ${name} ${object}`, {
|
|
13
|
-
force,
|
|
14
|
-
annotate: true,
|
|
15
|
-
message: '',
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
exports.createTag = createTag;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deleteTag.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/tag/deleteTag.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,SAAU,MAAM,SAOrC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pushAllTags.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/tag/pushAllTags.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,uEAGpB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renameTag.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/tag/renameTag.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,eAAgB,MAAM,cAAc,MAAM,SAO/D,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,7 +0,0 @@
|
|
|
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/";
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|