From c460ff6d9bbd03c117b4e9bfda5ac2b808b4285d Mon Sep 17 00:00:00 2001 From: prisis Date: Tue, 21 May 2024 22:18:58 +0200 Subject: [PATCH 01/12] refactor: moving the repo into a mono repo --- .gitattributes | 1 + .github/CONTRIBUTING.md | 748 + .github/ISSUE_TEMPLATE/bug_report.yml | 27 +- .github/ISSUE_TEMPLATE/feature_request.yml | 14 +- .github/ISSUE_TEMPLATE/freestyle.md | 2 + .github/TROUBLESHOOT.md | 19 + .github/file-filters.yml | 21 +- .github/semantic.yml | 19 - .github/settings.yml | 194 - .github/workflows/allo-allo.yaml | 34 + .github/workflows/bundle-analysis.yml | 185 - .github/workflows/cache-clear.yml | 38 +- .github/workflows/codeql.yml | 10 +- .github/workflows/comment-issue.yml | 10 +- .github/workflows/dependency-review.yml | 7 +- .github/workflows/greetings.yml | 27 - .github/workflows/introspect.yml | 39 - .github/workflows/lint.yml | 230 +- .github/workflows/lock-issues.yaml | 12 + .github/workflows/require-allow-edits.yml | 25 + .github/workflows/scorecards.yml | 14 +- .github/workflows/semantic-pull-request.yml | 27 +- .github/workflows/semantic-release.yml | 56 +- .github/workflows/stale-issues.yml | 106 +- .github/workflows/test.yml | 116 +- .gitignore | 66 +- .lintstagedrc.cjs | 5 + .npmrc | 24 + .nxignore | 7 + .prettierignore | 23 +- .secretlintrc.cjs | 1 - LICENSE.md | 33 +- README.md | 413 +- audit-ci.jsonc | 8 + codecov.yml | 21 + commitlint.config.cjs | 1 - nx.json | 81 + package.json | 166 +- .../multi-semantic-release/.eslintignore | 0 .../multi-semantic-release/.eslintrc.cjs | 0 packages/multi-semantic-release/.npmignore | 8 + .../multi-semantic-release/.prettierignore | 12 + .../multi-semantic-release/.prettierrc.cjs | 5 + .../multi-semantic-release/.releaserc.json | 2 +- .../multi-semantic-release/.secretlintignore | 3 + .../multi-semantic-release/.secretlintrc.cjs | 8 + .../multi-semantic-release/CHANGELOG.md | 0 .../multi-semantic-release/CHANGELOG_OLD.md | 0 packages/multi-semantic-release/LICENSE.md | 12 + packages/multi-semantic-release/README.md | 412 + .../__fixtures__}/badDepsPackage.json | 0 .../__fixtures__}/badDevDepsPackage.json | 0 .../__fixtures__}/badNamePackage.json | 0 .../__fixtures__}/badPeerDepsPackage.json | 0 .../badYarnWorkspaces/package.json | 0 .../__fixtures__}/boltWorkspaces/package.json | 0 .../boltWorkspaces/packages/a/package.json | 0 .../boltWorkspaces/packages/b/package.json | 0 .../boltWorkspaces/packages/c/.releaserc.json | 0 .../boltWorkspaces/packages/c/package.json | 0 .../boltWorkspaces/packages/d/package.json | 0 .../boltWorkspacesIgnore/package.json | 0 .../packages/a/package.json | 0 .../packages/b/package.json | 0 .../packages/c/.releaserc.json | 0 .../packages/c/package.json | 0 .../packages/d/package.json | 0 .../boltWorkspacesUndefined/package.json | 0 .../packages/a/package.json | 0 .../packages/b/package.json | 0 .../packages/c/.releaserc.json | 0 .../packages/c/package.json | 0 .../packages/d/package.json | 0 .../emptyYarnWorkspaces/package.json | 0 .../__fixtures__}/invalidPackage.json | 0 .../__fixtures__}/numberPackage.json | 0 .../__fixtures__}/pnpmWorkspace/package.json | 0 .../pnpmWorkspace/packages/a/package.json | 0 .../pnpmWorkspace/packages/b/package.json | 0 .../pnpmWorkspace/packages/c/.releaserc.json | 0 .../pnpmWorkspace/packages/c/package.json | 0 .../pnpmWorkspace/packages/d/package.json | 0 .../pnpmWorkspace/pnpm-workspace.yaml | 0 .../pnpmWorkspaceIgnore/package.json | 0 .../packages/a/package.json | 0 .../packages/b/package.json | 0 .../packages/c/.releaserc.json | 0 .../packages/c/package.json | 0 .../packages/d/package.json | 0 .../pnpmWorkspaceIgnore/pnpm-workspace.yaml | 0 .../pnpmWorkspaceUndefined/package.json | 0 .../packages/a/package.json | 0 .../packages/b/package.json | 0 .../packages/c/.releaserc.json | 0 .../packages/c/package.json | 0 .../packages/d/package.json | 0 .../pnpm-workspace.yaml | 0 .../undefinedYarnWorkspaces/package.json | 0 .../__fixtures__}/yarnWorkspaces/package.json | 0 .../yarnWorkspaces/packages/a/package.json | 0 .../yarnWorkspaces/packages/b/package.json | 0 .../yarnWorkspaces/packages/c/.releaserc.json | 0 .../yarnWorkspaces/packages/c/package.json | 0 .../yarnWorkspaces/packages/d/package.json | 0 .../yarnWorkspaces2Packages/package.json | 0 .../packages/c/.releaserc.json | 0 .../packages/c/package.json | 0 .../packages/d/package.json | 0 .../yarnWorkspacesAcyclic/package.json | 0 .../packages/a/package.json | 0 .../packages/b/package.json | 0 .../packages/c/.releaserc.json | 0 .../packages/c/package.json | 0 .../packages/d/package.json | 0 .../yarnWorkspacesConfig/package.json | 0 .../packages/a/package.json | 0 .../packages/b/package.json | 0 .../packages/c/.releaserc.json | 0 .../packages/c/package.json | 0 .../packages/d/package.json | 0 .../yarnWorkspacesConfigExtends/config.js | 0 .../yarnWorkspacesConfigExtends/package.json | 0 .../packages/a/package.json | 0 .../packages/b/package.json | 0 .../packages/c/.releaserc.json | 0 .../packages/c/package.json | 0 .../packages/d/package.json | 0 .../yarnWorkspacesIgnore/package.json | 0 .../packages/a/package.json | 0 .../packages/b/package.json | 0 .../packages/c/.releaserc.json | 0 .../packages/c/package.json | 0 .../packages/d/package.json | 0 .../yarnWorkspacesIgnoreSplit/package.json | 0 .../packages/a/package.json | 0 .../packages/b/package.json | 0 .../packages/c/.releaserc.json | 0 .../packages/c/package.json | 0 .../packages/d/package.json | 0 .../yarnWorkspacesPackages/package.json | 0 .../packages/a/package.json | 0 .../packages/b/package.json | 0 .../packages/c/.releaserc.json | 0 .../packages/c/package.json | 0 .../packages/d/package.json | 0 .../yarnWorkspacesRanges/package.json | 0 .../packages/a/package.json | 0 .../packages/b/package.json | 0 .../packages/c/.releaserc.json | 0 .../packages/c/package.json | 0 .../packages/d/package.json | 0 .../__tests__}/bin/cli.test.js | 0 .../__tests__}/helpers/file.js | 0 .../__tests__}/helpers/git.js | 0 .../__tests__}/helpers/transform-path.js | 0 .../lib/external-topo-package-paths.test.js | 0 .../lib/get-commits-filtered.test.js | 0 .../lib/get-config-multi-semrel.test.js | 0 .../lib/multi-semantic-release.test.js | 0 .../lib/resolve-release-type.test.js | 0 .../__tests__}/lib/update-deps.test.js | 0 .../__tests__}/lib/utils/clean-path.test.js | 0 .../__tests__}/lib/utils/get-version.test.js | 0 .../__tests__}/lib/utils/merge-config.test.js | 0 .../lib/utils/recognize-format.test.js | 0 .../lib/utils/stream-to-array.test.js | 0 .../multi-semantic-release/bin}/cli.js | 0 .../lib}/create-inline-plugin-creator.js | 0 .../lib}/get-commits-filtered.js | 0 .../lib}/get-config-multi-semrel.js | 0 .../lib}/get-config-semantic.js | 0 .../multi-semantic-release/lib}/get-config.js | 0 .../lib}/get-manifest.js | 0 .../multi-semantic-release/lib}/logger.js | 0 .../lib}/multi-semantic-release.js | 0 .../lib}/rescoped-stream.js | 0 .../lib}/update-deps.js | 0 .../lib}/utils/blork.js | 0 .../lib}/utils/clean-path.js | 0 .../lib}/utils/get-version.js | 0 .../lib}/utils/merge-config.js | 0 .../lib}/utils/recognize-format.js | 0 .../lib}/utils/stream-to-array.js | 0 packages/multi-semantic-release/package.json | 122 + packages/multi-semantic-release/project.json | 8 + .../multi-semantic-release/vitest.config.ts | 0 plop/package/.eslintignore.hbs | 15 + plop/package/.eslintrc.cjs.hbs | 90 + plop/package/.npmignore.hbs | 9 + plop/package/.prettierignore.hbs | 9 + plop/package/.prettierrc.cjs.hbs | 5 + plop/package/.releaserc.json.hbs | 3 + plop/package/.secretlintignore.hbs | 3 + plop/package/.secretlintrc.cjs.hbs | 7 + plop/package/CHANGELOG.md.hbs | 0 plop/package/LICENSE.md.hbs | 21 + plop/package/README.md.hbs | 71 + plop/package/package.json.hbs | 119 + plop/package/project.json.hbs | 8 + plop/package/src/index.ts.hbs | 0 plop/package/tsconfig.dev.json.hbs | 6 + plop/package/tsconfig.eslint.json.hbs | 8 + plop/package/tsconfig.json.hbs | 8 + plop/package/vitest.config.ts.hbs | 5 + plopfile.js | 76 + pnpm-lock.yaml | 17537 ++++++++++------ pnpm-workspace.yaml | 6 + taze.config.js | 13 +- tools/get-vitest-config.ts | 34 + tsconfig.base.json | 54 + tsconfig.eslint.json | 20 + tsconfig.json | 7 + verify-node-version.cjs | 1 - 213 files changed, 13569 insertions(+), 7988 deletions(-) create mode 100644 .gitattributes create mode 100644 .github/TROUBLESHOOT.md delete mode 100644 .github/semantic.yml delete mode 100644 .github/settings.yml create mode 100644 .github/workflows/allo-allo.yaml delete mode 100644 .github/workflows/bundle-analysis.yml delete mode 100644 .github/workflows/greetings.yml delete mode 100644 .github/workflows/introspect.yml create mode 100644 .github/workflows/lock-issues.yaml create mode 100644 .github/workflows/require-allow-edits.yml create mode 100644 .lintstagedrc.cjs create mode 100644 .nxignore create mode 100644 audit-ci.jsonc create mode 100644 codecov.yml create mode 100644 nx.json rename .eslintignore => packages/multi-semantic-release/.eslintignore (100%) rename .eslintrc.cjs => packages/multi-semantic-release/.eslintrc.cjs (100%) create mode 100644 packages/multi-semantic-release/.npmignore create mode 100644 packages/multi-semantic-release/.prettierignore create mode 100644 packages/multi-semantic-release/.prettierrc.cjs rename .releaserc.json => packages/multi-semantic-release/.releaserc.json (95%) create mode 100644 packages/multi-semantic-release/.secretlintignore create mode 100644 packages/multi-semantic-release/.secretlintrc.cjs rename CHANGELOG.md => packages/multi-semantic-release/CHANGELOG.md (100%) rename CHANGELOG_OLD.md => packages/multi-semantic-release/CHANGELOG_OLD.md (100%) create mode 100644 packages/multi-semantic-release/LICENSE.md create mode 100644 packages/multi-semantic-release/README.md rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/badDepsPackage.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/badDevDepsPackage.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/badNamePackage.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/badPeerDepsPackage.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/badYarnWorkspaces/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/boltWorkspaces/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/boltWorkspaces/packages/a/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/boltWorkspaces/packages/b/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/boltWorkspaces/packages/c/.releaserc.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/boltWorkspaces/packages/c/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/boltWorkspaces/packages/d/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/boltWorkspacesIgnore/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/boltWorkspacesIgnore/packages/a/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/boltWorkspacesIgnore/packages/b/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/boltWorkspacesIgnore/packages/c/.releaserc.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/boltWorkspacesIgnore/packages/c/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/boltWorkspacesIgnore/packages/d/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/boltWorkspacesUndefined/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/boltWorkspacesUndefined/packages/a/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/boltWorkspacesUndefined/packages/b/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/boltWorkspacesUndefined/packages/c/.releaserc.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/boltWorkspacesUndefined/packages/c/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/boltWorkspacesUndefined/packages/d/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/emptyYarnWorkspaces/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/invalidPackage.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/numberPackage.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspace/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspace/packages/a/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspace/packages/b/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspace/packages/c/.releaserc.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspace/packages/c/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspace/packages/d/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspace/pnpm-workspace.yaml (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspaceIgnore/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspaceIgnore/packages/a/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspaceIgnore/packages/b/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspaceIgnore/packages/c/.releaserc.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspaceIgnore/packages/c/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspaceIgnore/packages/d/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspaceIgnore/pnpm-workspace.yaml (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspaceUndefined/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspaceUndefined/packages/a/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspaceUndefined/packages/b/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspaceUndefined/packages/c/.releaserc.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspaceUndefined/packages/c/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspaceUndefined/packages/d/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/pnpmWorkspaceUndefined/pnpm-workspace.yaml (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/undefinedYarnWorkspaces/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspaces/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspaces/packages/a/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspaces/packages/b/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspaces/packages/c/.releaserc.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspaces/packages/c/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspaces/packages/d/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspaces2Packages/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspaces2Packages/packages/c/.releaserc.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspaces2Packages/packages/c/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspaces2Packages/packages/d/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesAcyclic/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesAcyclic/packages/a/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesAcyclic/packages/b/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesAcyclic/packages/c/.releaserc.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesAcyclic/packages/c/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesAcyclic/packages/d/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesConfig/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesConfig/packages/a/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesConfig/packages/b/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesConfig/packages/c/.releaserc.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesConfig/packages/c/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesConfig/packages/d/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesConfigExtends/config.js (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesConfigExtends/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesConfigExtends/packages/a/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesConfigExtends/packages/b/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesConfigExtends/packages/c/.releaserc.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesConfigExtends/packages/c/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesConfigExtends/packages/d/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesIgnore/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesIgnore/packages/a/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesIgnore/packages/b/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesIgnore/packages/c/.releaserc.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesIgnore/packages/c/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesIgnore/packages/d/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesIgnoreSplit/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesIgnoreSplit/packages/a/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesIgnoreSplit/packages/b/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesIgnoreSplit/packages/c/.releaserc.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesIgnoreSplit/packages/c/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesIgnoreSplit/packages/d/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesPackages/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesPackages/packages/a/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesPackages/packages/b/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesPackages/packages/c/.releaserc.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesPackages/packages/c/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesPackages/packages/d/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesRanges/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesRanges/packages/a/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesRanges/packages/b/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesRanges/packages/c/.releaserc.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesRanges/packages/c/package.json (100%) rename {__fixtures__ => packages/multi-semantic-release/__fixtures__}/yarnWorkspacesRanges/packages/d/package.json (100%) rename {__tests__ => packages/multi-semantic-release/__tests__}/bin/cli.test.js (100%) rename {__tests__ => packages/multi-semantic-release/__tests__}/helpers/file.js (100%) rename {__tests__ => packages/multi-semantic-release/__tests__}/helpers/git.js (100%) rename {__tests__ => packages/multi-semantic-release/__tests__}/helpers/transform-path.js (100%) rename {__tests__ => packages/multi-semantic-release/__tests__}/lib/external-topo-package-paths.test.js (100%) rename {__tests__ => packages/multi-semantic-release/__tests__}/lib/get-commits-filtered.test.js (100%) rename {__tests__ => packages/multi-semantic-release/__tests__}/lib/get-config-multi-semrel.test.js (100%) rename {__tests__ => packages/multi-semantic-release/__tests__}/lib/multi-semantic-release.test.js (100%) rename {__tests__ => packages/multi-semantic-release/__tests__}/lib/resolve-release-type.test.js (100%) rename {__tests__ => packages/multi-semantic-release/__tests__}/lib/update-deps.test.js (100%) rename {__tests__ => packages/multi-semantic-release/__tests__}/lib/utils/clean-path.test.js (100%) rename {__tests__ => packages/multi-semantic-release/__tests__}/lib/utils/get-version.test.js (100%) rename {__tests__ => packages/multi-semantic-release/__tests__}/lib/utils/merge-config.test.js (100%) rename {__tests__ => packages/multi-semantic-release/__tests__}/lib/utils/recognize-format.test.js (100%) rename {__tests__ => packages/multi-semantic-release/__tests__}/lib/utils/stream-to-array.test.js (100%) rename {bin => packages/multi-semantic-release/bin}/cli.js (100%) rename {lib => packages/multi-semantic-release/lib}/create-inline-plugin-creator.js (100%) rename {lib => packages/multi-semantic-release/lib}/get-commits-filtered.js (100%) rename {lib => packages/multi-semantic-release/lib}/get-config-multi-semrel.js (100%) rename {lib => packages/multi-semantic-release/lib}/get-config-semantic.js (100%) rename {lib => packages/multi-semantic-release/lib}/get-config.js (100%) rename {lib => packages/multi-semantic-release/lib}/get-manifest.js (100%) rename {lib => packages/multi-semantic-release/lib}/logger.js (100%) rename {lib => packages/multi-semantic-release/lib}/multi-semantic-release.js (100%) rename {lib => packages/multi-semantic-release/lib}/rescoped-stream.js (100%) rename {lib => packages/multi-semantic-release/lib}/update-deps.js (100%) rename {lib => packages/multi-semantic-release/lib}/utils/blork.js (100%) rename {lib => packages/multi-semantic-release/lib}/utils/clean-path.js (100%) rename {lib => packages/multi-semantic-release/lib}/utils/get-version.js (100%) rename {lib => packages/multi-semantic-release/lib}/utils/merge-config.js (100%) rename {lib => packages/multi-semantic-release/lib}/utils/recognize-format.js (100%) rename {lib => packages/multi-semantic-release/lib}/utils/stream-to-array.js (100%) create mode 100644 packages/multi-semantic-release/package.json create mode 100644 packages/multi-semantic-release/project.json rename vitest.config.ts => packages/multi-semantic-release/vitest.config.ts (100%) create mode 100644 plop/package/.eslintignore.hbs create mode 100644 plop/package/.eslintrc.cjs.hbs create mode 100644 plop/package/.npmignore.hbs create mode 100644 plop/package/.prettierignore.hbs create mode 100644 plop/package/.prettierrc.cjs.hbs create mode 100644 plop/package/.releaserc.json.hbs create mode 100644 plop/package/.secretlintignore.hbs create mode 100644 plop/package/.secretlintrc.cjs.hbs create mode 100644 plop/package/CHANGELOG.md.hbs create mode 100644 plop/package/LICENSE.md.hbs create mode 100644 plop/package/README.md.hbs create mode 100644 plop/package/package.json.hbs create mode 100644 plop/package/project.json.hbs create mode 100644 plop/package/src/index.ts.hbs create mode 100644 plop/package/tsconfig.dev.json.hbs create mode 100644 plop/package/tsconfig.eslint.json.hbs create mode 100644 plop/package/tsconfig.json.hbs create mode 100644 plop/package/vitest.config.ts.hbs create mode 100644 plopfile.js create mode 100644 pnpm-workspace.yaml create mode 100644 tools/get-vitest-config.ts create mode 100644 tsconfig.base.json create mode 100644 tsconfig.eslint.json create mode 100644 tsconfig.json diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6777c93 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +/.yarn/** linguist-vendored diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index e69de29..90206b3 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -0,0 +1,748 @@ +# How to Contribute + +If you're reading this, you're awesome! +Thank you for being a part of the community and helping us make these projects great. +Here are a few guidelines that will help you along the way. + +## How do I... + +- [Use This Guide](#introduction)? +- Ask or Say Something? + - [Request Support](#request-support) + - [Report an Error or Bug](#report-an-error-or-bug) + - [Request a Feature](#request-a-feature) +- Make Something? + - [Your First Pull Request](#first-pull-request) + - [Project Setup](#project-setup) + - [Contribute Documentation](#contribute-documentation) + - [Contribute Code](#contribute-code) + - [Deprecation workflow](#deprecation-workflow) + - [Documenting changes for new major versions](#major-version-docs) + - [JSDocs](#js-docs) + - [Commit Message Guidelines](#committing) +- Manage Something + - [Provide Support on Issues](#provide-support-on-issues) + - [Label Issues](#label-issues) + - [Clean Up Issues and PRs](#clean-up-issues-and-prs) + - [Review Pull Requests](#review-pull-requests) + - [Merge Pull Requests](#merge-pull-requests) + - [Release process](#release process) + - [Join the Project Team](#join-the-project-team) + +## [Code of Conduct](https://github.com/anolilab/semantic-release/main/.github/CODE_OF_CONDUCT.md) + +<\**ORGANIZATIONS*uppercase\*> has adopted the [Contributor Covenant](https://www.contributor-covenant.org/) as its Code of Conduct, and we expect project participants to adhere to it. +Please read [the full text](https://github.com/anolilab/semantic-release/main/.github/CODE_OF_CONDUCT.md) so that you can understand what actions will and will not be tolerated. + +## Introduction + +Thank you so much for your interest in contributing!. All types of contributions are encouraged and valued. See the [table of contents](#toc) for different ways to help and details about how this project handles them!πŸ“ + +Please make sure to read the relevant section before making your contribution! It will make it a lot easier for us maintainers to make the most of it and smooth out the experience for all involved. πŸ’š + +The [Project Team](#join-the-project-team) looks forward to your contributions. πŸ™ŒπŸΎβœ¨ + +## Request Support + +If you have a question about this project, how to use it, or just need clarification about something: + +- First, search the issues to see if someone else already had the same problem as you. +- If not, open an GitHub Discussion at [Q&A](https://github.com/anolilab/semantic-release/discussions/categories/q-a) +- Provide as much context as you can about what you're running into. +- Provide project and platform versions (nodejs, npm, etc) you can use `npx envinfo --system --npmPackages '@anolilab/*' --binaries --browsers`, depending on what seems relevant. If not, please be ready to provide that information if maintainers ask for it. + +Once it's filed: + +- Someone will try to have a response soon. +- The project team will decide if an open discussion is a bug and will transform it to an issue. +- If you or the maintainers don't respond to an issue for 30 days, the [issue will be closed](#clean-up-issues-and-prs). If you want to come back to it, reply (once, please), and we'll reopen the existing issue. Please avoid filing new issues as extensions of one you already made. + +## Report an Error or Bug + +If you run into an error or bug with the project: + +- First, search the open issues to see if someone else already reported this error or bug. +- If it's the case, add a +1 (thumb up reaction) to the issue and reply to the thread if you have something useful to add. +- If nobody submitted this error or bug, open an issue as [Bug report](https://github.com/anolilab/semantic-release/issues/new?assignees=&labels=s%3A+pending+triage%2Cc%3A+bug&projects=&template=bug_report.yml) and follow the steps to create the report. + > Include _reproduction steps_ that someone else can follow to recreate the bug or error on their own. + +Once it's filed: + +- The project team will [label the issue](#label-issues). +- A team member will try to reproduce the issue with your provided steps. + If there are no repro steps or no obvious way to reproduce the issue, the team will ask you for those steps and mark the issue as `s: awaiting more info`. + Bugs with the `s: awaiting more info` tag will not be addressed until they are reproduced. +- If the team is able to reproduce the issue, it will be marked `p: 1-normal`, `p: 2-high` or `p: 3-urgent`, as well as possibly other tags (such as `has workaround`), and the issue will be left to be [implemented by someone](#contribute-code). +- If you or the maintainers don't respond to an issue for 30 days, the [issue will be closed](#clean-up-issues-and-prs). If you want to come back to it, reply (once, please), and we'll reopen the existing issue. Please avoid filing new issues as extensions of one you already made. +- `p: 2-high`, `p: 3-urgent`, `do NOT merge yet`, `good first issue` issues may be left open, depending on perceived immediacy and severity, even past the 30 day deadline. + +## Request a Feature + +If the project doesn't do something you need or want it to do: + +- First, search the open issues to see if someone else already requested that feature. +- If it's the case, add a +1 (thumb up reaction) to the initial request and reply to the thread if you have something meaningful to add. +- If nobody submitted this request, open an issue as [New feature proposal](https://github.com/anolilab/semantic-release/issues/new?assignees=&labels=s%3A+pending+triage%2Cc%3A+feature%2Cs%3A+waiting+for+user+interest&projects=&template=feature_request.yml) and follow the steps to create the proposal. + +Once it's filed: + +- The project team will [label the issue](#label-issues). +- The project team will evaluate the feature request, possibly asking you more questions to understand its purpose and any relevant requirements. + If the issue is closed, the team will convey their reasoning and suggest an alternative path forward. +- If the feature request is accepted, it will be marked for implementation with `s: accepted`, which can then be done by either by a core team member or by anyone in the community who wants to [contribute code](#contribute-code). + +Note: The team is unlikely to be able to accept every single feature request that is filed. Please understand if they need to say no. + +## Your First Pull Request + +Working on your first Pull Request? You can learn how from this free video series: + +[How to Contribute to an Open Source Project on GitHub](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github) + +To help you get your feet wet and get you familiar with our contribution process, we have a list of [good first issues](https://github.com/anolilab/semantic-release/issues?q=is:open+is:issue+label:%22good+first+issue%22) that contain bugs that have a relatively limited scope. +This is a great place to get started. + +If you decide to fix an issue, please be sure to check the comment thread in case somebody is already working on a fix. +If nobody is working on it at the moment, please leave a comment stating that you intend to work on it so other people don’t accidentally duplicate your effort. + +If somebody claims an issue but doesn't follow up after more than a week, it's fine to take over, but you should still leave a comment. +If there has been no activity on the issue for 7 to 14 days, then it's safe to assume that nobody is working on it. + +## Project Setup + +So you want to contribute some code! That's great! This project uses GitHub Pull Requests to manage contributions, so [read up on how to fork a GitHub project and file a PR](https://guides.github.com/activities/forking) if you've never done it before. + +If this seems like a lot, or you aren't able to do all this setup, you might also be able to [edit the files directly](https://help.github.com/articles/editing-files-in-another-user-s-repository/) without having to do any of this setup. Yes, [even code](#contribute-code). + +If you want to go the usual route and run the project locally, though: + +- [Install Node.js](https://nodejs.org/en/download/) +- [Install nvm](https://github.com/nvm-sh/nvm#installing-and-updating) (optional) + > {{ ORGANIZATIONS_capitalize_> use nvm to manage the different node version, if you don't want to install `nvm`, check the package.json -> engines -> node value for the min support node version. +- [Install pnpm](https://pnpm.io/installation) +- [Fork the project](https://guides.github.com/activities/forking/#fork) + +Then in your terminal: + +- `cd path/to/your/clone` +- `pnpm install` +- `pnpm run build:packages` +- `pnpm run test` (optional) + +And you should be ready to go! + +> If you run into any issue with the setup, check first the [TROUBLESHOOT.md](https://github.com/anolilab/semantic-release/main/.github/TROUBLESHOOT.md) + +## Contribute Documentation + +Documentation is a super important, critical part of this project. Docs are how we keep track of what we're doing, how, and why. It's how we stay on the same page about our policies. And it's how we tell others everything they need in order to be able to use this project -- or contribute to it. So thank you in advance. + +Documentation contributions of any size are welcome! Feel free to file a PR even if you're just rewording a sentence to be more clear, or fixing a spelling mistake! + +To contribute documentation: + +- [Set up the project](#project-setup). +- Edit or add any relevant documentation. +- Make sure your changes are formatted correctly and consistently with the rest of the documentation. +- Re-read what you wrote, and run a spellchecker on it to make sure you didn't miss anything. +- Write clear, concise commit message(s) using [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/). Documentation commits should use `docs(): `, visit the [Committing](#committing) section for more information. +- Go to https://github.com/<**ORGANIZATIONS**>/<**REPOSITORY_NAME**>/pulls and open a new pull request with your changes. +- If your PR is connected to an open issue, add a line in your PR's description that says `Fixes: #123`, where `#123` is the number of the issue you're fixing. + +Once you've filed the PR: + +- One or more maintainers will use GitHub's review feature to review your PR. +- If the maintainer asks for any changes, edit your changes, push, and ask for another review. +- If the maintainer decides to pass on your PR, they will thank you for the contribution and explain why they won't be accepting the changes. That's ok! We still really appreciate you taking the time to do it, and we don't take that lightly. πŸ’š +- If your PR gets accepted, it will be marked as such, and merged into the `main` branch soon after. + Your contribution will be distributed to the masses with our [release process](#release-process). + +## Contribute Code + +### Important + +> By contributing code to this project, you: +> +> - Agree that you have authored 100% of the content +> - Agree that you have the necessary rights to the content +> - Agree that you have received the necessary permissions from your employer to make the contributions (if applicable) +> - Agree that the content you contribute may be provided under the Project license(s) +> - Agree that, if you did not author 100% of the content, the appropriate licenses and copyrights have been added along with any other necessary attribution. + +We like code commits a lot! They're super handy, and they keep the project going and doing the work it needs to do to be useful to others. + +Code contributions of just about any size are acceptable! + +The main difference between code contributions and documentation contributions is that contributing code requires inclusion of relevant tests for the code being added or changed. Contributions without accompanying tests will be held off until a test is added, unless the maintainers consider the specific tests to be either impossible, or way too much of a burden for such a contribution. + +To contribute code: + +- [Set up the project](#project-setup). +- Make any necessary changes to the source code. +- Include any [additional documentation](#contribute-documentation) the changes might need. +- Write tests that verify that your contribution works as expected. +- Write clear, concise commit message(s) using [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/). +- Dependency updates, additions, or removals must be in individual commits, and the message must use the format: `(deps): PKG@VERSION`, where `` is any of the usual `conventional-changelog` prefixes, at your discretion. +- +- Go to https://github.com/<**ORGANIZATIONS**>/<**REPOSITORY_NAME**>/pulls and open a new pull request with your changes. +- If your PR is connected to an open issue, add a line in your PR's description that says `Fixes: #123`, where `#123` is the number of the issue you're fixing. + +Once you've filed the PR: + +- Barring special circumstances, maintainers will not review PRs until all checks pass. +- One or more maintainers will use GitHub's review feature to review your PR. +- If the maintainer asks for any changes, edit your changes, push, and ask for another review. Additional tags (such as `needs-tests`) will be added depending on the review. +- If the maintainer decides to pass on your PR, they will thank you for the contribution and explain why they won't be accepting the changes. That's ok! We still really appreciate you taking the time to do it, and we don't take that lightly. πŸ’š +- If your PR gets accepted, it will be marked as such, and merged into the `main` branch soon after. + Your contribution will be distributed to the masses with our [release process](#release-process). + +### Deprecation Workflow + + + +If you ever find yourself deprecating something in the source code, you can follow these steps to save yourself (and the reviewers) some trouble. + +Add a `@deprecated` parameter to the end of the JSDoc with a human-readable description message with a suitable replacement for the deprecated function. +Lastly, add a `@see` parameter to the JSDoc with a link to the replacement (if it exists). + +Example: + +```ts +/** + * @deprecated Use `new function/class` instead. + */ +``` + +### Documenting changes for new major versions + + + +Each major version has an upgrading guide `UPGRADE.md`. + +While developing new features and fixing bugs for a new release, changes are added to the migration guide to aid developers when the version is released. + +The general principle is to document anything which requires a normal user of the package to change their code, when upgrading to the new major version. + +There are two sections: + +- Breaking changes (user MUST change their code) +- Deprecations and other changes (user SHOULD change their code, but it will still work for this major version even if they don't) + +Not every change needs to be in the migration guide. If it is too long, it becomes hard for users to spot the important changes. + +### JSDocs + + + +JSDoc are comments above any code structure (variable, function, class, etc.) that begin with `/**` and end with `*/`. Multiline comments start (if not being the start or end line) with a `*`. +For more info checkout [jsdoc.app](https://jsdoc.app/about-getting-started.html). + +JSDoc will be read and automatically processed by `generate:api-docs` and therefore need to follow some project conventions. Other standards are in place because we think they increase the code quality. + +> We have a small set of JSDoc tags that all methods should have. + +- Description +- `@param` - If the method has parameters +- `@see` - If there are other important methods +- `@example` - Example calls without and with parameters, including a sample result of each call +- `@since` - The version this method was added (or is likely to be added) +- `@deprecated` - If the method is deprecated, with additional information about replacements + + + + + + + + + + +
DoDont
+ +```ts +/** + * This is a good JSDoc description for a method that generates foos. + * + * @param options The optional options to use. + * @param options.test The parameter to configure test. Defaults to `'bar'`. + * + * @see helper.fake + * + * @example + * foo() // 'foo' + * foo({ test: 'oof' }) // 'of' + * + * @since 7.5.0 + * + * @deprecated Use `random()` instead. + */ +function foo(options: { test: string } = {}): string { + // implementation +} +``` + + + +```ts +/** + * This is a bad JSDoc description. + * + * @return foo + */ +function foo(options: { test: string }) { + // implementation +} +``` + +
+ +> We use eslint-plugin-jsdoc to test for basic styling and sorting of doc-tags. + +This is in place so all JSDoc tags will get sorted automatically, so you don't have to bother with it. This also means that most rules in this section can get auto fixed by the eslint formatter. + +> JSDocs should always be multiline + +While single line JSDoc are technically valid, we decided to follow this rule since it makes changes in the git diff much more clear and easier to understand. + + + + + + + + + + +
DoDont
+ +```ts +/** + * This is a good JSDoc description. + */ +function foo() { + // implementation +} +``` + + + +```ts +/** This is a bad JSDoc description. */ +function foo() { + // implementation +} +``` + +
+ +> Everything that can be accessed directly by a user should have JSDoc. + +This rule is aimed to target anything that is exported from a package. This includes types, interfaces, functions, classes and variables. So if you introduce anything new that is not internal, write JSDoc for it. + +> If a `@param` has a default value, it needs to be mentioned at the end of the sentence. + +```ts +/** + * This is a good JSDoc description. + * + * @param bar this is a parameter description. Defaults to `0`. + */ +function foo(bar: number = 0) { + // implementation +} +``` + +> If a function can throw an error (Error) you have to include the `@throws` tag with an explanation when an error could be thrown + +```ts +/** + * This is a good JSDoc description. + * + * @param bar this is a parameter description. Defaults to `0`. + * + * @throws If bar is negative. + */ +function foo(bar: number = 0) { + // implementation +} +``` + +> Sentences should always end with a period. + +This rule ensures minimal grammatical correctness in the comments and ensures that all comments look the same. + +> Different tags have to be separated by an empty line. + +This rule improves the comments readability by grouping equivalent tags and making them more distinguishable from others. + + + + + + + + + + +
DoDont
+ +```ts +/** + * This is a good JSDoc block, because it follows the our preferences. + * + * @param bar The first argument. + * @param baz The second argument. + * + * @example foo(1, 1) // [1, 1] + * @example foo(13, 56) // [13, 56] + */ +function foo(bar: number, baz: number): [number, number] { + // implementation +} +``` + + + +```ts +/** + * This is a bad JSDoc block, because it has no linebreaks between sections. + * @param bar The first argument. + * @param baz The second argument. + * @example foo(1, 1) // [1, 1] + * @example foo(13, 56) // [13, 56] + */ +function foo(bar: number, baz: number): [number, number] { + // implementation +} +``` + +
+ +## Committing + +To ensure consistency throughout the source code, keep these rules in mind as you are working: + + + +We have very precise rules over how our Git commit messages must be formatted. +This format leads to **easier to read commit history**. + +Each commit message consists of a **header**, a **body**, and a **footer**. + +``` +
+ + + +