@gluhar/cli 3.0.2 → 6.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +53 -46
- package/src/GlobalOptions.d.ts +8 -0
- package/src/GlobalOptions.d.ts.map +1 -0
- package/src/GlobalOptions.js +2 -0
- package/src/commands/blank/BlankOptions.d.ts +4 -0
- package/src/commands/blank/BlankOptions.d.ts.map +1 -0
- package/src/commands/blank/BlankOptions.js +2 -0
- package/src/commands/blank/blank.d.ts +3 -0
- package/src/commands/blank/blank.d.ts.map +1 -0
- package/src/commands/blank/blank.js +8 -0
- package/src/commands/blank/index.d.ts +4 -0
- package/src/commands/blank/index.d.ts.map +1 -0
- package/src/commands/blank/index.js +9 -0
- package/src/commands/blank/log.d.ts +2 -0
- package/src/commands/blank/log.d.ts.map +1 -0
- package/src/commands/blank/log.js +5 -0
- package/src/commands/build/BuildOptions.d.ts +4 -0
- package/src/commands/build/BuildOptions.d.ts.map +1 -0
- package/src/commands/build/BuildOptions.js +2 -0
- package/src/commands/build/build.d.ts +3 -0
- package/src/commands/build/build.d.ts.map +1 -0
- package/src/commands/build/build.js +22 -0
- package/src/commands/build/index.d.ts +4 -0
- package/src/commands/build/index.d.ts.map +1 -0
- package/src/commands/build/index.js +9 -0
- package/src/commands/build/log.d.ts +2 -0
- package/src/commands/build/log.d.ts.map +1 -0
- package/src/commands/build/log.js +5 -0
- package/src/commands/danka/DankaOptions.d.ts +4 -0
- package/src/commands/danka/DankaOptions.d.ts.map +1 -0
- package/src/commands/danka/DankaOptions.js +2 -0
- package/src/commands/danka/danka.d.ts +3 -0
- package/src/commands/danka/danka.d.ts.map +1 -0
- package/src/commands/danka/danka.js +8 -0
- package/src/commands/danka/index.d.ts +4 -0
- package/src/commands/danka/index.d.ts.map +1 -0
- package/src/commands/danka/index.js +9 -0
- package/src/commands/danka/log.d.ts +2 -0
- package/src/commands/danka/log.d.ts.map +1 -0
- package/src/commands/danka/log.js +5 -0
- package/src/commands/deinstall/DeinstallOptions.d.ts +4 -0
- package/src/commands/deinstall/DeinstallOptions.d.ts.map +1 -0
- package/src/commands/deinstall/DeinstallOptions.js +2 -0
- package/src/commands/deinstall/deinstall.d.ts +3 -0
- package/src/commands/deinstall/deinstall.d.ts.map +1 -0
- package/src/commands/deinstall/deinstall.js +21 -0
- package/src/commands/deinstall/index.d.ts +4 -0
- package/src/commands/deinstall/index.d.ts.map +1 -0
- package/src/commands/deinstall/index.js +9 -0
- package/src/commands/deinstall/log.d.ts +2 -0
- package/src/commands/deinstall/log.d.ts.map +1 -0
- package/src/commands/deinstall/log.js +5 -0
- package/src/commands/deploy/DeployOptions.d.ts +7 -0
- package/src/commands/deploy/DeployOptions.d.ts.map +1 -0
- package/src/commands/deploy/DeployOptions.js +2 -0
- package/src/commands/deploy/deploy.d.ts +3 -0
- package/src/commands/deploy/deploy.d.ts.map +1 -0
- package/src/commands/deploy/deploy.js +33 -0
- package/src/commands/deploy/deployIos.d.ts +2 -0
- package/src/commands/deploy/deployIos.d.ts.map +1 -0
- package/src/commands/deploy/deployIos.js +44 -0
- package/src/commands/deploy/index.d.ts +4 -0
- package/src/commands/deploy/index.d.ts.map +1 -0
- package/src/commands/deploy/index.js +12 -0
- package/src/commands/deploy/log.d.ts +2 -0
- package/src/commands/deploy/log.d.ts.map +1 -0
- package/src/commands/deploy/log.js +5 -0
- package/src/commands/deploy/setSsr.d.ts +2 -0
- package/src/commands/deploy/setSsr.d.ts.map +1 -0
- package/src/commands/deploy/setSsr.js +25 -0
- package/src/commands/dev/DevOptions.d.ts +5 -0
- package/src/commands/dev/DevOptions.d.ts.map +1 -0
- package/src/commands/dev/DevOptions.js +2 -0
- package/src/commands/dev/dev.d.ts +3 -0
- package/src/commands/dev/dev.d.ts.map +1 -0
- package/src/commands/dev/dev.js +16 -0
- package/src/commands/dev/devIos.d.ts +3 -0
- package/src/commands/dev/devIos.d.ts.map +1 -0
- package/src/commands/dev/devIos.js +26 -0
- package/src/commands/dev/index.d.ts +4 -0
- package/src/commands/dev/index.d.ts.map +1 -0
- package/src/commands/dev/index.js +10 -0
- package/src/commands/dev/log.d.ts +2 -0
- package/src/commands/dev/log.d.ts.map +1 -0
- package/src/commands/dev/log.js +5 -0
- package/src/commands/generate/GenerateOptions.d.ts +9 -0
- package/src/commands/generate/GenerateOptions.d.ts.map +1 -0
- package/src/commands/generate/GenerateOptions.js +4 -0
- package/src/commands/generate/generate.d.ts +3 -0
- package/src/commands/generate/generate.d.ts.map +1 -0
- package/src/commands/generate/generate.js +22 -0
- package/src/commands/generate/generateCommand.d.ts +2 -0
- package/src/commands/generate/generateCommand.d.ts.map +1 -0
- package/src/commands/generate/generateCommand.js +36 -0
- package/src/commands/generate/generateProject.d.ts +3 -0
- package/src/commands/generate/generateProject.d.ts.map +1 -0
- package/src/commands/generate/generateProject.js +86 -0
- package/src/commands/generate/index.d.ts +4 -0
- package/src/commands/generate/index.d.ts.map +1 -0
- package/src/commands/generate/index.js +14 -0
- package/src/commands/generate/log.d.ts +2 -0
- package/src/commands/generate/log.d.ts.map +1 -0
- package/src/commands/generate/log.js +5 -0
- package/src/commands/index.d.ts +3 -0
- package/src/commands/index.d.ts.map +1 -0
- package/src/commands/index.js +25 -0
- package/src/commands/kiss/KissOptions.d.ts +4 -0
- package/src/commands/kiss/KissOptions.d.ts.map +1 -0
- package/src/commands/kiss/KissOptions.js +2 -0
- package/src/commands/kiss/index.d.ts +4 -0
- package/src/commands/kiss/index.d.ts.map +1 -0
- package/src/commands/kiss/index.js +9 -0
- package/src/commands/kiss/kiss.d.ts +3 -0
- package/src/commands/kiss/kiss.d.ts.map +1 -0
- package/src/commands/kiss/kiss.js +8 -0
- package/src/commands/kiss/log.d.ts +2 -0
- package/src/commands/kiss/log.d.ts.map +1 -0
- package/src/commands/kiss/log.js +5 -0
- package/src/commands/reinstall/ReinstallOptions.d.ts +4 -0
- package/src/commands/reinstall/ReinstallOptions.d.ts.map +1 -0
- package/src/commands/reinstall/ReinstallOptions.js +2 -0
- package/src/commands/reinstall/index.d.ts +4 -0
- package/src/commands/reinstall/index.d.ts.map +1 -0
- package/src/commands/reinstall/index.js +9 -0
- package/src/commands/reinstall/log.d.ts +2 -0
- package/src/commands/reinstall/log.d.ts.map +1 -0
- package/src/commands/reinstall/log.js +5 -0
- package/src/commands/reinstall/reinstall.d.ts +3 -0
- package/src/commands/reinstall/reinstall.d.ts.map +1 -0
- package/src/commands/reinstall/reinstall.js +14 -0
- package/src/commands/release/ReleaseOptions.d.ts +10 -0
- package/src/commands/release/ReleaseOptions.d.ts.map +1 -0
- package/src/commands/release/ReleaseOptions.js +2 -0
- package/src/commands/release/index.d.ts +4 -0
- package/src/commands/release/index.d.ts.map +1 -0
- package/src/commands/release/index.js +26 -0
- package/src/commands/release/log.d.ts +2 -0
- package/src/commands/release/log.d.ts.map +1 -0
- package/src/commands/release/log.js +5 -0
- package/src/commands/release/publish.d.ts +3 -0
- package/src/commands/release/publish.d.ts.map +1 -0
- package/src/commands/release/publish.js +20 -0
- package/src/commands/release/release.d.ts +3 -0
- package/src/commands/release/release.d.ts.map +1 -0
- package/src/commands/release/release.js +31 -0
- package/src/commands/release/tag.d.ts +23 -0
- package/src/commands/release/tag.d.ts.map +1 -0
- package/src/commands/release/tag.js +93 -0
- package/src/commands/upgrade/UpgradeOptions.d.ts +5 -0
- package/src/commands/upgrade/UpgradeOptions.d.ts.map +1 -0
- package/src/commands/upgrade/UpgradeOptions.js +2 -0
- package/src/commands/upgrade/index.d.ts +4 -0
- package/src/commands/upgrade/index.d.ts.map +1 -0
- package/src/commands/upgrade/index.js +9 -0
- package/src/commands/upgrade/log.d.ts +2 -0
- package/src/commands/upgrade/log.d.ts.map +1 -0
- package/src/commands/upgrade/log.js +5 -0
- package/src/commands/upgrade/upgrade.d.ts +3 -0
- package/src/commands/upgrade/upgrade.d.ts.map +1 -0
- package/src/commands/upgrade/upgrade.js +22 -0
- package/src/commands/version/VersionOptions.d.ts +8 -0
- package/src/commands/version/VersionOptions.d.ts.map +1 -0
- package/src/commands/version/VersionOptions.js +2 -0
- package/src/commands/version/getPreid.d.ts +2 -0
- package/src/commands/version/getPreid.d.ts.map +1 -0
- package/src/commands/version/getPreid.js +10 -0
- package/src/commands/version/index.d.ts +4 -0
- package/src/commands/version/index.d.ts.map +1 -0
- package/src/commands/version/index.js +12 -0
- package/src/commands/version/log.d.ts +2 -0
- package/src/commands/version/log.d.ts.map +1 -0
- package/src/commands/version/log.js +5 -0
- package/src/commands/version/pimpChangelogs.d.ts +2 -0
- package/src/commands/version/pimpChangelogs.d.ts.map +1 -0
- package/src/commands/version/pimpChangelogs.js +37 -0
- package/src/commands/version/version.d.ts +3 -0
- package/src/commands/version/version.d.ts.map +1 -0
- package/src/commands/version/version.js +35 -0
- package/src/constants.d.ts +4 -0
- package/src/constants.d.ts.map +1 -0
- package/src/constants.js +7 -0
- package/src/index.d.ts +3 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.js +24 -0
- package/src/preAction.d.ts +3 -0
- package/src/preAction.d.ts.map +1 -0
- package/src/preAction.js +82 -0
- package/src/scripts/cmd/cd.d.ts +2 -0
- package/src/scripts/cmd/cd.d.ts.map +1 -0
- package/src/scripts/cmd/cd.js +15 -0
- package/src/scripts/cmd/{executeBash.ts → executeBash.d.ts} +10 -20
- package/src/scripts/cmd/executeBash.d.ts.map +1 -0
- package/src/scripts/cmd/executeBash.js +21 -0
- package/src/scripts/cmd/executeCmd.d.ts +9 -0
- package/src/scripts/cmd/executeCmd.d.ts.map +1 -0
- package/src/scripts/cmd/executeCmd.js +23 -0
- package/src/scripts/cmd/exitOnFailure.d.ts +8 -0
- package/src/scripts/cmd/exitOnFailure.d.ts.map +1 -0
- package/src/scripts/cmd/exitOnFailure.js +20 -0
- package/src/scripts/cmd/{getBashOutput.ts → getBashOutput.d.ts} +10 -23
- package/src/scripts/cmd/getBashOutput.d.ts.map +1 -0
- package/src/scripts/cmd/getBashOutput.js +19 -0
- package/src/scripts/cmd/getCmdOutput.d.ts +10 -0
- package/src/scripts/cmd/getCmdOutput.d.ts.map +1 -0
- package/src/scripts/cmd/getCmdOutput.js +26 -0
- package/src/scripts/cmd/{index.ts → index.d.ts} +9 -10
- package/src/scripts/cmd/index.d.ts.map +1 -0
- package/src/scripts/cmd/index.js +26 -0
- package/src/scripts/cmd/log.d.ts +2 -0
- package/src/scripts/cmd/log.d.ts.map +1 -0
- package/src/scripts/cmd/log.js +5 -0
- package/src/scripts/cmd/parseArgs.d.ts +3 -0
- package/src/scripts/cmd/parseArgs.d.ts.map +1 -0
- package/src/scripts/cmd/parseArgs.js +41 -0
- package/src/scripts/cmd/parseBashArgs.d.ts +3 -0
- package/src/scripts/cmd/parseBashArgs.d.ts.map +1 -0
- package/src/scripts/cmd/parseBashArgs.js +16 -0
- package/src/scripts/cmd/types.d.ts +12 -0
- package/src/scripts/cmd/types.d.ts.map +1 -0
- package/src/scripts/cmd/types.js +2 -0
- package/src/scripts/filesystem/copyDir.d.ts +9 -0
- package/src/scripts/filesystem/copyDir.d.ts.map +1 -0
- package/src/scripts/filesystem/copyDir.js +26 -0
- package/src/scripts/filesystem/copyFiles.d.ts +11 -0
- package/src/scripts/filesystem/copyFiles.d.ts.map +1 -0
- package/src/scripts/filesystem/copyFiles.js +59 -0
- package/src/scripts/filesystem/findFile.d.ts +2 -0
- package/src/scripts/filesystem/findFile.d.ts.map +1 -0
- package/src/scripts/filesystem/findFile.js +24 -0
- package/src/scripts/filesystem/index.d.ts +10 -0
- package/src/scripts/filesystem/index.d.ts.map +1 -0
- package/src/scripts/filesystem/index.js +17 -0
- package/src/scripts/filesystem/loadJsonFile.d.ts +2 -0
- package/src/scripts/filesystem/loadJsonFile.d.ts.map +1 -0
- package/src/scripts/filesystem/loadJsonFile.js +18 -0
- package/src/scripts/filesystem/log.d.ts +2 -0
- package/src/scripts/filesystem/log.d.ts.map +1 -0
- package/src/scripts/filesystem/log.js +5 -0
- package/src/scripts/filesystem/readDirRecursive.d.ts +2 -0
- package/src/scripts/filesystem/readDirRecursive.d.ts.map +1 -0
- package/src/scripts/filesystem/readDirRecursive.js +16 -0
- package/src/scripts/git/branch/branchDelete.d.ts +6 -0
- package/src/scripts/git/branch/branchDelete.d.ts.map +1 -0
- package/src/scripts/git/branch/branchDelete.js +24 -0
- package/src/scripts/git/branch/branchExists.d.ts +5 -0
- package/src/scripts/git/branch/branchExists.d.ts.map +1 -0
- package/src/scripts/git/branch/branchExists.js +15 -0
- package/src/scripts/git/branch/checkout.d.ts +5 -0
- package/src/scripts/git/branch/checkout.d.ts.map +1 -0
- package/src/scripts/git/branch/checkout.js +15 -0
- package/src/scripts/git/branch/getCurrentBranch.d.ts +11 -0
- package/src/scripts/git/branch/getCurrentBranch.d.ts.map +1 -0
- package/src/scripts/git/branch/getCurrentBranch.js +28 -0
- package/src/scripts/git/clone.d.ts +10 -0
- package/src/scripts/git/clone.d.ts.map +1 -0
- package/src/scripts/git/clone.js +14 -0
- package/src/scripts/git/commit.sh +0 -0
- package/src/scripts/git/getRepo.d.ts +2 -0
- package/src/scripts/git/getRepo.d.ts.map +1 -0
- package/src/scripts/git/getRepo.js +13 -0
- package/src/scripts/git/index.d.ts +29 -0
- package/src/scripts/git/index.d.ts.map +1 -0
- package/src/scripts/git/index.js +40 -0
- package/src/scripts/git/log.d.ts +2 -0
- package/src/scripts/git/log.d.ts.map +1 -0
- package/src/scripts/git/log.js +5 -0
- package/src/scripts/git/openPr.d.ts +2 -0
- package/src/scripts/git/openPr.d.ts.map +1 -0
- package/src/scripts/git/openPr.js +20 -0
- package/src/scripts/git/remoteStatus.d.ts +3 -0
- package/src/scripts/git/remoteStatus.d.ts.map +1 -0
- package/src/scripts/git/remoteStatus.js +22 -0
- package/src/scripts/git/tag/createTag.d.ts +18 -0
- package/src/scripts/git/tag/createTag.d.ts.map +1 -0
- package/src/scripts/git/tag/createTag.js +18 -0
- package/src/scripts/git/tag/deleteTag.d.ts +2 -0
- package/src/scripts/git/tag/deleteTag.d.ts.map +1 -0
- package/src/scripts/git/tag/deleteTag.js +13 -0
- package/src/scripts/git/tag/getTags.d.ts +2 -0
- package/src/scripts/git/tag/getTags.d.ts.map +1 -0
- package/src/scripts/git/tag/getTags.js +8 -0
- package/src/scripts/git/tag/pushAllTags.d.ts +2 -0
- package/src/scripts/git/tag/pushAllTags.d.ts.map +1 -0
- package/src/scripts/git/tag/pushAllTags.js +8 -0
- package/src/scripts/git/tag/renameTag.d.ts +2 -0
- package/src/scripts/git/tag/renameTag.d.ts.map +1 -0
- package/src/scripts/git/tag/renameTag.js +14 -0
- package/src/scripts/lerna/changed.d.ts +3 -0
- package/src/scripts/lerna/changed.d.ts.map +1 -0
- package/src/scripts/lerna/changed.js +13 -0
- package/src/scripts/lerna/constants.d.ts +5 -0
- package/src/scripts/lerna/constants.d.ts.map +1 -0
- package/src/scripts/lerna/constants.js +7 -0
- package/src/scripts/lerna/filterByDependency.d.ts +7 -0
- package/src/scripts/lerna/filterByDependency.d.ts.map +1 -0
- package/src/scripts/lerna/filterByDependency.js +18 -0
- package/src/scripts/lerna/getConfig.d.ts +3 -0
- package/src/scripts/lerna/getConfig.d.ts.map +1 -0
- package/src/scripts/lerna/getConfig.js +13 -0
- package/src/scripts/lerna/getDependencies.d.ts +9 -0
- package/src/scripts/lerna/getDependencies.d.ts.map +1 -0
- package/src/scripts/lerna/getDependencies.js +23 -0
- package/src/scripts/lerna/getDetails.d.ts +3 -0
- package/src/scripts/lerna/getDetails.d.ts.map +1 -0
- package/src/scripts/lerna/getDetails.js +38 -0
- package/src/scripts/lerna/index.d.ts +14 -0
- package/src/scripts/lerna/index.d.ts.map +1 -0
- package/src/scripts/lerna/index.js +19 -0
- package/src/scripts/lerna/log.d.ts +2 -0
- package/src/scripts/lerna/log.d.ts.map +1 -0
- package/src/scripts/lerna/log.js +5 -0
- package/src/scripts/lerna/publish.sh +0 -0
- package/src/scripts/lerna/types.d.ts +62 -0
- package/src/scripts/lerna/types.d.ts.map +1 -0
- package/src/scripts/lerna/types.js +2 -0
- package/src/scripts/lerna/version.sh +1 -1
- package/src/utils/chalk.d.ts +4 -0
- package/src/utils/chalk.d.ts.map +1 -0
- package/src/utils/chalk.js +9 -0
- package/src/utils/common.d.ts +8 -0
- package/src/utils/common.d.ts.map +1 -0
- package/src/utils/common.js +21 -0
- package/src/utils/{index.ts → index.d.ts} +4 -3
- package/src/utils/index.d.ts.map +1 -0
- package/src/utils/index.js +19 -0
- package/src/utils/inquirer.d.ts +5 -0
- package/src/utils/inquirer.d.ts.map +1 -0
- package/src/utils/inquirer.js +21 -0
- package/src/utils/logger.d.ts +9 -0
- package/src/utils/logger.d.ts.map +1 -0
- package/src/utils/logger.js +36 -0
- package/CHANGELOG.md +0 -628
- package/README.md +0 -11
- package/src/GlobalOptions.ts +0 -8
- package/src/commands/blank/BlankOptions.ts +0 -3
- package/src/commands/blank/blank.ts +0 -6
- package/src/commands/blank/index.ts +0 -8
- package/src/commands/blank/log.ts +0 -3
- package/src/commands/build/BuildOptions.ts +0 -3
- package/src/commands/build/build.ts +0 -24
- package/src/commands/build/index.ts +0 -8
- package/src/commands/build/log.ts +0 -3
- package/src/commands/deinstall/DeinstallOptions.ts +0 -3
- package/src/commands/deinstall/deinstall.ts +0 -19
- package/src/commands/deinstall/index.ts +0 -11
- package/src/commands/deinstall/log.ts +0 -3
- package/src/commands/deploy/DeployOptions.ts +0 -6
- package/src/commands/deploy/deploy.ts +0 -39
- package/src/commands/deploy/deployIos.ts +0 -48
- package/src/commands/deploy/index.ts +0 -20
- package/src/commands/deploy/log.ts +0 -3
- package/src/commands/deploy/setSsr.ts +0 -25
- package/src/commands/dev/DevOptions.ts +0 -4
- package/src/commands/dev/dev.ts +0 -15
- package/src/commands/dev/devIos.ts +0 -23
- package/src/commands/dev/index.ts +0 -12
- package/src/commands/dev/log.ts +0 -3
- package/src/commands/generate/GenerateOptions.ts +0 -9
- package/src/commands/generate/generate.ts +0 -29
- package/src/commands/generate/generateCommand.ts +0 -46
- package/src/commands/generate/generateProject.ts +0 -115
- package/src/commands/generate/index.ts +0 -19
- package/src/commands/generate/log.ts +0 -3
- package/src/commands/index.ts +0 -21
- package/src/commands/reinstall/ReinstallOptions.ts +0 -3
- package/src/commands/reinstall/index.ts +0 -11
- package/src/commands/reinstall/log.ts +0 -3
- package/src/commands/reinstall/reinstall.ts +0 -13
- package/src/commands/release/ReleaseOptions.ts +0 -8
- package/src/commands/release/index.ts +0 -40
- package/src/commands/release/log.ts +0 -3
- package/src/commands/release/publish.ts +0 -18
- package/src/commands/release/release.ts +0 -24
- package/src/commands/release/tag.ts +0 -119
- package/src/commands/upgrade/UpgradeOptions.ts +0 -3
- package/src/commands/upgrade/index.ts +0 -10
- package/src/commands/upgrade/log.ts +0 -3
- package/src/commands/upgrade/upgrade.ts +0 -10
- package/src/commands/version/VersionOptions.ts +0 -7
- package/src/commands/version/getPreid.ts +0 -7
- package/src/commands/version/index.ts +0 -18
- package/src/commands/version/log.ts +0 -3
- package/src/commands/version/pimpChangelogs.ts +0 -43
- package/src/commands/version/version.ts +0 -33
- package/src/constants.ts +0 -5
- package/src/index.ts +0 -24
- package/src/preAction.ts +0 -93
- package/src/scripts/cmd/cd.ts +0 -9
- package/src/scripts/cmd/executeCmd.ts +0 -23
- package/src/scripts/cmd/getCmdOutput.ts +0 -26
- package/src/scripts/cmd/log.ts +0 -3
- package/src/scripts/cmd/parseArgs.ts +0 -44
- package/src/scripts/cmd/parseBashArgs.ts +0 -21
- package/src/scripts/cmd/types.ts +0 -13
- package/src/scripts/filesystem/copyDir.ts +0 -29
- package/src/scripts/filesystem/copyFiles.ts +0 -75
- package/src/scripts/filesystem/findFile.ts +0 -29
- package/src/scripts/filesystem/index.ts +0 -15
- package/src/scripts/filesystem/loadJsonFile.ts +0 -17
- package/src/scripts/filesystem/log.ts +0 -3
- package/src/scripts/filesystem/readDirRecursive.ts +0 -21
- package/src/scripts/git/branch/branchDelete.ts +0 -32
- package/src/scripts/git/branch/branchExists.ts +0 -14
- package/src/scripts/git/branch/checkout.ts +0 -19
- package/src/scripts/git/branch/getCurrentBranch.ts +0 -37
- package/src/scripts/git/clone.ts +0 -20
- package/src/scripts/git/getRepo.ts +0 -11
- package/src/scripts/git/index.ts +0 -44
- package/src/scripts/git/log.ts +0 -3
- package/src/scripts/git/openPr.ts +0 -21
- package/src/scripts/git/remoteStatus.ts +0 -28
- package/src/scripts/git/tag/createTag.ts +0 -28
- package/src/scripts/git/tag/deleteTag.ts +0 -11
- package/src/scripts/git/tag/getTags.ts +0 -6
- package/src/scripts/git/tag/pushAllTags.ts +0 -6
- package/src/scripts/git/tag/renameTag.ts +0 -12
- package/src/scripts/lerna/changed.ts +0 -11
- package/src/scripts/lerna/constants.ts +0 -6
- package/src/scripts/lerna/filterByDependency.ts +0 -21
- package/src/scripts/lerna/getConfig.ts +0 -12
- package/src/scripts/lerna/getDependencies.ts +0 -25
- package/src/scripts/lerna/getDetails.ts +0 -44
- package/src/scripts/lerna/index.ts +0 -18
- package/src/scripts/lerna/log.ts +0 -3
- package/src/scripts/lerna/types.ts +0 -64
- package/src/utils/chalk.ts +0 -4
- package/src/utils/common.ts +0 -16
- package/src/utils/inquirer.ts +0 -20
- package/src/utils/logger.ts +0 -51
- package/tsconfig.json +0 -28
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { executeCmd } from "src/scripts/cmd";
|
|
2
|
-
import { BuildOptions } from "./BuildOptions";
|
|
3
|
-
import { log } from "./log";
|
|
4
|
-
|
|
5
|
-
export const build = (options: BuildOptions) => {
|
|
6
|
-
const { type } = options;
|
|
7
|
-
|
|
8
|
-
// INFO Nuxt modules need a structure of [pkg.json, dist/] to function properly where as my release script needs all pkgs to be released from a dist folder
|
|
9
|
-
if (type === "module") {
|
|
10
|
-
log.info("Build nuxt module in dist");
|
|
11
|
-
executeCmd("nuxt-module-build build");
|
|
12
|
-
|
|
13
|
-
log.info("Copy contents of dist on level down");
|
|
14
|
-
executeCmd('copyfiles "dist/**/*" dist');
|
|
15
|
-
|
|
16
|
-
// log.info("Delete the copied files");
|
|
17
|
-
// executeCmd(
|
|
18
|
-
// "find ./dist -mindepth 1 ! -path './dist/dist*' -exec rm -rf {} +"
|
|
19
|
-
// );
|
|
20
|
-
|
|
21
|
-
log.info("Copy pkg.json and mds to dist as well");
|
|
22
|
-
executeCmd("copyfiles package.json README.md CHANGELOG.md dist");
|
|
23
|
-
}
|
|
24
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { executeCmd } from "src/scripts/cmd";
|
|
2
|
-
import { DeinstallOptions } from "./DeinstallOptions";
|
|
3
|
-
import { log } from "./log";
|
|
4
|
-
|
|
5
|
-
export const deinstall = (options: DeinstallOptions) => {
|
|
6
|
-
if (options.packages) {
|
|
7
|
-
// Remove node_modules in each folder inside /packages
|
|
8
|
-
log.info("Deleting node_modules from root and packages. (-p)");
|
|
9
|
-
executeCmd("rm -rf node_modules ./packages/**/node_modules");
|
|
10
|
-
} else {
|
|
11
|
-
// Remove node_modules recursively
|
|
12
|
-
log.info("Deleting node_modules.");
|
|
13
|
-
executeCmd("rm -rf node_modules");
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// Remove package-lock.json
|
|
17
|
-
log.info("Deleting package-lock.");
|
|
18
|
-
executeCmd("rm package-lock.json");
|
|
19
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
|
-
import { deinstall } from "./deinstall";
|
|
3
|
-
|
|
4
|
-
export default new Command()
|
|
5
|
-
.name("deinstall")
|
|
6
|
-
.description("Remove node_modules and package-lock.json.")
|
|
7
|
-
.option(
|
|
8
|
-
"-p, --packages",
|
|
9
|
-
"Deinstall dependencies in /packages (intended for module authors)."
|
|
10
|
-
)
|
|
11
|
-
.action(deinstall);
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { git } from "src/scripts/git";
|
|
2
|
-
import { DeployOptions } from "./DeployOptions";
|
|
3
|
-
import { log } from "./log";
|
|
4
|
-
import { deployIos } from "./deployIos";
|
|
5
|
-
import { setSsr } from "./setSsr";
|
|
6
|
-
import { confirmQuestion } from "src/utils";
|
|
7
|
-
|
|
8
|
-
export const deploy = async (options: DeployOptions) => {
|
|
9
|
-
log.info("Deploying app...", options);
|
|
10
|
-
|
|
11
|
-
// Deploy app to iOS
|
|
12
|
-
if (options.ios) {
|
|
13
|
-
deployIos();
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// Handle ssr
|
|
18
|
-
if (options.ssr !== undefined) {
|
|
19
|
-
log.info(`Setting ssr to ${options.ssr} and committing to git`);
|
|
20
|
-
setSsr(options.ssr);
|
|
21
|
-
git.commit({ m: `chore: Set SSR to ${options.ssr}` });
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// Default Deploy app to web
|
|
25
|
-
const fromBranch = options.from || "dev";
|
|
26
|
-
const { remote } = git.branch.exists("deploy");
|
|
27
|
-
|
|
28
|
-
git.branch.checkout("deploy", { newBranch: !remote });
|
|
29
|
-
log.info("Checked out to deploy branch");
|
|
30
|
-
|
|
31
|
-
git.merge(fromBranch, true);
|
|
32
|
-
log.info(`Merged with ${fromBranch}`);
|
|
33
|
-
|
|
34
|
-
git.push("deploy");
|
|
35
|
-
log.info("Pushed to deploy");
|
|
36
|
-
|
|
37
|
-
git.branch.checkout(fromBranch);
|
|
38
|
-
log.info(`Checked out back to ${fromBranch}`);
|
|
39
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { executeCmd } from "src/scripts/cmd";
|
|
2
|
-
import { log } from "./log";
|
|
3
|
-
import { Project, SyntaxKind } from "ts-morph";
|
|
4
|
-
import { setSsr } from "./setSsr";
|
|
5
|
-
|
|
6
|
-
const project = new Project();
|
|
7
|
-
|
|
8
|
-
export const deployIos = async (url?: string) => {
|
|
9
|
-
log.info("Deploying iOS app.");
|
|
10
|
-
|
|
11
|
-
// Remove server dev url from capacitor config
|
|
12
|
-
const capConfig = project.addSourceFileAtPathIfExists(
|
|
13
|
-
"./capacitor.config.ts"
|
|
14
|
-
);
|
|
15
|
-
if (!capConfig) return;
|
|
16
|
-
|
|
17
|
-
const capConfigObject = capConfig
|
|
18
|
-
?.getVariableDeclaration("config")
|
|
19
|
-
?.getInitializerIfKind(SyntaxKind.ObjectLiteralExpression);
|
|
20
|
-
if (!capConfigObject) return;
|
|
21
|
-
|
|
22
|
-
const server = capConfigObject.getProperty("server");
|
|
23
|
-
|
|
24
|
-
if (!url) {
|
|
25
|
-
server?.remove();
|
|
26
|
-
} else {
|
|
27
|
-
if (server) {
|
|
28
|
-
server.set({ initializer: `{ url: '${url}' }` });
|
|
29
|
-
} else {
|
|
30
|
-
capConfigObject.addPropertyAssignment({
|
|
31
|
-
name: "server",
|
|
32
|
-
initializer: `{ url: '${url}' }`,
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
capConfig.saveSync();
|
|
38
|
-
|
|
39
|
-
// Disable ssr from nuxt.config
|
|
40
|
-
setSsr(false);
|
|
41
|
-
|
|
42
|
-
// Generate static nuxt app
|
|
43
|
-
executeCmd("nuxi generate");
|
|
44
|
-
|
|
45
|
-
// Sync and open iOS app with Capacitor
|
|
46
|
-
executeCmd("cap sync ios");
|
|
47
|
-
executeCmd("cap open ios");
|
|
48
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
|
-
import { deploy } from "./deploy";
|
|
3
|
-
|
|
4
|
-
export default new Command()
|
|
5
|
-
.name("deploy")
|
|
6
|
-
.description(
|
|
7
|
-
"Deploy a Nuxt app. Check out to deploy branch, merge with dev and check out back to dev."
|
|
8
|
-
)
|
|
9
|
-
.option(
|
|
10
|
-
"--from <branch>",
|
|
11
|
-
"From what branch to deploy. Default is 'dev' so this is used in the event we are deploying from a different branch.",
|
|
12
|
-
"dev"
|
|
13
|
-
)
|
|
14
|
-
.option("--ios", "Deploy app to iOS device using Capacitor.")
|
|
15
|
-
.option("--android", "Deploy app to Android device using Capacitor.")
|
|
16
|
-
.option(
|
|
17
|
-
"--ssr",
|
|
18
|
-
"Set SSR before deployment. Default is undefined for no change."
|
|
19
|
-
)
|
|
20
|
-
.action(deploy);
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Project, SyntaxKind } from "ts-morph";
|
|
2
|
-
|
|
3
|
-
const project = new Project();
|
|
4
|
-
|
|
5
|
-
export const setSsr = (ssr: boolean) => {
|
|
6
|
-
const nuxtConfig = project.addSourceFileAtPath("./nuxt.config.ts");
|
|
7
|
-
if (!nuxtConfig) return;
|
|
8
|
-
|
|
9
|
-
const nuxtConfigDefault = nuxtConfig?.getFirstDescendantByKind(
|
|
10
|
-
SyntaxKind.ObjectLiteralExpression
|
|
11
|
-
);
|
|
12
|
-
if (!nuxtConfigDefault) return;
|
|
13
|
-
|
|
14
|
-
const nuxtConfigSsr = nuxtConfigDefault.getProperty("ssr");
|
|
15
|
-
if (nuxtConfigSsr) {
|
|
16
|
-
nuxtConfigSsr.set({ initializer: `${ssr}` });
|
|
17
|
-
} else {
|
|
18
|
-
nuxtConfigDefault.addPropertyAssignment({
|
|
19
|
-
name: "ssr",
|
|
20
|
-
initializer: `${ssr}`,
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
nuxtConfig.saveSync();
|
|
25
|
-
};
|
package/src/commands/dev/dev.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { executeCmd } from "src/scripts/cmd";
|
|
2
|
-
import { DevOptions } from "./DevOptions";
|
|
3
|
-
import { log } from "./log";
|
|
4
|
-
import { devIos } from "./devIos";
|
|
5
|
-
|
|
6
|
-
export const dev = async (options: DevOptions) => {
|
|
7
|
-
log.info("Running dev...", options);
|
|
8
|
-
|
|
9
|
-
if (options.ios) {
|
|
10
|
-
options.host = true;
|
|
11
|
-
await devIos(options);
|
|
12
|
-
}
|
|
13
|
-
// Run nuxt server
|
|
14
|
-
executeCmd("nuxt dev", options.host ? { host: "0.0.0.0" } : undefined);
|
|
15
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { deployIos } from "../deploy/deployIos";
|
|
2
|
-
import { DevOptions } from "./DevOptions";
|
|
3
|
-
import os from "os";
|
|
4
|
-
|
|
5
|
-
const getLocalIP = () => {
|
|
6
|
-
const interfaces = os.networkInterfaces();
|
|
7
|
-
for (const iface of Object.values(interfaces)) {
|
|
8
|
-
if (!iface) continue;
|
|
9
|
-
|
|
10
|
-
for (const config of iface) {
|
|
11
|
-
if (config.family === "IPv4" && !config.internal) {
|
|
12
|
-
return config.address;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const devIos = async (options: DevOptions) => {
|
|
19
|
-
const ip = getLocalIP();
|
|
20
|
-
const url = `http://${ip}:3000`; // TODO dynamic ssl and port ?
|
|
21
|
-
|
|
22
|
-
await deployIos(url);
|
|
23
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
|
-
import { dev } from "./dev";
|
|
3
|
-
|
|
4
|
-
export default new Command()
|
|
5
|
-
.name("dev")
|
|
6
|
-
.description("Description of command.")
|
|
7
|
-
.option("-h, --host", "Run nuxt dev server exposed to the local network.")
|
|
8
|
-
.option(
|
|
9
|
-
"--ios",
|
|
10
|
-
"Run dev for ios. Runs nuxt dev host and deploys to ios device with server url."
|
|
11
|
-
)
|
|
12
|
-
.action(dev);
|
package/src/commands/dev/log.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GenerateOptions,
|
|
3
|
-
GenerateType,
|
|
4
|
-
generateTypes,
|
|
5
|
-
} from "./GenerateOptions";
|
|
6
|
-
import { log } from "./log";
|
|
7
|
-
import { generateCommand } from "./generateCommand";
|
|
8
|
-
import { generateProject } from "./generateProject";
|
|
9
|
-
|
|
10
|
-
const cwd = process.cwd();
|
|
11
|
-
|
|
12
|
-
export const generate = async (
|
|
13
|
-
type: GenerateType,
|
|
14
|
-
name: string,
|
|
15
|
-
options: GenerateOptions
|
|
16
|
-
) => {
|
|
17
|
-
if (!generateTypes.includes(type)) {
|
|
18
|
-
log.error("Invalid type. Nothing to generate.");
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
log.info("Generating", type, name);
|
|
23
|
-
|
|
24
|
-
if (type === "command") {
|
|
25
|
-
await generateCommand(name, cwd);
|
|
26
|
-
} else if (type === "project") {
|
|
27
|
-
await generateProject(name, cwd, options);
|
|
28
|
-
}
|
|
29
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { filesystem } from "src/scripts/filesystem";
|
|
2
|
-
import { log } from "./log";
|
|
3
|
-
import { join } from "path";
|
|
4
|
-
import { capitalize } from "src/utils/common";
|
|
5
|
-
|
|
6
|
-
export const generateCommand = async (name: string, cwd: string) => {
|
|
7
|
-
if (!cwd.includes("packages/cli")) {
|
|
8
|
-
log.error(
|
|
9
|
-
"You must be in the packages/cli directory to generate a command."
|
|
10
|
-
);
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
filesystem.copyDir(
|
|
15
|
-
join(cwd, "src/commands/blank"),
|
|
16
|
-
join(cwd, `src/commands/${name}`),
|
|
17
|
-
(file) => {
|
|
18
|
-
const content = file.content
|
|
19
|
-
.replaceAll("blank", name)
|
|
20
|
-
.replaceAll("Blank", capitalize(name));
|
|
21
|
-
const base = file.base
|
|
22
|
-
.replaceAll("blank", name)
|
|
23
|
-
.replaceAll("Blank", capitalize(name));
|
|
24
|
-
|
|
25
|
-
return {
|
|
26
|
-
...file,
|
|
27
|
-
content,
|
|
28
|
-
base,
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
await filesystem.copyFiles([join(cwd, "src/commands/index.ts")], (file) => {
|
|
34
|
-
const content = file.content
|
|
35
|
-
.replace(
|
|
36
|
-
"\n\nexport default",
|
|
37
|
-
`\nimport ${name} from "./${name}";\n\nexport default`
|
|
38
|
-
)
|
|
39
|
-
.replace("];\n", ` ${name},\n];\n`);
|
|
40
|
-
|
|
41
|
-
return {
|
|
42
|
-
...file,
|
|
43
|
-
content,
|
|
44
|
-
};
|
|
45
|
-
});
|
|
46
|
-
};
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { filesystem } from "src/scripts/filesystem";
|
|
2
|
-
import { git } from "src/scripts/git";
|
|
3
|
-
import { log } from "./log";
|
|
4
|
-
import { commandExists } from "src/utils/common";
|
|
5
|
-
import { cmd, executeCmd } from "src/scripts/cmd";
|
|
6
|
-
import { GenerateOptions } from "./GenerateOptions";
|
|
7
|
-
import { confirmQuestion } from "src/utils";
|
|
8
|
-
|
|
9
|
-
export const generateProject = async (
|
|
10
|
-
name: string,
|
|
11
|
-
cwd: string,
|
|
12
|
-
options: GenerateOptions
|
|
13
|
-
) => {
|
|
14
|
-
const { starter = "base", noRepo, keepHistory, yes } = options;
|
|
15
|
-
|
|
16
|
-
log.verbose("Check if project name is valid");
|
|
17
|
-
if (!name.match(/^[a-z0-9-]+$/)) {
|
|
18
|
-
log.error(
|
|
19
|
-
"Project name must be lowercase, alphanumeric, and contain hyphens only."
|
|
20
|
-
);
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
if (!noRepo) {
|
|
25
|
-
// Check if gh is installed
|
|
26
|
-
if (executeCmd("gh --version").status !== 0) {
|
|
27
|
-
const installGh = await confirmQuestion(
|
|
28
|
-
"GitHub cli is not installed. Do you want to install it now? (brew install gh)",
|
|
29
|
-
yes
|
|
30
|
-
);
|
|
31
|
-
if (installGh) {
|
|
32
|
-
executeCmd("brew install gh");
|
|
33
|
-
} else {
|
|
34
|
-
log.error(
|
|
35
|
-
"You must have GitHub cli installed to generate a project and create a repo."
|
|
36
|
-
);
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// Check if gh user is authenticated
|
|
42
|
-
if (executeCmd("gh auth status").status !== 0) {
|
|
43
|
-
const authenticateGh = await confirmQuestion(
|
|
44
|
-
"GitHub cli is not authenticated. Do you want to authenticate now? (gh auth login)",
|
|
45
|
-
yes
|
|
46
|
-
);
|
|
47
|
-
if (authenticateGh) {
|
|
48
|
-
executeCmd("gh auth login");
|
|
49
|
-
} else {
|
|
50
|
-
log.error(
|
|
51
|
-
"You must authenticate with GitHub cli before generating a project in order to create the repo."
|
|
52
|
-
);
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
} else {
|
|
57
|
-
log.verbose("Skipping gh verification");
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
log.verbose("Cloning gluhar project template");
|
|
61
|
-
git.clone("gluharry/starters", name, { branch: starter });
|
|
62
|
-
|
|
63
|
-
cmd.cd(name);
|
|
64
|
-
|
|
65
|
-
log.verbose("Replacing gluhar-app with project's name");
|
|
66
|
-
await filesystem.copyFiles(
|
|
67
|
-
[
|
|
68
|
-
"./package.json",
|
|
69
|
-
"./README.md",
|
|
70
|
-
"./nuxt.config.ts",
|
|
71
|
-
"./sanity/sanity.config.ts",
|
|
72
|
-
"./sanity/structure.ts",
|
|
73
|
-
],
|
|
74
|
-
(file) => {
|
|
75
|
-
const content = file.content.replaceAll("gluhar-app", name);
|
|
76
|
-
|
|
77
|
-
return {
|
|
78
|
-
...file,
|
|
79
|
-
content,
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
);
|
|
83
|
-
|
|
84
|
-
if (!keepHistory) {
|
|
85
|
-
log.verbose("Removing git history");
|
|
86
|
-
executeCmd("rm -rf .git");
|
|
87
|
-
|
|
88
|
-
log.verbose("Initializing empty git repo with initial flat commit");
|
|
89
|
-
executeCmd(
|
|
90
|
-
"git init --initial-branch=dev && git add . && git commit -m 'Initial commit'"
|
|
91
|
-
);
|
|
92
|
-
} else {
|
|
93
|
-
log.verbose("Keeping git history and removing remote origin");
|
|
94
|
-
executeCmd("git remote remove origin && git branch -m dev");
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if (!noRepo) {
|
|
98
|
-
log.verbose("Creating new github remote repo");
|
|
99
|
-
executeCmd(`gh repo create ${name} --private --source=. --push`);
|
|
100
|
-
} else {
|
|
101
|
-
log.verbose(
|
|
102
|
-
"Skipping repo creation and deleting .git. You are on your own."
|
|
103
|
-
);
|
|
104
|
-
executeCmd("rm -rf .git");
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
const openCode = await confirmQuestion(
|
|
108
|
-
`Project '${name}' was created successfully! Do you want to open it in VSCode/Cursor?`,
|
|
109
|
-
yes
|
|
110
|
-
);
|
|
111
|
-
if (openCode) {
|
|
112
|
-
const editorCommand = commandExists("cursor") ? "cursor" : "code";
|
|
113
|
-
executeCmd(`${editorCommand} . -g README.md`);
|
|
114
|
-
}
|
|
115
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
|
-
import { generate } from "./generate";
|
|
3
|
-
import { generateTypes } from "./GenerateOptions";
|
|
4
|
-
|
|
5
|
-
export default new Command()
|
|
6
|
-
.name("generate")
|
|
7
|
-
.argument("<type>", "What to generate.")
|
|
8
|
-
.argument("<name>", "Name of generated thing.")
|
|
9
|
-
.description(`Generate a ${generateTypes.join(", ")}.`)
|
|
10
|
-
.option(
|
|
11
|
-
"--starter <branchName>",
|
|
12
|
-
"When generating a project, which starter template to use: base, mobile."
|
|
13
|
-
)
|
|
14
|
-
.option("-nr, --no-repo", "Do not create a github repo automatically.")
|
|
15
|
-
.option(
|
|
16
|
-
"-kh, --keep-history",
|
|
17
|
-
"Keep commit history from the starter template."
|
|
18
|
-
)
|
|
19
|
-
.action(generate);
|
package/src/commands/index.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import build from "./build";
|
|
2
|
-
import deinstall from "./deinstall";
|
|
3
|
-
import deploy from "./deploy";
|
|
4
|
-
import generate from "./generate";
|
|
5
|
-
import reinstall from "./reinstall";
|
|
6
|
-
import release from "./release";
|
|
7
|
-
import version from "./version";
|
|
8
|
-
import upgrade from "./upgrade";
|
|
9
|
-
import dev from "./dev";
|
|
10
|
-
|
|
11
|
-
export default [
|
|
12
|
-
deploy,
|
|
13
|
-
version,
|
|
14
|
-
release,
|
|
15
|
-
build,
|
|
16
|
-
deinstall,
|
|
17
|
-
reinstall,
|
|
18
|
-
generate,
|
|
19
|
-
upgrade,
|
|
20
|
-
dev,
|
|
21
|
-
];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
|
-
import { reinstall } from "./reinstall";
|
|
3
|
-
|
|
4
|
-
export default new Command()
|
|
5
|
-
.name("reinstall")
|
|
6
|
-
.description("Reinstall npm dependencies with a fresh package-lock.json.")
|
|
7
|
-
.option(
|
|
8
|
-
"-p, --packages",
|
|
9
|
-
"Reinstall dependencies in when using multiple packages (monorepo)."
|
|
10
|
-
)
|
|
11
|
-
.action(reinstall);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { executeCmd } from "src/scripts/cmd";
|
|
2
|
-
import { ReinstallOptions } from "./ReinstallOptions";
|
|
3
|
-
import { log } from "./log";
|
|
4
|
-
import { deinstall } from "../deinstall/deinstall";
|
|
5
|
-
|
|
6
|
-
export const reinstall = (options: ReinstallOptions) => {
|
|
7
|
-
// Run deinstall first
|
|
8
|
-
deinstall(options);
|
|
9
|
-
|
|
10
|
-
// Install dependencies
|
|
11
|
-
log.info("Reinstalling packages.");
|
|
12
|
-
executeCmd("npm install");
|
|
13
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
|
-
import { release } from "./release";
|
|
3
|
-
import { pattern } from "./tag";
|
|
4
|
-
|
|
5
|
-
export default new Command()
|
|
6
|
-
.name("release")
|
|
7
|
-
.description("Release and publish packages to the npm registry.")
|
|
8
|
-
.option(
|
|
9
|
-
"-y, --yes",
|
|
10
|
-
"When run with this flag, we will skip all confirmation prompts. NOTE does not currently work.",
|
|
11
|
-
false
|
|
12
|
-
)
|
|
13
|
-
.option(
|
|
14
|
-
"--pre [id]",
|
|
15
|
-
"Prerelease identifier. Use this when releasing a prerelease version.",
|
|
16
|
-
false
|
|
17
|
-
)
|
|
18
|
-
.option(
|
|
19
|
-
"-d, --dev",
|
|
20
|
-
"Release a dev version. This is a shorthand for a prerelease with a 'dev' identifier.",
|
|
21
|
-
false
|
|
22
|
-
)
|
|
23
|
-
.option(
|
|
24
|
-
"--dir, --directory <path>",
|
|
25
|
-
"Subdirectory to publish. Must apply to ALL packages, and MUST contain a package.json file.",
|
|
26
|
-
"dist"
|
|
27
|
-
)
|
|
28
|
-
.option("--no-version", "Disable versioning and changelog gen.")
|
|
29
|
-
.option(
|
|
30
|
-
"--git-tag [tag]",
|
|
31
|
-
[
|
|
32
|
-
"Create and push git tag(s). Optionally provide a template.",
|
|
33
|
-
"Template placeholders:",
|
|
34
|
-
`"${pattern.fullPackageName}" (full package name, e.g. "@gluhar/cli"),`,
|
|
35
|
-
`"${pattern.shortPackageName}" (short package name, e.g. "cli"),`,
|
|
36
|
-
`"${pattern.version}" (released package version, e.g. "1.2.3").`,
|
|
37
|
-
`When set to "true" defaults to: "${pattern.default.independent}" for independent versioning and "${pattern.default.fixed}" for fixed.`,
|
|
38
|
-
].join("\n")
|
|
39
|
-
)
|
|
40
|
-
.action(release);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { lerna } from "src/scripts/lerna";
|
|
2
|
-
import type { ReleaseOptions } from "./ReleaseOptions";
|
|
3
|
-
import { log } from "./log";
|
|
4
|
-
import { getPreid } from "../version/getPreid";
|
|
5
|
-
|
|
6
|
-
export const publish = (options: ReleaseOptions) => {
|
|
7
|
-
const { yes, pre, dev, directory } = options;
|
|
8
|
-
|
|
9
|
-
const distTag = dev ? "dev" : getPreid(pre) ?? "latest";
|
|
10
|
-
log.info("Dist tag:", distTag);
|
|
11
|
-
log.info("Directory:", directory);
|
|
12
|
-
|
|
13
|
-
lerna.publish({
|
|
14
|
-
distTag,
|
|
15
|
-
contents: directory,
|
|
16
|
-
yes,
|
|
17
|
-
});
|
|
18
|
-
};
|