@gluhar/cli 3.0.2 → 3.1.5
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 +46 -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/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 +85 -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/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 +9 -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 +22 -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 +18 -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 +24 -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 +90 -0
- package/src/commands/upgrade/UpgradeOptions.d.ts +4 -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 +11 -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 +33 -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 +81 -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/{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} +8 -10
- package/src/scripts/cmd/index.d.ts.map +1 -0
- package/src/scripts/cmd/index.js +25 -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,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) => void;
|
|
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,SAOrE,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
|
+
(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"}
|
|
@@ -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
|