@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,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const commander_1 = require("commander");
|
|
4
|
-
const kiss_1 = require("./kiss");
|
|
5
|
-
exports.default = new commander_1.Command()
|
|
6
|
-
.name("kiss")
|
|
7
|
-
.description("Description of command.")
|
|
8
|
-
.option("-b, --kiss", "A boolean option.")
|
|
9
|
-
.action(kiss_1.kiss);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kiss.d.ts","sourceRoot":"","sources":["../../../../src/commands/kiss/kiss.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,eAAO,MAAM,IAAI,YAAa,WAAW,SAExC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../src/commands/kiss/log.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,4BAAiB,CAAC"}
|
package/src/commands/kiss/log.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReinstallOptions.d.ts","sourceRoot":"","sources":["../../../../src/commands/reinstall/ReinstallOptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/reinstall/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;;AAGpC,wBAOqB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const commander_1 = require("commander");
|
|
4
|
-
const reinstall_1 = require("./reinstall");
|
|
5
|
-
exports.default = new commander_1.Command()
|
|
6
|
-
.name("reinstall")
|
|
7
|
-
.description("Reinstall npm dependencies with a fresh package-lock.json.")
|
|
8
|
-
.option("-p, --packages", "Reinstall dependencies in when using multiple packages (monorepo).")
|
|
9
|
-
.action(reinstall_1.reinstall);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../src/commands/reinstall/log.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,4BAAsB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reinstall.d.ts","sourceRoot":"","sources":["../../../../src/commands/reinstall/reinstall.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAItD,eAAO,MAAM,SAAS,YAAa,gBAAgB,SAOlD,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.reinstall = void 0;
|
|
4
|
-
const cmd_1 = require("../../scripts/cmd");
|
|
5
|
-
const log_1 = require("./log");
|
|
6
|
-
const deinstall_1 = require("../deinstall/deinstall");
|
|
7
|
-
const reinstall = (options) => {
|
|
8
|
-
// Run deinstall first
|
|
9
|
-
(0, deinstall_1.deinstall)(options);
|
|
10
|
-
// Install dependencies
|
|
11
|
-
log_1.log.info("Reinstalling packages.");
|
|
12
|
-
(0, cmd_1.executeCmd)("npm install");
|
|
13
|
-
};
|
|
14
|
-
exports.reinstall = reinstall;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReleaseOptions.d.ts","sourceRoot":"","sources":["../../../../src/commands/release/ReleaseOptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,OAAO,GAAG,MAAM,CAAC;IACtB,GAAG,EAAE,OAAO,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,OAAO,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC;CAC1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/release/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;;AAIpC,wBAmCmB"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const commander_1 = require("commander");
|
|
4
|
-
const release_1 = require("./release");
|
|
5
|
-
const tag_1 = require("./tag");
|
|
6
|
-
exports.default = new commander_1.Command()
|
|
7
|
-
.name("release")
|
|
8
|
-
.description("Release and publish packages to the npm registry.")
|
|
9
|
-
.option("-y, --yes", "When run with this flag, we will skip all confirmation prompts. NOTE does not currently work.", false)
|
|
10
|
-
.option("--pre [id]", "Prerelease identifier. Use this when releasing a prerelease version.", false)
|
|
11
|
-
.option("-d, --dev", "Release a dev version. This is a shorthand for a prerelease with a 'dev' identifier.", false)
|
|
12
|
-
.option("--dir, --directory <path>", "Subdirectory to publish. Must apply to ALL packages, and MUST contain a package.json file.", "dist")
|
|
13
|
-
.option("--no-version", "Disable versioning and changelog gen.")
|
|
14
|
-
.option("--git-tag [tag]", [
|
|
15
|
-
"Create and push git tag(s). Optionally provide a template.",
|
|
16
|
-
"Template placeholders:",
|
|
17
|
-
`"${tag_1.pattern.fullPackageName}" (full package name, e.g. "@gluhar/cli"),`,
|
|
18
|
-
`"${tag_1.pattern.shortPackageName}" (short package name, e.g. "cli"),`,
|
|
19
|
-
`"${tag_1.pattern.version}" (released package version, e.g. "1.2.3").`,
|
|
20
|
-
`When set to "true" defaults to: "${tag_1.pattern.default.independent}" for independent versioning and "${tag_1.pattern.default.fixed}" for fixed.`,
|
|
21
|
-
].join("\n"))
|
|
22
|
-
.action(release_1.release);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../src/commands/release/log.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,4BAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../../src/commands/release/publish.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIvD,eAAO,MAAM,OAAO,YAAa,cAAc,SAY9C,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.publish = void 0;
|
|
4
|
-
const lerna_1 = require("../../scripts/lerna");
|
|
5
|
-
const log_1 = require("./log");
|
|
6
|
-
const getPreid_1 = require("../version/getPreid");
|
|
7
|
-
const publish = (options) => {
|
|
8
|
-
const { yes, pre, dev, directory } = options;
|
|
9
|
-
const distTag = dev ? "dev" : (0, getPreid_1.getPreid)(pre) ?? "latest";
|
|
10
|
-
log_1.log.info("Dist tag:", distTag);
|
|
11
|
-
log_1.log.info("Directory:", directory);
|
|
12
|
-
lerna_1.lerna.publish({
|
|
13
|
-
distTag,
|
|
14
|
-
contents: directory,
|
|
15
|
-
yes,
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
exports.publish = publish;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../../src/commands/release/release.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAKvD,eAAO,MAAM,OAAO,YAAmB,cAAc,kBAiBpD,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.release = void 0;
|
|
4
|
-
const version_1 = require("../version/version");
|
|
5
|
-
const log_1 = require("./log");
|
|
6
|
-
const publish_1 = require("./publish");
|
|
7
|
-
const tag_1 = require("./tag");
|
|
8
|
-
const release = async (options) => {
|
|
9
|
-
log_1.log.info("Initiating release...");
|
|
10
|
-
const { pre, dev, yes } = options;
|
|
11
|
-
if (yes)
|
|
12
|
-
log_1.log.info("and saying yes to all prompts.");
|
|
13
|
-
if (options.version)
|
|
14
|
-
await (0, version_1.version)({
|
|
15
|
-
pre,
|
|
16
|
-
dev,
|
|
17
|
-
yes,
|
|
18
|
-
changelog: !dev,
|
|
19
|
-
commit: "chore: Releasing gluhar packages.",
|
|
20
|
-
});
|
|
21
|
-
(0, publish_1.publish)(options);
|
|
22
|
-
await (0, tag_1.tag)(options);
|
|
23
|
-
};
|
|
24
|
-
exports.release = release;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { ReleaseOptions } from "./ReleaseOptions";
|
|
2
|
-
export declare const pattern: {
|
|
3
|
-
/** e.g. `@gluhar/cli` */
|
|
4
|
-
fullPackageName: string;
|
|
5
|
-
/** e.g. `cli` */
|
|
6
|
-
shortPackageName: string;
|
|
7
|
-
/** e.g. `1.2.3` */
|
|
8
|
-
version: string;
|
|
9
|
-
default: {
|
|
10
|
-
/** e.g. `cli/v1.2.3` */
|
|
11
|
-
independent: string;
|
|
12
|
-
/** e.g. `v1.2.3` */
|
|
13
|
-
fixed: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export interface PackageInfo {
|
|
17
|
-
/** Required for independent versioning. */
|
|
18
|
-
name?: string;
|
|
19
|
-
version: string;
|
|
20
|
-
}
|
|
21
|
-
export declare const parsePattern: (tagPattern: string, pkg: PackageInfo) => string;
|
|
22
|
-
export declare const tag: (options: ReleaseOptions) => Promise<void>;
|
|
23
|
-
//# sourceMappingURL=tag.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../src/commands/release/tag.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGvD,eAAO,MAAM,OAAO;IAClB,yBAAyB;;IAEzB,iBAAiB;;IAEjB,mBAAmB;;;QAGjB,wBAAwB;;QAExB,oBAAoB;;;CAGvB,CAAC;AAiBF,MAAM,WAAW,WAAW;IAC1B,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,eAAgB,MAAM,OAAO,WAAW,KAAG,MAyBnE,CAAC;AAEF,eAAO,MAAM,GAAG,YAAmB,cAAc,kBAgDhD,CAAC"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.tag = exports.parsePattern = exports.pattern = void 0;
|
|
4
|
-
const lerna_1 = require("../../scripts/lerna");
|
|
5
|
-
const constants_1 = require("../../scripts/lerna/constants");
|
|
6
|
-
const git_1 = require("../../scripts/git");
|
|
7
|
-
const utils_1 = require("../../utils");
|
|
8
|
-
const log_1 = require("./log");
|
|
9
|
-
exports.pattern = {
|
|
10
|
-
/** e.g. `@gluhar/cli` */
|
|
11
|
-
fullPackageName: "%f",
|
|
12
|
-
/** e.g. `cli` */
|
|
13
|
-
shortPackageName: "%s",
|
|
14
|
-
/** e.g. `1.2.3` */
|
|
15
|
-
version: "%v",
|
|
16
|
-
default: {
|
|
17
|
-
/** e.g. `cli/v1.2.3` */
|
|
18
|
-
independent: "%f@%v",
|
|
19
|
-
/** e.g. `v1.2.3` */
|
|
20
|
-
fixed: "v%v",
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
const getGitTagPattern = (gitTag, isIndependent) => {
|
|
24
|
-
if (typeof gitTag === "string") {
|
|
25
|
-
return gitTag;
|
|
26
|
-
}
|
|
27
|
-
if (!gitTag) {
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
return isIndependent ? exports.pattern.default.independent : exports.pattern.default.fixed;
|
|
31
|
-
};
|
|
32
|
-
const parsePattern = (tagPattern, pkg) => {
|
|
33
|
-
const { name: fullName, version } = pkg;
|
|
34
|
-
const placeholders = [
|
|
35
|
-
{
|
|
36
|
-
pattern: exports.pattern.version,
|
|
37
|
-
value: version,
|
|
38
|
-
},
|
|
39
|
-
];
|
|
40
|
-
if (fullName) {
|
|
41
|
-
const shortName = fullName.substring(fullName.indexOf("/") + 1);
|
|
42
|
-
placeholders.push({
|
|
43
|
-
pattern: exports.pattern.fullPackageName,
|
|
44
|
-
value: fullName,
|
|
45
|
-
});
|
|
46
|
-
placeholders.push({
|
|
47
|
-
pattern: exports.pattern.shortPackageName,
|
|
48
|
-
value: shortName,
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
return placeholders.reduce((t, ph) => t.replaceAll(ph.pattern, ph.value), tagPattern);
|
|
52
|
-
};
|
|
53
|
-
exports.parsePattern = parsePattern;
|
|
54
|
-
const tag = async (options) => {
|
|
55
|
-
const { gitTag, yes } = options;
|
|
56
|
-
if (!gitTag) {
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
const lernaConfig = lerna_1.lerna.getConfig();
|
|
60
|
-
const isIndependent = !!lernaConfig && lernaConfig.version === constants_1.INDEPENDENT_VERSION;
|
|
61
|
-
const tagPattern = getGitTagPattern(gitTag, isIndependent);
|
|
62
|
-
if (!tagPattern) {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
const tags = new Set();
|
|
66
|
-
if (!lernaConfig ||
|
|
67
|
-
isIndependent ||
|
|
68
|
-
tagPattern.includes(exports.pattern.fullPackageName) ||
|
|
69
|
-
tagPattern.includes(exports.pattern.shortPackageName)) {
|
|
70
|
-
lerna_1.lerna
|
|
71
|
-
.changed()
|
|
72
|
-
.filter((pkg) => !pkg.private)
|
|
73
|
-
.map((pkg) => (0, exports.parsePattern)(tagPattern, pkg))
|
|
74
|
-
.forEach((t) => tags.add(t));
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
const t = (0, exports.parsePattern)(tagPattern, { version: lernaConfig.version });
|
|
78
|
-
tags.add(t);
|
|
79
|
-
}
|
|
80
|
-
const tagList = [...tags].map((t) => `\n - ${t}`).join("");
|
|
81
|
-
log_1.log.verbose("Tags to create:", tagList);
|
|
82
|
-
const confirm = await (0, utils_1.confirmQuestion)(`Create and push tag(s): ${tagList}. Confirm?`, yes);
|
|
83
|
-
if (confirm) {
|
|
84
|
-
tags.forEach((t) => {
|
|
85
|
-
git_1.git.tag.create(t);
|
|
86
|
-
});
|
|
87
|
-
git_1.git.tag.pushAll();
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
exports.tag = tag;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UpgradeOptions.d.ts","sourceRoot":"","sources":["../../../../src/commands/upgrade/UpgradeOptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;CAClB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/upgrade/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;;AAGpC,wBAMmB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const commander_1 = require("commander");
|
|
4
|
-
const upgrade_1 = require("./upgrade");
|
|
5
|
-
exports.default = new commander_1.Command()
|
|
6
|
-
.name("upgrade")
|
|
7
|
-
.description("Upgrade all gluhar dependencies in a project to their latest versions.")
|
|
8
|
-
.option("-b, --upgrade", "A boolean option.")
|
|
9
|
-
.action(upgrade_1.upgrade);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../src/commands/upgrade/log.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,4BAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../../../../src/commands/upgrade/upgrade.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,eAAO,MAAM,OAAO,YAAa,cAAc,SAK9C,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.upgrade = void 0;
|
|
4
|
-
const cmd_1 = require("../../scripts/cmd");
|
|
5
|
-
const log_1 = require("./log");
|
|
6
|
-
const upgrade = (options) => {
|
|
7
|
-
log_1.log.info("Upgrading gluhar dependencies.");
|
|
8
|
-
// Upgrade all gluhar dependencies in a project to their latest versions.
|
|
9
|
-
(0, cmd_1.executeCmd)("npm update @gluhar/cli @gluhar/app");
|
|
10
|
-
};
|
|
11
|
-
exports.upgrade = upgrade;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VersionOptions.d.ts","sourceRoot":"","sources":["../../../../src/commands/version/VersionOptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,OAAO,GAAG,MAAM,CAAC;IACtB,GAAG,EAAE,OAAO,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPreid.d.ts","sourceRoot":"","sources":["../../../../src/commands/version/getPreid.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,QAAS,OAAO,GAAG,MAAM,uBAM7C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/version/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;;AAGpC,wBAcmB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const commander_1 = require("commander");
|
|
4
|
-
const version_1 = require("./version");
|
|
5
|
-
exports.default = new commander_1.Command()
|
|
6
|
-
.name("version")
|
|
7
|
-
.description("Update package versions and generate change logs.")
|
|
8
|
-
.option("--pre [id]", "Prerelease identifier. Use this when creating a prerelease versioning.", false)
|
|
9
|
-
.option("-d, --dev", "Release a dev version. This is a shorthand for a prerelease with a 'dev' identifier.")
|
|
10
|
-
.option("--no-changelog", "Disable generating changelogs.")
|
|
11
|
-
.option("-c, --commit [msg]", "Commit changes in git.", false)
|
|
12
|
-
.action(version_1.version);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../src/commands/version/log.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,4BAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pimpChangelogs.d.ts","sourceRoot":"","sources":["../../../../src/commands/version/pimpChangelogs.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,qBAoC1B,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.pimpChangelogs = void 0;
|
|
4
|
-
const log_1 = require("./log");
|
|
5
|
-
const glob_1 = require("glob");
|
|
6
|
-
const path_1 = require("path");
|
|
7
|
-
const fs_1 = require("fs");
|
|
8
|
-
const common_1 = require("../../utils/common");
|
|
9
|
-
const pimpChangelogs = async () => {
|
|
10
|
-
log_1.log.info("Pimping changelogs");
|
|
11
|
-
const g = (0, path_1.join)("packages", "**", "CHANGELOG.md");
|
|
12
|
-
const filePaths = await (0, glob_1.glob)(g);
|
|
13
|
-
const changelogs = filePaths.map((fp) => {
|
|
14
|
-
const changelog = (0, fs_1.readFileSync)(fp).toString();
|
|
15
|
-
const lines = changelog.split("\n").map((line) => {
|
|
16
|
-
if (line.substring(0, 2) === "* ") {
|
|
17
|
-
if (line.substring(0, 4) === "* **")
|
|
18
|
-
return `- ${line.substring(2).split("** ").map(common_1.capitalize).join("** ")}`;
|
|
19
|
-
return `- ${(0, common_1.capitalize)(line.substring(2))}`;
|
|
20
|
-
}
|
|
21
|
-
if (line.includes("**Note:**"))
|
|
22
|
-
return line.replace("**Note:**", "**📝 Note:**");
|
|
23
|
-
if (line.substring(0, 4) === "### ")
|
|
24
|
-
return line
|
|
25
|
-
.replace("### Features", "### 🚀 Enhancements")
|
|
26
|
-
.replace("### Bug Fixes", "### 🩹 Fixes")
|
|
27
|
-
.replace("### Chore", "### 🏡 Chore")
|
|
28
|
-
.replace("### Performance Improvements", "### 🔥 Performance");
|
|
29
|
-
return line;
|
|
30
|
-
});
|
|
31
|
-
return lines.join("\n");
|
|
32
|
-
});
|
|
33
|
-
await filePaths.forEach((file, idx) => {
|
|
34
|
-
(0, fs_1.writeFileSync)(file, changelogs[idx]);
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
exports.pimpChangelogs = pimpChangelogs;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../src/commands/version/version.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAKvD,eAAO,MAAM,OAAO,YAAmB,cAAc,kBAyBpD,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.version = void 0;
|
|
4
|
-
const lerna_1 = require("../../scripts/lerna");
|
|
5
|
-
const git_1 = require("../../scripts/git");
|
|
6
|
-
const log_1 = require("./log");
|
|
7
|
-
const getPreid_1 = require("./getPreid");
|
|
8
|
-
const pimpChangelogs_1 = require("./pimpChangelogs");
|
|
9
|
-
const version = async (options) => {
|
|
10
|
-
const { pre, dev, changelog, commit, yes } = options;
|
|
11
|
-
lerna_1.lerna.version({
|
|
12
|
-
conventionalCommits: true,
|
|
13
|
-
conventionalGraduate: (!dev && !pre) || undefined,
|
|
14
|
-
conventionalPrerelease: !!dev || !!pre || undefined,
|
|
15
|
-
preid: dev ? "dev" : (0, getPreid_1.getPreid)(pre),
|
|
16
|
-
includeMergedTags: true,
|
|
17
|
-
gitTagVersion: false,
|
|
18
|
-
private: false,
|
|
19
|
-
push: false,
|
|
20
|
-
changelog,
|
|
21
|
-
yes,
|
|
22
|
-
});
|
|
23
|
-
if (changelog)
|
|
24
|
-
await (0, pimpChangelogs_1.pimpChangelogs)();
|
|
25
|
-
if (commit) {
|
|
26
|
-
log_1.log.info("Commit changes.");
|
|
27
|
-
const msg = commit === true ? "chore: Prepare Release" : commit;
|
|
28
|
-
git_1.git.commit({
|
|
29
|
-
m: msg,
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
exports.version = version;
|
package/src/constants.d.ts
DELETED
package/src/constants.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,QAAsB,CAAC;AAChD,eAAO,MAAM,OAAO,QAAU,CAAC;AAC/B,eAAO,MAAM,WAAW,QAAyB,CAAC"}
|