intershell 0.3.7 → 0.4.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/README.md +70 -202
- package/dist/affected/affected.d.ts.map +1 -0
- package/dist/affected/affected.js.map +1 -0
- package/dist/affected/affected.test.d.ts.map +1 -0
- package/dist/affected/affected.test.js.map +1 -0
- package/dist/affected/index.d.ts.map +1 -0
- package/dist/affected/index.js.map +1 -0
- package/dist/branch/branch.d.ts.map +1 -0
- package/dist/{entities/branch → branch}/branch.js +12 -5
- package/dist/branch/branch.js.map +1 -0
- package/dist/branch/branch.test.d.ts.map +1 -0
- package/dist/{entities/branch → branch}/branch.test.js +55 -0
- package/dist/branch/branch.test.js.map +1 -0
- package/dist/branch/branch.types.d.ts.map +1 -0
- package/dist/branch/branch.types.js.map +1 -0
- package/dist/branch/index.d.ts.map +1 -0
- package/dist/branch/index.js.map +1 -0
- package/dist/commit/commit.d.ts.map +1 -0
- package/dist/{entities/commit → commit}/commit.js +12 -6
- package/dist/commit/commit.js.map +1 -0
- package/dist/commit/commit.test.d.ts.map +1 -0
- package/dist/{entities/commit → commit}/commit.test.js +87 -0
- package/dist/commit/commit.test.js.map +1 -0
- package/dist/commit/commit.types.d.ts.map +1 -0
- package/dist/commit/commit.types.js.map +1 -0
- package/dist/commit/index.d.ts.map +1 -0
- package/dist/commit/index.js.map +1 -0
- package/dist/commit/pr.d.ts.map +1 -0
- package/dist/commit/pr.js.map +1 -0
- package/dist/commit/pr.test.d.ts.map +1 -0
- package/dist/commit/pr.test.js.map +1 -0
- package/dist/commit-check.d.ts +2 -0
- package/dist/commit-check.d.ts.map +1 -0
- package/dist/commit-check.js +119 -0
- package/dist/commit-check.js.map +1 -0
- package/dist/compose/compose.d.ts.map +1 -0
- package/dist/compose/compose.js.map +1 -0
- package/dist/compose/compose.test.d.ts.map +1 -0
- package/dist/compose/compose.test.js.map +1 -0
- package/dist/compose/compose.types.d.ts.map +1 -0
- package/dist/compose/compose.types.js.map +1 -0
- package/dist/compose/index.d.ts.map +1 -0
- package/dist/compose/index.js.map +1 -0
- package/dist/{entities/entities.shell.d.ts → entities.shell.d.ts} +1 -0
- package/dist/entities.shell.d.ts.map +1 -0
- package/dist/{entities/entities.shell.js → entities.shell.js} +1 -0
- package/dist/entities.shell.js.map +1 -0
- package/dist/entities.shell.test.d.ts.map +1 -0
- package/dist/entities.shell.test.js.map +1 -0
- package/dist/index.d.ts +11 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/dist/intershell-config/intershell-config.d.ts.map +1 -0
- package/dist/{entities/intershell-config → intershell-config}/intershell-config.default.d.ts +1 -1
- package/dist/intershell-config/intershell-config.default.d.ts.map +1 -0
- package/dist/{entities/intershell-config → intershell-config}/intershell-config.default.js +1 -8
- package/dist/intershell-config/intershell-config.default.js.map +1 -0
- package/dist/{entities/intershell-config → intershell-config}/intershell-config.js +14 -3
- package/dist/intershell-config/intershell-config.js.map +1 -0
- package/dist/intershell-config/intershell-config.test.d.ts.map +1 -0
- package/dist/intershell-config/intershell-config.test.js.map +1 -0
- package/dist/{entities/intershell-config → intershell-config}/intershell-config.types.d.ts +3 -3
- package/dist/intershell-config/intershell-config.types.d.ts.map +1 -0
- package/dist/intershell-config/intershell-config.types.js.map +1 -0
- package/dist/package/index.d.ts.map +1 -0
- package/dist/package/index.js.map +1 -0
- package/dist/package/package.d.ts.map +1 -0
- package/dist/package/package.js.map +1 -0
- package/dist/package/package.shell.d.ts.map +1 -0
- package/dist/package/package.shell.js.map +1 -0
- package/dist/package/package.test.d.ts.map +1 -0
- package/dist/package/package.test.js.map +1 -0
- package/dist/package/package.types.d.ts.map +1 -0
- package/dist/package/package.types.js.map +1 -0
- package/dist/package-changelog/index.d.ts.map +1 -0
- package/dist/package-changelog/index.js.map +1 -0
- package/dist/package-changelog/package-changelog.d.ts.map +1 -0
- package/dist/package-changelog/package-changelog.js.map +1 -0
- package/dist/package-changelog/package-changelog.types.d.ts.map +1 -0
- package/dist/package-changelog/package-changelog.types.js.map +1 -0
- package/dist/package-changelog/template.d.ts.map +1 -0
- package/dist/package-changelog/template.default.d.ts.map +1 -0
- package/dist/package-changelog/template.default.js.map +1 -0
- package/dist/package-changelog/template.js.map +1 -0
- package/dist/package-commits/dependency-analyzer.d.ts.map +1 -0
- package/dist/package-commits/dependency-analyzer.js.map +1 -0
- package/dist/package-commits/dependency-analyzer.test.d.ts.map +1 -0
- package/dist/package-commits/dependency-analyzer.test.js.map +1 -0
- package/dist/package-commits/index.d.ts.map +1 -0
- package/dist/package-commits/index.js.map +1 -0
- package/dist/package-commits/package-commits.d.ts.map +1 -0
- package/dist/package-commits/package-commits.js.map +1 -0
- package/dist/package-commits/package-commits.test.d.ts.map +1 -0
- package/dist/package-commits/package-commits.test.js.map +1 -0
- package/dist/package-tags/index.d.ts.map +1 -0
- package/dist/package-tags/index.js.map +1 -0
- package/dist/{entities/package-tags → package-tags}/package-tags.d.ts +1 -1
- package/dist/package-tags/package-tags.d.ts.map +1 -0
- package/dist/{entities/package-tags → package-tags}/package-tags.js +2 -3
- package/dist/package-tags/package-tags.js.map +1 -0
- package/dist/package-tags/package-tags.test.d.ts.map +1 -0
- package/dist/package-tags/package-tags.test.js.map +1 -0
- package/dist/package-version/index.d.ts.map +1 -0
- package/dist/package-version/index.js.map +1 -0
- package/dist/package-version/package-version.d.ts.map +1 -0
- package/dist/package-version/package-version.js.map +1 -0
- package/dist/package-version/package-version.test.d.ts.map +1 -0
- package/dist/package-version/package-version.test.js.map +1 -0
- package/dist/package-version/package-version.types.d.ts.map +1 -0
- package/dist/package-version/package-version.types.js.map +1 -0
- package/dist/tag/index.d.ts.map +1 -0
- package/dist/tag/index.js.map +1 -0
- package/dist/tag/tag.d.ts.map +1 -0
- package/dist/{entities/tag → tag}/tag.js +12 -3
- package/dist/tag/tag.js.map +1 -0
- package/dist/tag/tag.test.d.ts.map +1 -0
- package/dist/tag/tag.test.js.map +1 -0
- package/dist/tag/tag.types.d.ts.map +1 -0
- package/dist/tag/tag.types.js.map +1 -0
- package/docs/1_ENTITIES.md +62 -0
- package/package.json +31 -46
- package/src/{entities/branch → branch}/branch.test.ts +64 -3
- package/src/{entities/branch → branch}/branch.ts +13 -5
- package/src/{entities/commit → commit}/commit.test.ts +100 -0
- package/src/{entities/commit → commit}/commit.ts +15 -5
- package/src/commit-check.ts +138 -0
- package/src/{entities/entities.shell.ts → entities.shell.ts} +2 -0
- package/src/index.ts +11 -7
- package/src/{entities/intershell-config → intershell-config}/intershell-config.default.ts +1 -8
- package/src/{entities/intershell-config → intershell-config}/intershell-config.ts +17 -3
- package/src/{entities/intershell-config → intershell-config}/intershell-config.types.ts +3 -3
- package/src/{entities/package-tags → package-tags}/package-tags.ts +2 -3
- package/src/{entities/tag → tag}/tag.ts +13 -3
- package/dist/commands/ci/act.d.ts +0 -13
- package/dist/commands/ci/act.d.ts.map +0 -1
- package/dist/commands/ci/act.js +0 -89
- package/dist/commands/ci/act.js.map +0 -1
- package/dist/commands/ci/attach-affected.d.ts +0 -12
- package/dist/commands/ci/attach-affected.d.ts.map +0 -1
- package/dist/commands/ci/attach-affected.js +0 -83
- package/dist/commands/ci/attach-affected.js.map +0 -1
- package/dist/commands/ci/attach-service-ports.d.ts +0 -10
- package/dist/commands/ci/attach-service-ports.d.ts.map +0 -1
- package/dist/commands/ci/attach-service-ports.js +0 -25
- package/dist/commands/ci/attach-service-ports.js.map +0 -1
- package/dist/commands/commit-check.d.ts +0 -13
- package/dist/commands/commit-check.d.ts.map +0 -1
- package/dist/commands/commit-check.js +0 -110
- package/dist/commands/commit-check.js.map +0 -1
- package/dist/commands/commit.d.ts +0 -16
- package/dist/commands/commit.d.ts.map +0 -1
- package/dist/commands/commit.js +0 -91
- package/dist/commands/commit.js.map +0 -1
- package/dist/commands/dev/check.d.ts +0 -13
- package/dist/commands/dev/check.d.ts.map +0 -1
- package/dist/commands/dev/check.js +0 -91
- package/dist/commands/dev/check.js.map +0 -1
- package/dist/commands/dev/cleanup.d.ts +0 -10
- package/dist/commands/dev/cleanup.d.ts.map +0 -1
- package/dist/commands/dev/cleanup.js +0 -28
- package/dist/commands/dev/cleanup.js.map +0 -1
- package/dist/commands/dev/rm.d.ts +0 -12
- package/dist/commands/dev/rm.d.ts.map +0 -1
- package/dist/commands/dev/rm.js +0 -49
- package/dist/commands/dev/rm.js.map +0 -1
- package/dist/commands/dev/setup.d.ts +0 -10
- package/dist/commands/dev/setup.d.ts.map +0 -1
- package/dist/commands/dev/setup.js +0 -40
- package/dist/commands/dev/setup.js.map +0 -1
- package/dist/commands/local/cleanup.d.ts +0 -12
- package/dist/commands/local/cleanup.d.ts.map +0 -1
- package/dist/commands/local/cleanup.js +0 -62
- package/dist/commands/local/cleanup.js.map +0 -1
- package/dist/commands/local/setup.d.ts +0 -11
- package/dist/commands/local/setup.d.ts.map +0 -1
- package/dist/commands/local/setup.js +0 -55
- package/dist/commands/local/setup.js.map +0 -1
- package/dist/commands/local/vscode.d.ts +0 -17
- package/dist/commands/local/vscode.d.ts.map +0 -1
- package/dist/commands/local/vscode.js +0 -94
- package/dist/commands/local/vscode.js.map +0 -1
- package/dist/commands/update-package-json.d.ts +0 -12
- package/dist/commands/update-package-json.d.ts.map +0 -1
- package/dist/commands/update-package-json.js +0 -82
- package/dist/commands/update-package-json.js.map +0 -1
- package/dist/commands/version/apply.d.ts +0 -16
- package/dist/commands/version/apply.d.ts.map +0 -1
- package/dist/commands/version/apply.js +0 -120
- package/dist/commands/version/apply.js.map +0 -1
- package/dist/commands/version/ci.d.ts +0 -12
- package/dist/commands/version/ci.d.ts.map +0 -1
- package/dist/commands/version/ci.js +0 -67
- package/dist/commands/version/ci.js.map +0 -1
- package/dist/commands/version/prepare.d.ts +0 -19
- package/dist/commands/version/prepare.d.ts.map +0 -1
- package/dist/commands/version/prepare.js +0 -158
- package/dist/commands/version/prepare.js.map +0 -1
- package/dist/core/colorify.d.ts +0 -21
- package/dist/core/colorify.d.ts.map +0 -1
- package/dist/core/colorify.js +0 -56
- package/dist/core/colorify.js.map +0 -1
- package/dist/core/index.d.ts +0 -4
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -3
- package/dist/core/index.js.map +0 -1
- package/dist/core/types.d.ts +0 -181
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js +0 -5
- package/dist/core/types.js.map +0 -1
- package/dist/core/wrapshell.d.ts +0 -19
- package/dist/core/wrapshell.d.ts.map +0 -1
- package/dist/core/wrapshell.js +0 -323
- package/dist/core/wrapshell.js.map +0 -1
- package/dist/entities/affected/affected.d.ts.map +0 -1
- package/dist/entities/affected/affected.js.map +0 -1
- package/dist/entities/affected/affected.test.d.ts.map +0 -1
- package/dist/entities/affected/affected.test.js.map +0 -1
- package/dist/entities/affected/index.d.ts.map +0 -1
- package/dist/entities/affected/index.js.map +0 -1
- package/dist/entities/branch/branch.d.ts.map +0 -1
- package/dist/entities/branch/branch.js.map +0 -1
- package/dist/entities/branch/branch.test.d.ts.map +0 -1
- package/dist/entities/branch/branch.test.js.map +0 -1
- package/dist/entities/branch/branch.types.d.ts.map +0 -1
- package/dist/entities/branch/branch.types.js.map +0 -1
- package/dist/entities/branch/index.d.ts.map +0 -1
- package/dist/entities/branch/index.js.map +0 -1
- package/dist/entities/commit/commit.d.ts.map +0 -1
- package/dist/entities/commit/commit.js.map +0 -1
- package/dist/entities/commit/commit.test.d.ts.map +0 -1
- package/dist/entities/commit/commit.test.js.map +0 -1
- package/dist/entities/commit/commit.types.d.ts.map +0 -1
- package/dist/entities/commit/commit.types.js.map +0 -1
- package/dist/entities/commit/index.d.ts.map +0 -1
- package/dist/entities/commit/index.js.map +0 -1
- package/dist/entities/commit/pr.d.ts.map +0 -1
- package/dist/entities/commit/pr.js.map +0 -1
- package/dist/entities/commit/pr.test.d.ts.map +0 -1
- package/dist/entities/commit/pr.test.js.map +0 -1
- package/dist/entities/compose/compose.d.ts.map +0 -1
- package/dist/entities/compose/compose.js.map +0 -1
- package/dist/entities/compose/compose.test.d.ts.map +0 -1
- package/dist/entities/compose/compose.test.js.map +0 -1
- package/dist/entities/compose/compose.types.d.ts.map +0 -1
- package/dist/entities/compose/compose.types.js.map +0 -1
- package/dist/entities/compose/index.d.ts.map +0 -1
- package/dist/entities/compose/index.js.map +0 -1
- package/dist/entities/entities.shell.d.ts.map +0 -1
- package/dist/entities/entities.shell.js.map +0 -1
- package/dist/entities/entities.shell.test.d.ts.map +0 -1
- package/dist/entities/entities.shell.test.js.map +0 -1
- package/dist/entities/index.d.ts +0 -12
- package/dist/entities/index.d.ts.map +0 -1
- package/dist/entities/index.js +0 -12
- package/dist/entities/index.js.map +0 -1
- package/dist/entities/intershell-config/intershell-config.d.ts.map +0 -1
- package/dist/entities/intershell-config/intershell-config.default.d.ts.map +0 -1
- package/dist/entities/intershell-config/intershell-config.default.js.map +0 -1
- package/dist/entities/intershell-config/intershell-config.js.map +0 -1
- package/dist/entities/intershell-config/intershell-config.test.d.ts.map +0 -1
- package/dist/entities/intershell-config/intershell-config.test.js.map +0 -1
- package/dist/entities/intershell-config/intershell-config.types.d.ts.map +0 -1
- package/dist/entities/intershell-config/intershell-config.types.js.map +0 -1
- package/dist/entities/package/index.d.ts.map +0 -1
- package/dist/entities/package/index.js.map +0 -1
- package/dist/entities/package/package.d.ts.map +0 -1
- package/dist/entities/package/package.js.map +0 -1
- package/dist/entities/package/package.shell.d.ts.map +0 -1
- package/dist/entities/package/package.shell.js.map +0 -1
- package/dist/entities/package/package.test.d.ts.map +0 -1
- package/dist/entities/package/package.test.js.map +0 -1
- package/dist/entities/package/package.types.d.ts.map +0 -1
- package/dist/entities/package/package.types.js.map +0 -1
- package/dist/entities/package-changelog/index.d.ts.map +0 -1
- package/dist/entities/package-changelog/index.js.map +0 -1
- package/dist/entities/package-changelog/package-changelog.d.ts.map +0 -1
- package/dist/entities/package-changelog/package-changelog.js.map +0 -1
- package/dist/entities/package-changelog/package-changelog.types.d.ts.map +0 -1
- package/dist/entities/package-changelog/package-changelog.types.js.map +0 -1
- package/dist/entities/package-changelog/template.d.ts.map +0 -1
- package/dist/entities/package-changelog/template.default.d.ts.map +0 -1
- package/dist/entities/package-changelog/template.default.js.map +0 -1
- package/dist/entities/package-changelog/template.js.map +0 -1
- package/dist/entities/package-commits/dependency-analyzer.d.ts.map +0 -1
- package/dist/entities/package-commits/dependency-analyzer.js.map +0 -1
- package/dist/entities/package-commits/dependency-analyzer.test.d.ts.map +0 -1
- package/dist/entities/package-commits/dependency-analyzer.test.js.map +0 -1
- package/dist/entities/package-commits/index.d.ts.map +0 -1
- package/dist/entities/package-commits/index.js.map +0 -1
- package/dist/entities/package-commits/package-commits.d.ts.map +0 -1
- package/dist/entities/package-commits/package-commits.js.map +0 -1
- package/dist/entities/package-commits/package-commits.test.d.ts.map +0 -1
- package/dist/entities/package-commits/package-commits.test.js.map +0 -1
- package/dist/entities/package-tags/index.d.ts.map +0 -1
- package/dist/entities/package-tags/index.js.map +0 -1
- package/dist/entities/package-tags/package-tags.d.ts.map +0 -1
- package/dist/entities/package-tags/package-tags.js.map +0 -1
- package/dist/entities/package-tags/package-tags.test.d.ts.map +0 -1
- package/dist/entities/package-tags/package-tags.test.js.map +0 -1
- package/dist/entities/package-version/index.d.ts.map +0 -1
- package/dist/entities/package-version/index.js.map +0 -1
- package/dist/entities/package-version/package-version.d.ts.map +0 -1
- package/dist/entities/package-version/package-version.js.map +0 -1
- package/dist/entities/package-version/package-version.test.d.ts.map +0 -1
- package/dist/entities/package-version/package-version.test.js.map +0 -1
- package/dist/entities/package-version/package-version.types.d.ts.map +0 -1
- package/dist/entities/package-version/package-version.types.js.map +0 -1
- package/dist/entities/tag/index.d.ts.map +0 -1
- package/dist/entities/tag/index.js.map +0 -1
- package/dist/entities/tag/tag.d.ts.map +0 -1
- package/dist/entities/tag/tag.js.map +0 -1
- package/dist/entities/tag/tag.test.d.ts.map +0 -1
- package/dist/entities/tag/tag.test.js.map +0 -1
- package/dist/entities/tag/tag.types.d.ts.map +0 -1
- package/dist/entities/tag/tag.types.js.map +0 -1
- package/src/commands/ci/act.ts +0 -95
- package/src/commands/ci/attach-affected.ts +0 -93
- package/src/commands/ci/attach-service-ports.ts +0 -31
- package/src/commands/commit-check.ts +0 -124
- package/src/commands/commit.ts +0 -103
- package/src/commands/dev/check.ts +0 -117
- package/src/commands/dev/cleanup.ts +0 -34
- package/src/commands/dev/rm.ts +0 -66
- package/src/commands/dev/setup.ts +0 -48
- package/src/commands/local/cleanup.ts +0 -74
- package/src/commands/local/setup.ts +0 -68
- package/src/commands/local/vscode.ts +0 -118
- package/src/commands/update-package-json.ts +0 -104
- package/src/commands/version/apply.ts +0 -156
- package/src/commands/version/ci.ts +0 -85
- package/src/commands/version/prepare.ts +0 -223
- package/src/core/colorify.ts +0 -61
- package/src/core/index.ts +0 -3
- package/src/core/types.ts +0 -262
- package/src/core/wrapshell.ts +0 -388
- package/src/entities/index.ts +0 -11
- /package/dist/{entities/affected → affected}/affected.d.ts +0 -0
- /package/dist/{entities/affected → affected}/affected.js +0 -0
- /package/dist/{entities/affected → affected}/affected.test.d.ts +0 -0
- /package/dist/{entities/affected → affected}/affected.test.js +0 -0
- /package/dist/{entities/affected → affected}/index.d.ts +0 -0
- /package/dist/{entities/affected → affected}/index.js +0 -0
- /package/dist/{entities/branch → branch}/branch.d.ts +0 -0
- /package/dist/{entities/branch → branch}/branch.test.d.ts +0 -0
- /package/dist/{entities/branch → branch}/branch.types.d.ts +0 -0
- /package/dist/{entities/branch → branch}/branch.types.js +0 -0
- /package/dist/{entities/branch → branch}/index.d.ts +0 -0
- /package/dist/{entities/branch → branch}/index.js +0 -0
- /package/dist/{entities/commit → commit}/commit.d.ts +0 -0
- /package/dist/{entities/commit → commit}/commit.test.d.ts +0 -0
- /package/dist/{entities/commit → commit}/commit.types.d.ts +0 -0
- /package/dist/{entities/commit → commit}/commit.types.js +0 -0
- /package/dist/{entities/commit → commit}/index.d.ts +0 -0
- /package/dist/{entities/commit → commit}/index.js +0 -0
- /package/dist/{entities/commit → commit}/pr.d.ts +0 -0
- /package/dist/{entities/commit → commit}/pr.js +0 -0
- /package/dist/{entities/commit → commit}/pr.test.d.ts +0 -0
- /package/dist/{entities/commit → commit}/pr.test.js +0 -0
- /package/dist/{entities/compose → compose}/compose.d.ts +0 -0
- /package/dist/{entities/compose → compose}/compose.js +0 -0
- /package/dist/{entities/compose → compose}/compose.test.d.ts +0 -0
- /package/dist/{entities/compose → compose}/compose.test.js +0 -0
- /package/dist/{entities/compose → compose}/compose.types.d.ts +0 -0
- /package/dist/{entities/compose → compose}/compose.types.js +0 -0
- /package/dist/{entities/compose → compose}/index.d.ts +0 -0
- /package/dist/{entities/compose → compose}/index.js +0 -0
- /package/dist/{entities/entities.shell.test.d.ts → entities.shell.test.d.ts} +0 -0
- /package/dist/{entities/entities.shell.test.js → entities.shell.test.js} +0 -0
- /package/dist/{entities/intershell-config → intershell-config}/intershell-config.d.ts +0 -0
- /package/dist/{entities/intershell-config → intershell-config}/intershell-config.test.d.ts +0 -0
- /package/dist/{entities/intershell-config → intershell-config}/intershell-config.test.js +0 -0
- /package/dist/{entities/intershell-config → intershell-config}/intershell-config.types.js +0 -0
- /package/dist/{entities/package → package}/index.d.ts +0 -0
- /package/dist/{entities/package → package}/index.js +0 -0
- /package/dist/{entities/package → package}/package.d.ts +0 -0
- /package/dist/{entities/package → package}/package.js +0 -0
- /package/dist/{entities/package → package}/package.shell.d.ts +0 -0
- /package/dist/{entities/package → package}/package.shell.js +0 -0
- /package/dist/{entities/package → package}/package.test.d.ts +0 -0
- /package/dist/{entities/package → package}/package.test.js +0 -0
- /package/dist/{entities/package → package}/package.types.d.ts +0 -0
- /package/dist/{entities/package → package}/package.types.js +0 -0
- /package/dist/{entities/package-changelog → package-changelog}/index.d.ts +0 -0
- /package/dist/{entities/package-changelog → package-changelog}/index.js +0 -0
- /package/dist/{entities/package-changelog → package-changelog}/package-changelog.d.ts +0 -0
- /package/dist/{entities/package-changelog → package-changelog}/package-changelog.js +0 -0
- /package/dist/{entities/package-changelog → package-changelog}/package-changelog.types.d.ts +0 -0
- /package/dist/{entities/package-changelog → package-changelog}/package-changelog.types.js +0 -0
- /package/dist/{entities/package-changelog → package-changelog}/template.d.ts +0 -0
- /package/dist/{entities/package-changelog → package-changelog}/template.default.d.ts +0 -0
- /package/dist/{entities/package-changelog → package-changelog}/template.default.js +0 -0
- /package/dist/{entities/package-changelog → package-changelog}/template.js +0 -0
- /package/dist/{entities/package-commits → package-commits}/dependency-analyzer.d.ts +0 -0
- /package/dist/{entities/package-commits → package-commits}/dependency-analyzer.js +0 -0
- /package/dist/{entities/package-commits → package-commits}/dependency-analyzer.test.d.ts +0 -0
- /package/dist/{entities/package-commits → package-commits}/dependency-analyzer.test.js +0 -0
- /package/dist/{entities/package-commits → package-commits}/index.d.ts +0 -0
- /package/dist/{entities/package-commits → package-commits}/index.js +0 -0
- /package/dist/{entities/package-commits → package-commits}/package-commits.d.ts +0 -0
- /package/dist/{entities/package-commits → package-commits}/package-commits.js +0 -0
- /package/dist/{entities/package-commits → package-commits}/package-commits.test.d.ts +0 -0
- /package/dist/{entities/package-commits → package-commits}/package-commits.test.js +0 -0
- /package/dist/{entities/package-tags → package-tags}/index.d.ts +0 -0
- /package/dist/{entities/package-tags → package-tags}/index.js +0 -0
- /package/dist/{entities/package-tags → package-tags}/package-tags.test.d.ts +0 -0
- /package/dist/{entities/package-tags → package-tags}/package-tags.test.js +0 -0
- /package/dist/{entities/package-version → package-version}/index.d.ts +0 -0
- /package/dist/{entities/package-version → package-version}/index.js +0 -0
- /package/dist/{entities/package-version → package-version}/package-version.d.ts +0 -0
- /package/dist/{entities/package-version → package-version}/package-version.js +0 -0
- /package/dist/{entities/package-version → package-version}/package-version.test.d.ts +0 -0
- /package/dist/{entities/package-version → package-version}/package-version.test.js +0 -0
- /package/dist/{entities/package-version → package-version}/package-version.types.d.ts +0 -0
- /package/dist/{entities/package-version → package-version}/package-version.types.js +0 -0
- /package/dist/{entities/tag → tag}/index.d.ts +0 -0
- /package/dist/{entities/tag → tag}/index.js +0 -0
- /package/dist/{entities/tag → tag}/tag.d.ts +0 -0
- /package/dist/{entities/tag → tag}/tag.test.d.ts +0 -0
- /package/dist/{entities/tag → tag}/tag.test.js +0 -0
- /package/dist/{entities/tag → tag}/tag.types.d.ts +0 -0
- /package/dist/{entities/tag → tag}/tag.types.js +0 -0
- /package/src/{entities/affected → affected}/affected.test.ts +0 -0
- /package/src/{entities/affected → affected}/affected.ts +0 -0
- /package/src/{entities/affected → affected}/index.ts +0 -0
- /package/src/{entities/branch → branch}/branch.types.ts +0 -0
- /package/src/{entities/branch → branch}/index.ts +0 -0
- /package/src/{entities/commit → commit}/commit.types.ts +0 -0
- /package/src/{entities/commit → commit}/index.ts +0 -0
- /package/src/{entities/commit → commit}/pr.test.ts +0 -0
- /package/src/{entities/commit → commit}/pr.ts +0 -0
- /package/src/{entities/compose → compose}/compose.test.ts +0 -0
- /package/src/{entities/compose → compose}/compose.ts +0 -0
- /package/src/{entities/compose → compose}/compose.types.ts +0 -0
- /package/src/{entities/compose → compose}/index.ts +0 -0
- /package/src/{entities/entities.shell.test.ts → entities.shell.test.ts} +0 -0
- /package/src/{entities/intershell-config → intershell-config}/intershell-config.test.ts +0 -0
- /package/src/{entities/package → package}/index.ts +0 -0
- /package/src/{entities/package → package}/package.shell.ts +0 -0
- /package/src/{entities/package → package}/package.test.ts +0 -0
- /package/src/{entities/package → package}/package.ts +0 -0
- /package/src/{entities/package → package}/package.types.ts +0 -0
- /package/src/{entities/package-changelog → package-changelog}/index.ts +0 -0
- /package/src/{entities/package-changelog → package-changelog}/package-changelog.ts +0 -0
- /package/src/{entities/package-changelog → package-changelog}/package-changelog.types.ts +0 -0
- /package/src/{entities/package-changelog → package-changelog}/template.default.ts +0 -0
- /package/src/{entities/package-changelog → package-changelog}/template.ts +0 -0
- /package/src/{entities/package-commits → package-commits}/dependency-analyzer.test.ts +0 -0
- /package/src/{entities/package-commits → package-commits}/dependency-analyzer.ts +0 -0
- /package/src/{entities/package-commits → package-commits}/index.ts +0 -0
- /package/src/{entities/package-commits → package-commits}/package-commits.test.ts +0 -0
- /package/src/{entities/package-commits → package-commits}/package-commits.ts +0 -0
- /package/src/{entities/package-tags → package-tags}/index.ts +0 -0
- /package/src/{entities/package-tags → package-tags}/package-tags.test.ts +0 -0
- /package/src/{entities/package-version → package-version}/index.ts +0 -0
- /package/src/{entities/package-version → package-version}/package-version.test.ts +0 -0
- /package/src/{entities/package-version → package-version}/package-version.ts +0 -0
- /package/src/{entities/package-version → package-version}/package-version.types.ts +0 -0
- /package/src/{entities/tag → tag}/index.ts +0 -0
- /package/src/{entities/tag → tag}/tag.test.ts +0 -0
- /package/src/{entities/tag → tag}/tag.types.ts +0 -0
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Command, Flags } from "@oclif/core";
|
|
2
|
-
import { $ } from "bun";
|
|
3
|
-
import { colorify } from "../../core";
|
|
4
|
-
|
|
5
|
-
export default class DevCleanup extends Command {
|
|
6
|
-
static description = `Clean up DevContainer services and development artifacts.
|
|
7
|
-
This only cleans up the development services, not the VS Code DevContainer itself.
|
|
8
|
-
To stop the VS Code DevContainer, run \`bun run dev:rm\` from the host machine.`;
|
|
9
|
-
|
|
10
|
-
static examples = ["intershell dev:cleanup", "intershell dev:cleanup --verbose"];
|
|
11
|
-
|
|
12
|
-
static flags = {
|
|
13
|
-
verbose: Flags.boolean({
|
|
14
|
-
char: "v",
|
|
15
|
-
description: "Enable verbose output",
|
|
16
|
-
default: false,
|
|
17
|
-
}),
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
async run(): Promise<void> {
|
|
21
|
-
await this.parse(DevCleanup);
|
|
22
|
-
|
|
23
|
-
this.log(colorify.blue("🧹 Starting DevContainer cleanup..."));
|
|
24
|
-
|
|
25
|
-
this.log(colorify.yellow("🐳 Stopping DevContainer services..."));
|
|
26
|
-
await $`docker compose -f ./docker-compose.dev.yml --profile all down --volumes`;
|
|
27
|
-
await $`docker compose -f ./docker-compose.dev.yml --profile all rm -f --volumes`;
|
|
28
|
-
|
|
29
|
-
this.log(colorify.green("✅ DevContainer cleanup completed successfully!"));
|
|
30
|
-
this.log(colorify.cyan("\n💡 To start fresh on devcontainer, run:"));
|
|
31
|
-
this.log(colorify.cyan(" - intershell dev:setup"));
|
|
32
|
-
this.log(colorify.cyan(" - intershell dev:rm # To stop VS Code DevContainer (host only)"));
|
|
33
|
-
}
|
|
34
|
-
}
|
package/src/commands/dev/rm.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Command, Flags } from "@oclif/core";
|
|
2
|
-
import { $ } from "bun";
|
|
3
|
-
import { colorify } from "../../core";
|
|
4
|
-
|
|
5
|
-
export default class DevRm extends Command {
|
|
6
|
-
static description = `Stop and remove the VS Code DevContainer itself.
|
|
7
|
-
⚠️ WARNING: This script must be run from the HOST machine, not from within the DevContainer.
|
|
8
|
-
This will stop the VS Code DevContainer and all associated containers.`;
|
|
9
|
-
|
|
10
|
-
static examples = ["intershell dev:rm", "intershell dev:rm --force"];
|
|
11
|
-
|
|
12
|
-
static flags = {
|
|
13
|
-
force: Flags.boolean({
|
|
14
|
-
char: "f",
|
|
15
|
-
description: "Force removal without confirmation",
|
|
16
|
-
default: false,
|
|
17
|
-
}),
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
async run(): Promise<void> {
|
|
21
|
-
await this.parse(DevRm);
|
|
22
|
-
|
|
23
|
-
this.log(colorify.blue("🐳 Stopping VS Code DevContainer..."));
|
|
24
|
-
|
|
25
|
-
// Check if we're in a DevContainer
|
|
26
|
-
const isInDevContainer = process.env.REMOTE_CONTAINERS === "true";
|
|
27
|
-
if (isInDevContainer) {
|
|
28
|
-
this.error(
|
|
29
|
-
colorify.red(
|
|
30
|
-
"❌ ERROR: This script must be run from the HOST machine, not from within the DevContainer.",
|
|
31
|
-
),
|
|
32
|
-
);
|
|
33
|
-
this.log(
|
|
34
|
-
colorify.yellow(
|
|
35
|
-
"💡 Please exit the DevContainer and run this command from your host terminal.",
|
|
36
|
-
),
|
|
37
|
-
);
|
|
38
|
-
process.exit(1);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
await this.stepStopDevContainer();
|
|
42
|
-
await this.stepStopRemoveAllContainers();
|
|
43
|
-
|
|
44
|
-
this.log(colorify.green("✅ DevContainer removal completed successfully!"));
|
|
45
|
-
this.log(colorify.cyan("\n💡 To start fresh, run:"));
|
|
46
|
-
this.log(colorify.cyan(" - intershell local:setup # For local development"));
|
|
47
|
-
this.log(colorify.cyan(" - Press `Ctrl+Shift+P` (or `Cmd+Shift+P` on macOS) "));
|
|
48
|
-
this.log(colorify.cyan(" -Type 'Dev Containers: Reopen in Container' and select the command"));
|
|
49
|
-
this.log(colorify.cyan(" - intershell dev:setup # For DevContainer development"));
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
private async stepStopDevContainer(): Promise<void> {
|
|
53
|
-
this.log(colorify.yellow("🛑 Stopping VS Code DevContainer..."));
|
|
54
|
-
// Stop the DevContainer using VS Code CLI
|
|
55
|
-
await $`code --command "devcontainers.stop"`.nothrow();
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
private async stepStopRemoveAllContainers(): Promise<void> {
|
|
59
|
-
this.log(colorify.yellow("🐳 Stopping all related containers..."));
|
|
60
|
-
await $`docker compose -f ./docker-compose.dev.yml --profile all down --volumes --remove-orphans`;
|
|
61
|
-
await $`docker compose -f docker-compose.yml down --volumes --remove-orphans`;
|
|
62
|
-
this.log(colorify.yellow("🗑️ Removing containers..."));
|
|
63
|
-
await $`docker compose -f ./docker-compose.dev.yml --profile all rm -f --volumes`;
|
|
64
|
-
await $`docker compose -f docker-compose.yml rm -f --volumes`;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Command, Flags } from "@oclif/core";
|
|
2
|
-
import { $ } from "bun";
|
|
3
|
-
import { colorify } from "../../core";
|
|
4
|
-
import { EntityCompose } from "../../entities";
|
|
5
|
-
|
|
6
|
-
export default class DevSetup extends Command {
|
|
7
|
-
static description =
|
|
8
|
-
"Setup DevContainer environment with Docker builds, service startup, and health verification";
|
|
9
|
-
|
|
10
|
-
static examples = [
|
|
11
|
-
"intershell dev:setup",
|
|
12
|
-
"intershell dev:setup --skip-health-check",
|
|
13
|
-
"intershell dev:setup --keep-running",
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
static flags = {
|
|
17
|
-
"skip-health-check": Flags.boolean({
|
|
18
|
-
char: "h",
|
|
19
|
-
description: "Skip health check verification",
|
|
20
|
-
default: false,
|
|
21
|
-
}),
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
async run(): Promise<void> {
|
|
25
|
-
const { flags } = await this.parse(DevSetup);
|
|
26
|
-
|
|
27
|
-
this.log(colorify.blue("🐳 Starting DevContainer setup..."));
|
|
28
|
-
|
|
29
|
-
await $`bun run dev:up --build`;
|
|
30
|
-
if (!flags["skip-health-check"]) {
|
|
31
|
-
this.log(colorify.blue("🏥 Running health checks..."));
|
|
32
|
-
await $`bun run dev:check`;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
this.log(colorify.cyan("\n💡 Services are running and available at:"));
|
|
36
|
-
const compose = new EntityCompose("./docker-compose.dev.yml");
|
|
37
|
-
const devUrls = await compose.getServiceUrls();
|
|
38
|
-
for (const [name, url] of Object.entries(devUrls)) {
|
|
39
|
-
this.log(colorify.cyan(` • ${name}: ${url}`));
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
this.log(colorify.yellow("💡 Use 'bun run dev:cleanup' to stop services when done"));
|
|
43
|
-
this.log(colorify.cyan("\n💡 Useful commands:"));
|
|
44
|
-
this.log(colorify.cyan(" - bun run dev:check # Check DevContainer health"));
|
|
45
|
-
this.log(colorify.cyan(" - bun run dev:logs # View service logs"));
|
|
46
|
-
this.log(colorify.cyan(" - bun run dev:cleanup # Clean DevContainer environment"));
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { Command, Flags } from "@oclif/core";
|
|
2
|
-
import { $ } from "bun";
|
|
3
|
-
import { colorify } from "../../core";
|
|
4
|
-
|
|
5
|
-
export default class LocalCleanup extends Command {
|
|
6
|
-
static description =
|
|
7
|
-
"Comprehensive cleanup of Docker containers, build artifacts, and development files. This includes DevContainer cleanup. To stop the VS Code DevContainer itself, run `bun run dev:rm` from host machine";
|
|
8
|
-
|
|
9
|
-
static examples = ["intershell local:cleanup", "intershell local:cleanup --verbose"];
|
|
10
|
-
|
|
11
|
-
static flags = {
|
|
12
|
-
verbose: Flags.boolean({
|
|
13
|
-
char: "v",
|
|
14
|
-
description: "Enable verbose output",
|
|
15
|
-
default: false,
|
|
16
|
-
}),
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
private readonly directories = [
|
|
20
|
-
"dist",
|
|
21
|
-
"build",
|
|
22
|
-
"dist",
|
|
23
|
-
"dist-storybook",
|
|
24
|
-
".turbo",
|
|
25
|
-
".next",
|
|
26
|
-
".output",
|
|
27
|
-
"coverage",
|
|
28
|
-
".nyc_output",
|
|
29
|
-
".cache",
|
|
30
|
-
".parcel-cache",
|
|
31
|
-
".vite",
|
|
32
|
-
".swc",
|
|
33
|
-
".act",
|
|
34
|
-
".biomecache",
|
|
35
|
-
"bin",
|
|
36
|
-
];
|
|
37
|
-
|
|
38
|
-
private readonly files = [
|
|
39
|
-
".act-event.json",
|
|
40
|
-
"*.tsbuildinfo",
|
|
41
|
-
".log",
|
|
42
|
-
".tmp",
|
|
43
|
-
".temp",
|
|
44
|
-
".DS_Store",
|
|
45
|
-
"Thumbs.db",
|
|
46
|
-
];
|
|
47
|
-
|
|
48
|
-
async run(): Promise<void> {
|
|
49
|
-
await this.parse(LocalCleanup);
|
|
50
|
-
|
|
51
|
-
this.log(colorify.blue("🧹 Starting comprehensive cleanup..."));
|
|
52
|
-
|
|
53
|
-
this.log(colorify.yellow("🗂️ Cleaning development artifacts..."));
|
|
54
|
-
for (const directory of this.directories) {
|
|
55
|
-
await $`rm -rf ${directory} **/${directory} **/${directory}/**`.quiet().nothrow();
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
this.log(colorify.yellow("📝 Cleaning logs and temp files..."));
|
|
59
|
-
for (const file of this.files) {
|
|
60
|
-
await $`rm -rf ${file} **/${file}`.quiet().nothrow();
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
this.log(colorify.yellow("📦 Cleaning node_modules in directories..."));
|
|
64
|
-
await $`rm -rf node_modules **/node_modules`.quiet().nothrow();
|
|
65
|
-
|
|
66
|
-
this.log(colorify.yellow("🎯 Cleaning VS Code configuration..."));
|
|
67
|
-
await $`rm -rf .vscode`.quiet().nothrow();
|
|
68
|
-
|
|
69
|
-
this.log(colorify.green("✅ Cleanup completed successfully!"));
|
|
70
|
-
this.log(colorify.cyan("\n💡 To start fresh, run:"));
|
|
71
|
-
this.log(colorify.cyan(" - intershell local:setup # For local development"));
|
|
72
|
-
this.log(colorify.cyan(" - intershell dev:setup # For DevContainer development"));
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { Command, Flags } from "@oclif/core";
|
|
2
|
-
import { $ } from "bun";
|
|
3
|
-
import { colorify } from "../../core";
|
|
4
|
-
|
|
5
|
-
export default class LocalSetup extends Command {
|
|
6
|
-
static description =
|
|
7
|
-
"Complete local development environment setup with dependency installation, local builds, and VS Code configuration sync";
|
|
8
|
-
|
|
9
|
-
static examples = [
|
|
10
|
-
"intershell local:setup",
|
|
11
|
-
"intershell local:setup --skip-vscode",
|
|
12
|
-
"intershell local:setup --skip-tests",
|
|
13
|
-
];
|
|
14
|
-
|
|
15
|
-
static flags = {
|
|
16
|
-
"skip-vscode": Flags.boolean({
|
|
17
|
-
char: "v",
|
|
18
|
-
description: "Skip VS Code configuration sync",
|
|
19
|
-
default: false,
|
|
20
|
-
}),
|
|
21
|
-
"skip-tests": Flags.boolean({
|
|
22
|
-
char: "t",
|
|
23
|
-
description: "Skip running tests",
|
|
24
|
-
default: false,
|
|
25
|
-
}),
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
async run(): Promise<void> {
|
|
29
|
-
const { flags } = await this.parse(LocalSetup);
|
|
30
|
-
|
|
31
|
-
this.log(colorify.blue("🚀 Starting local development setup..."));
|
|
32
|
-
|
|
33
|
-
// Step 1: Install dependencies
|
|
34
|
-
this.log(colorify.blue("📦 Installing dependencies..."));
|
|
35
|
-
await $`bun install`;
|
|
36
|
-
|
|
37
|
-
// Step 2: Run code quality checks
|
|
38
|
-
this.log(colorify.blue("🔍 Running code quality checks..."));
|
|
39
|
-
await $`bun run check:fix`;
|
|
40
|
-
|
|
41
|
-
// Step 3: Type checking
|
|
42
|
-
this.log(colorify.blue("🔍 Running type checks..."));
|
|
43
|
-
await $`bun run check:types`;
|
|
44
|
-
|
|
45
|
-
// Step 4: Run tests (unless skipped)
|
|
46
|
-
if (!flags["skip-tests"]) {
|
|
47
|
-
this.log(colorify.blue("🧪 Running tests..."));
|
|
48
|
-
await $`bun run test`;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// Step 5: Build all packages
|
|
52
|
-
this.log(colorify.blue("🏗️ Building all packages..."));
|
|
53
|
-
await $`bun run build`;
|
|
54
|
-
|
|
55
|
-
// Step 6: Sync VS Code configuration (unless skipped)
|
|
56
|
-
if (!flags["skip-vscode"]) {
|
|
57
|
-
this.log(colorify.blue("🎯 Syncing VS Code configuration..."));
|
|
58
|
-
await $`bun run local:vscode`;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
this.log(colorify.green("✅ Local setup completed successfully!"));
|
|
62
|
-
|
|
63
|
-
this.log(colorify.cyan("\n💡 Useful commands:"));
|
|
64
|
-
this.log(colorify.cyan(" - bun run check:quick # Quick verification"));
|
|
65
|
-
this.log(colorify.cyan(" - intershell dev:setup # Setup DevContainer environment"));
|
|
66
|
-
this.log(colorify.cyan(" - intershell local:cleanup # Clean everything"));
|
|
67
|
-
}
|
|
68
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { exists, mkdir } from "node:fs/promises";
|
|
2
|
-
import { join } from "node:path";
|
|
3
|
-
import { Command, Flags } from "@oclif/core";
|
|
4
|
-
import { $ } from "bun";
|
|
5
|
-
import { EntityPackage } from "../../entities";
|
|
6
|
-
|
|
7
|
-
export default class LocalVscode extends Command {
|
|
8
|
-
static description =
|
|
9
|
-
"Synchronize VS Code extensions and settings from devcontainer.json to .vscode/ directory";
|
|
10
|
-
|
|
11
|
-
static examples = [
|
|
12
|
-
"intershell local:vscode",
|
|
13
|
-
"intershell local:vscode --dry-run",
|
|
14
|
-
"intershell local:vscode --extensions-only",
|
|
15
|
-
"intershell local:vscode --settings-only",
|
|
16
|
-
"intershell local:vscode --quiet",
|
|
17
|
-
];
|
|
18
|
-
|
|
19
|
-
static flags = {
|
|
20
|
-
"dry-run": Flags.boolean({
|
|
21
|
-
description: "Show what would be synced without making changes",
|
|
22
|
-
default: false,
|
|
23
|
-
}),
|
|
24
|
-
"extensions-only": Flags.boolean({
|
|
25
|
-
description: "Only sync extensions",
|
|
26
|
-
default: false,
|
|
27
|
-
}),
|
|
28
|
-
"settings-only": Flags.boolean({
|
|
29
|
-
description: "Only sync settings",
|
|
30
|
-
default: false,
|
|
31
|
-
}),
|
|
32
|
-
quiet: Flags.boolean({
|
|
33
|
-
description: "Suppress all output except errors",
|
|
34
|
-
default: false,
|
|
35
|
-
}),
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Log a message only if not in quiet mode
|
|
40
|
-
*/
|
|
41
|
-
private logQuiet(message: string, quiet: boolean): void {
|
|
42
|
-
if (!quiet) {
|
|
43
|
-
this.log(message);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
async run(): Promise<void> {
|
|
48
|
-
const { flags } = await this.parse(LocalVscode);
|
|
49
|
-
|
|
50
|
-
this.logQuiet("🔄 Syncing VS Code configuration from devcontainer.json...", flags.quiet);
|
|
51
|
-
|
|
52
|
-
const scopes = await EntityPackage.getAllPackages();
|
|
53
|
-
this.logQuiet(`📋 Generated scopes: ${scopes.join(", ")}`, flags.quiet);
|
|
54
|
-
|
|
55
|
-
const {
|
|
56
|
-
customizations: { vscode: { extensions: recommendations = [], settings = {} } = {} } = {},
|
|
57
|
-
} = JSON.parse(
|
|
58
|
-
stripComments(
|
|
59
|
-
await Bun.file(join(process.cwd(), ".devcontainer", "devcontainer.json")).text(),
|
|
60
|
-
),
|
|
61
|
-
);
|
|
62
|
-
|
|
63
|
-
// Update settings with generated scopes
|
|
64
|
-
const updatedSettings = {
|
|
65
|
-
...settings,
|
|
66
|
-
"conventionalCommits.scopes": scopes,
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
const settingsConfigString = JSON.stringify(updatedSettings, null, 2);
|
|
70
|
-
const extensionsConfigString = JSON.stringify({ recommendations }, null, 2);
|
|
71
|
-
|
|
72
|
-
if (flags["dry-run"]) {
|
|
73
|
-
this.logQuiet("🔍 Dry run mode - showing what would be synced:", flags.quiet);
|
|
74
|
-
this.logQuiet(`📦 Extensions:\n${extensionsConfigString}`, flags.quiet);
|
|
75
|
-
this.logQuiet(`⚙️ Settings:\n${settingsConfigString}`, flags.quiet);
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// Update devcontainer.json with new scopes
|
|
80
|
-
const devcontainerPath = join(process.cwd(), ".devcontainer", "devcontainer.json");
|
|
81
|
-
const devcontainerContent = JSON.parse(stripComments(await Bun.file(devcontainerPath).text()));
|
|
82
|
-
|
|
83
|
-
// Update the scopes in devcontainer.json
|
|
84
|
-
devcontainerContent.customizations.vscode.settings["conventionalCommits.scopes"] = scopes;
|
|
85
|
-
|
|
86
|
-
// Write back the updated devcontainer.json
|
|
87
|
-
await Bun.write(devcontainerPath, JSON.stringify(devcontainerContent, null, 2));
|
|
88
|
-
await $`bun run biome check --write ${devcontainerPath}`;
|
|
89
|
-
this.logQuiet(`✅ Updated ${devcontainerPath} with new scopes!`, flags.quiet);
|
|
90
|
-
|
|
91
|
-
const vscodeDir = join(process.cwd(), ".vscode");
|
|
92
|
-
if (!(await exists(vscodeDir))) await mkdir(vscodeDir, { recursive: true });
|
|
93
|
-
const extensionsPath = join(vscodeDir, "extensions.json");
|
|
94
|
-
const settingsPath = join(vscodeDir, "settings.json");
|
|
95
|
-
|
|
96
|
-
if (!flags["settings-only"]) {
|
|
97
|
-
await Bun.write(extensionsPath, extensionsConfigString);
|
|
98
|
-
this.logQuiet(`✅ Updated ${extensionsPath}!`, flags.quiet);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
if (!flags["extensions-only"]) {
|
|
102
|
-
await Bun.write(settingsPath, settingsConfigString);
|
|
103
|
-
this.logQuiet(`✅ Updated ${settingsPath}!`, flags.quiet);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
this.logQuiet("✅ VS Code configuration synced successfully!", flags.quiet);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Strip comments from JSON content
|
|
112
|
-
*/
|
|
113
|
-
function stripComments(content: string): string {
|
|
114
|
-
return content
|
|
115
|
-
.replace(/\/\/[^\r\n]*/g, "")
|
|
116
|
-
.replace(/\/\*[^*]*\*+(?:[^/*][^*]*\*+)*\//g, "")
|
|
117
|
-
.replace(/^\s*[\r\n]/gm, "");
|
|
118
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { readdir } from "node:fs/promises";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
import { Command, Flags } from "@oclif/core";
|
|
4
|
-
import { $ } from "bun";
|
|
5
|
-
import { colorify } from "../core";
|
|
6
|
-
|
|
7
|
-
export default class UpdatePackageJson extends Command {
|
|
8
|
-
static description =
|
|
9
|
-
"Update the package.json exports attributes based on the files in the package";
|
|
10
|
-
|
|
11
|
-
static examples = ["intershell update-package-json"];
|
|
12
|
-
|
|
13
|
-
static flags = {
|
|
14
|
-
src: Flags.boolean({
|
|
15
|
-
char: "s",
|
|
16
|
-
description: "Are you using src directory? (default: true)",
|
|
17
|
-
default: true,
|
|
18
|
-
}),
|
|
19
|
-
"dry-run": Flags.boolean({
|
|
20
|
-
char: "d",
|
|
21
|
-
description: "Show what would be updated without making changes",
|
|
22
|
-
default: false,
|
|
23
|
-
}),
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
async run(): Promise<void> {
|
|
27
|
-
const { flags } = await this.parse(UpdatePackageJson);
|
|
28
|
-
this.log(colorify.blue("🧹 Starting package.json update..."));
|
|
29
|
-
|
|
30
|
-
const packageJsonPath = path.join(process.cwd(), "package.json");
|
|
31
|
-
const packageDir = path.dirname(packageJsonPath);
|
|
32
|
-
const srcDir = flags.src ? path.join(packageDir, "src") : packageDir;
|
|
33
|
-
const files = await readdir(srcDir, {
|
|
34
|
-
withFileTypes: true,
|
|
35
|
-
recursive: false,
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
this.log(
|
|
39
|
-
colorify.blue(`🔍 Found ${files.length} exportable modules:`),
|
|
40
|
-
colorify.cyan(files.map((f) => f.name).join(" ")),
|
|
41
|
-
);
|
|
42
|
-
|
|
43
|
-
const newExports = await this.getNewExports(files, srcDir, packageDir);
|
|
44
|
-
|
|
45
|
-
if (flags["dry-run"]) {
|
|
46
|
-
this.log(colorify.yellow("🔍 Dry run mode, skipping write:"));
|
|
47
|
-
this.log(JSON.stringify(newExports, null, 2));
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
const packageJson = JSON.parse(await Bun.file(packageJsonPath).text());
|
|
52
|
-
packageJson.exports = newExports;
|
|
53
|
-
|
|
54
|
-
await Bun.write(packageJsonPath, JSON.stringify(packageJson, null, 2));
|
|
55
|
-
await $`bun biome check --write --no-errors-on-unmatched ${packageJsonPath}`;
|
|
56
|
-
this.log(colorify.green("✅ Package.json updated successfully"));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
private async getNewExports(
|
|
60
|
-
files: Array<{ name: string; isDirectory(): boolean }>,
|
|
61
|
-
srcDir: string,
|
|
62
|
-
packageDir: string,
|
|
63
|
-
): Promise<Record<string, string>> {
|
|
64
|
-
const newExports: Record<string, string> = {};
|
|
65
|
-
|
|
66
|
-
for (const file of files) {
|
|
67
|
-
if (file.isDirectory()) {
|
|
68
|
-
const indexFile = path.join(srcDir, file.name, "index.ts");
|
|
69
|
-
const indexTsxFile = path.join(srcDir, file.name, "index.tsx");
|
|
70
|
-
const sameNameFile = path.join(srcDir, file.name, `${file.name}.ts`);
|
|
71
|
-
const sameNameTsxFile = path.join(srcDir, file.name, `${file.name}.tsx`);
|
|
72
|
-
|
|
73
|
-
if (await Bun.file(indexFile).exists()) {
|
|
74
|
-
newExports[`./${file.name}`] = `./${path.relative(packageDir, indexFile)}`;
|
|
75
|
-
} else if (await Bun.file(indexTsxFile).exists()) {
|
|
76
|
-
newExports[`./${file.name}`] = `./${path.relative(packageDir, indexTsxFile)}`;
|
|
77
|
-
} else if (await Bun.file(sameNameFile).exists()) {
|
|
78
|
-
newExports[`./${file.name}`] = `./${path.relative(packageDir, sameNameFile)}`;
|
|
79
|
-
} else if (await Bun.file(sameNameTsxFile).exists()) {
|
|
80
|
-
newExports[`./${file.name}`] = `./${path.relative(packageDir, sameNameTsxFile)}`;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
continue;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
const shouldSkip = !file.name.endsWith(".ts") && !file.name.endsWith(".tsx");
|
|
87
|
-
if (shouldSkip) continue;
|
|
88
|
-
|
|
89
|
-
if (file.name === "index.ts") {
|
|
90
|
-
newExports["."] = "./index.ts";
|
|
91
|
-
continue;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
const mainFile = path.join(srcDir, file.name);
|
|
95
|
-
const relativePath = `./${path.relative(packageDir, mainFile)}`;
|
|
96
|
-
|
|
97
|
-
if (await Bun.file(mainFile).exists()) {
|
|
98
|
-
newExports[`./${file.name}`] = relativePath;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
return newExports;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { Command, Flags } from "@oclif/core";
|
|
2
|
-
import { $ } from "bun";
|
|
3
|
-
import { colorify } from "../../core";
|
|
4
|
-
import { EntityPackage, EntityPackageTags } from "../../entities";
|
|
5
|
-
|
|
6
|
-
export default class VersionApply extends Command {
|
|
7
|
-
static description = "Create git version tags and commit version changes";
|
|
8
|
-
|
|
9
|
-
static examples = [
|
|
10
|
-
"intershell version:apply",
|
|
11
|
-
"intershell version:apply --message 'Release version 1.2.3'",
|
|
12
|
-
"intershell version:apply --no-push",
|
|
13
|
-
];
|
|
14
|
-
|
|
15
|
-
static flags = {
|
|
16
|
-
package: Flags.string({
|
|
17
|
-
char: "p",
|
|
18
|
-
description: "Package name to process (default: all packages)",
|
|
19
|
-
}),
|
|
20
|
-
message: Flags.string({
|
|
21
|
-
char: "m",
|
|
22
|
-
description: "Tag message",
|
|
23
|
-
}),
|
|
24
|
-
"no-push": Flags.boolean({
|
|
25
|
-
char: "n",
|
|
26
|
-
description: "Don't push tag to remote after creation",
|
|
27
|
-
default: false,
|
|
28
|
-
}),
|
|
29
|
-
"dry-run": Flags.boolean({
|
|
30
|
-
char: "d",
|
|
31
|
-
description: "Show planned changes without applying them",
|
|
32
|
-
default: false,
|
|
33
|
-
}),
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
async run(): Promise<void> {
|
|
37
|
-
const { flags } = await this.parse(VersionApply);
|
|
38
|
-
const packageName = flags.package || "root";
|
|
39
|
-
this.log(`📦 Processing package: ${colorify.blue(packageName)}`);
|
|
40
|
-
|
|
41
|
-
const packageInstance = new EntityPackage(packageName);
|
|
42
|
-
const version = packageInstance.readVersion();
|
|
43
|
-
const tagSeriesName = packageInstance.getTagSeriesName();
|
|
44
|
-
const tagName = `${tagSeriesName}${version}`;
|
|
45
|
-
|
|
46
|
-
if (!tagSeriesName) {
|
|
47
|
-
throw new Error(
|
|
48
|
-
`Tag series name not found for ${packageName}, this package should not be versioned (private package). Only versioned packages can be processed.`,
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
if (flags["dry-run"]) {
|
|
53
|
-
this.log(colorify.yellow("🔍 Dry run mode - would execute:"));
|
|
54
|
-
this.log(colorify.gray(` • Commit version changes for package ${packageName}`));
|
|
55
|
-
this.log(colorify.gray(` • Create tag ${tagName} for ${packageName}`));
|
|
56
|
-
if (!flags["no-push"]) {
|
|
57
|
-
this.log(colorify.gray(" • Push commit changes to remote"));
|
|
58
|
-
this.log(colorify.gray(" • Push tags to remote"));
|
|
59
|
-
}
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
this.log("📁 Adding all changes...");
|
|
64
|
-
await $`git add .`;
|
|
65
|
-
const statusResult = await $`git status --porcelain`.nothrow();
|
|
66
|
-
const hasChanges = statusResult.text().trim() !== "";
|
|
67
|
-
|
|
68
|
-
if (!hasChanges) {
|
|
69
|
-
this.log(colorify.yellow("⚠️ No changes to commit"));
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
await this.commitVersionChanges();
|
|
74
|
-
await this.createTagsForPackage(packageName, flags);
|
|
75
|
-
await this.pushChanges(flags);
|
|
76
|
-
|
|
77
|
-
this.log(colorify.green("✅ Version apply operation completed successfully!"));
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
private async commitVersionChanges(): Promise<void> {
|
|
81
|
-
const commitMessage = await Bun.file(".git/COMMIT_EDITMSG").text();
|
|
82
|
-
|
|
83
|
-
this.log("📝 Commit message:");
|
|
84
|
-
this.log(commitMessage);
|
|
85
|
-
|
|
86
|
-
await $`git commit -m "${commitMessage}"`;
|
|
87
|
-
|
|
88
|
-
this.log(colorify.green("✅ Successfully committed version changes"));
|
|
89
|
-
const commitHash = await $`git rev-parse --short HEAD`.text();
|
|
90
|
-
this.log(`🏷️ Commit hash: ${commitHash.trim()}`);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private async createTagsForPackage(
|
|
94
|
-
packageName: string,
|
|
95
|
-
flags: {
|
|
96
|
-
message?: string;
|
|
97
|
-
"no-push"?: boolean;
|
|
98
|
-
"dry-run"?: boolean;
|
|
99
|
-
},
|
|
100
|
-
): Promise<void> {
|
|
101
|
-
const packageInstance = new EntityPackage(packageName);
|
|
102
|
-
const version = packageInstance.readVersion();
|
|
103
|
-
if (!version) {
|
|
104
|
-
throw new Error(`Version not found for ${packageName}`);
|
|
105
|
-
}
|
|
106
|
-
const packageTags = new EntityPackageTags(packageInstance);
|
|
107
|
-
|
|
108
|
-
// Check if tag already exists
|
|
109
|
-
const tagExists = await packageTags.packageTagExists(version);
|
|
110
|
-
if (tagExists) {
|
|
111
|
-
const prefix = await packageTags.getTagPrefix();
|
|
112
|
-
const tagName = `${prefix}${version}`;
|
|
113
|
-
this.log(`⏭️ Tag already exists: ${tagName}`);
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
this.log(`🏷️ Creating tag for ${packageName}: ${version}`);
|
|
118
|
-
|
|
119
|
-
try {
|
|
120
|
-
await packageTags.createPackageTag(
|
|
121
|
-
version,
|
|
122
|
-
flags.message || `Release ${packageName} version ${version}`,
|
|
123
|
-
);
|
|
124
|
-
|
|
125
|
-
const prefix = await packageTags.getTagPrefix();
|
|
126
|
-
const tagName = `${prefix}${version}`;
|
|
127
|
-
this.log(`✅ Created tag: ${tagName}`);
|
|
128
|
-
} catch (error) {
|
|
129
|
-
throw new Error(
|
|
130
|
-
`Failed to create tag for ${packageName}: ${error instanceof Error ? error.message : String(error)}`,
|
|
131
|
-
);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
private async pushChanges(flags: { "no-push"?: boolean; "dry-run"?: boolean }): Promise<void> {
|
|
136
|
-
if (flags["no-push"]) {
|
|
137
|
-
this.log(colorify.yellow("⚠️ Skipping push (--no-push specified)"));
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
if (flags["dry-run"]) {
|
|
142
|
-
this.log(colorify.yellow("⚠️ Skipping push (--dry-run specified)"));
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
try {
|
|
147
|
-
this.log("📤 Pushing commit changes to remote...");
|
|
148
|
-
await $`git push --follow-tags`;
|
|
149
|
-
this.log("✅ Pushed commit changes to remote");
|
|
150
|
-
} catch (error) {
|
|
151
|
-
throw new Error(
|
|
152
|
-
`Failed to push commit changes to remote: ${error instanceof Error ? error.message : String(error)}`,
|
|
153
|
-
);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|