From 5cbd8aea5d656f75b73068dfadd19d1f20a24faa Mon Sep 17 00:00:00 2001 From: Isaac Lee <16869656+ijlee2@users.noreply.github.com> Date: Tue, 13 Aug 2024 15:11:00 +0200 Subject: [PATCH] Updated blueprints for @codemod-utils/cli (#126) * chore: Updated latestVersions * chore: Ensured that pnpm@9 is used * chore: Updated scripts * chore: Removed fixtures for steps * chore: Updated fixtures * chore: Added changeset --------- Co-authored-by: ijlee2 --- .changeset/lucky-rivers-mix.md | 5 + .../src/blueprints/.github/workflows/ci.yml | 9 +- packages/cli/src/blueprints/package.json | 14 +-- .../cli/src/utils/blueprints/get-version.ts | 34 +++--- .../.github/workflows/ci.yml | 9 +- .../package.json | 31 +++--- .../.github/workflows/ci.yml | 9 +- .../ember-codemod-pod-to-octane/package.json | 21 ++-- .../.changeset/config.json | 11 -- .../.changeset/format-changelogs.cjs | 55 ---------- .../.eslintignore | 13 --- .../.eslintrc.cjs | 47 -------- .../ask-for-better-documentation.md | 27 ----- .../ask-for-new-feature-or-refactor.md | 27 ----- .../.github/ISSUE_TEMPLATE/report-bug.md | 38 ------- .../report-outdated-dependency.md | 35 ------ .../.github/workflows/ci.yml | 62 ----------- .../.gitignore | 12 --- .../.npmignore | 25 ----- .../.prettierrc.cjs | 13 --- .../CHANGELOG.md | 1 - .../CONTRIBUTING.md | 102 ------------------ .../LICENSE.md | 9 -- .../ember-codemod-args-to-signature/README.md | 53 --------- .../bin/ember-codemod-args-to-signature.js | 24 ----- .../codemod-test-fixture.sh | 44 -------- .../codemod-test-fixtures.sh | 20 ---- .../package.json | 38 ------- .../src/blueprints/.gitkeep | 0 .../src/index.js | 8 -- .../src/steps/add-end-of-line.js | 24 ----- .../src/steps/create-options.js | 7 -- .../src/steps/index.js | 2 - .../src/utils/blueprints.js | 1 - .../src/utils/blueprints/blueprints-root.js | 7 -- .../tests/fixtures/sample-project/index.js | 6 -- .../fixtures/sample-project/input/.gitkeep | 0 .../fixtures/sample-project/output/.gitkeep | 0 .../shared-test-setups/sample-project.js | 9 -- .../tests/index/sample-project.test.js | 21 ---- .../steps/add-end-of-line/base-case.test.js | 23 ---- .../edge-case-file-ends-with-newline.test.js | 23 ---- .../edge-case-file-is-empty.test.js | 23 ---- .../create-options/sample-project.test.js | 11 -- .../utils/blueprints/blueprints-root.test.js | 7 -- .../.changeset/config.json | 11 -- .../.changeset/format-changelogs.cjs | 55 ---------- .../ember-codemod-pod-to-octane/.eslintignore | 13 --- .../ember-codemod-pod-to-octane/.eslintrc.cjs | 47 -------- .../ask-for-better-documentation.md | 27 ----- .../ask-for-new-feature-or-refactor.md | 27 ----- .../.github/ISSUE_TEMPLATE/report-bug.md | 38 ------- .../report-outdated-dependency.md | 35 ------ .../.github/workflows/ci.yml | 62 ----------- .../ember-codemod-pod-to-octane/.gitignore | 12 --- .../ember-codemod-pod-to-octane/.npmignore | 25 ----- .../.prettierrc.cjs | 13 --- .../ember-codemod-pod-to-octane/CHANGELOG.md | 1 - .../CONTRIBUTING.md | 102 ------------------ .../ember-codemod-pod-to-octane/LICENSE.md | 9 -- .../ember-codemod-pod-to-octane/README.md | 53 --------- .../bin/ember-codemod-pod-to-octane.js | 24 ----- .../codemod-test-fixture.sh | 44 -------- .../codemod-test-fixtures.sh | 20 ---- .../ember-codemod-pod-to-octane/package.json | 38 ------- .../ember-codemod-pod-to-octane/src/index.js | 8 -- .../src/steps/add-end-of-line.js | 24 ----- .../src/steps/create-options.js | 7 -- .../src/steps/index.js | 2 - .../tests/fixtures/sample-project/index.js | 6 -- .../fixtures/sample-project/input/.gitkeep | 0 .../fixtures/sample-project/output/.gitkeep | 0 .../shared-test-setups/sample-project.js | 9 -- .../tests/index/sample-project.test.js | 21 ---- .../steps/add-end-of-line/base-case.test.js | 23 ---- .../edge-case-file-ends-with-newline.test.js | 23 ---- .../edge-case-file-is-empty.test.js | 23 ---- .../create-options/sample-project.test.js | 11 -- .../.changeset/config.json | 11 -- .../.changeset/format-changelogs.cjs | 55 ---------- .../.eslintignore | 13 --- .../.eslintrc.cjs | 65 ----------- .../ask-for-better-documentation.md | 27 ----- .../ask-for-new-feature-or-refactor.md | 27 ----- .../.github/ISSUE_TEMPLATE/report-bug.md | 38 ------- .../report-outdated-dependency.md | 35 ------ .../.github/workflows/ci.yml | 62 ----------- .../.gitignore | 12 --- .../.npmignore | 25 ----- .../.prettierrc.cjs | 13 --- .../CHANGELOG.md | 1 - .../CONTRIBUTING.md | 102 ------------------ .../LICENSE.md | 9 -- .../ember-codemod-args-to-signature/README.md | 56 ---------- .../bin/ember-codemod-args-to-signature.ts | 25 ----- .../ember-codemod-args-to-signature/build.sh | 40 ------- .../codemod-test-fixture.sh | 44 -------- .../codemod-test-fixtures.sh | 20 ---- .../package.json | 40 ------- .../src/blueprints/.gitkeep | 0 .../src/index.ts | 9 -- .../src/steps/add-end-of-line.ts | 26 ----- .../src/steps/create-options.ts | 9 -- .../src/steps/index.ts | 2 - .../src/types/index.ts | 9 -- .../src/utils/blueprints.ts | 1 - .../src/utils/blueprints/blueprints-root.ts | 7 -- .../tests/fixtures/sample-project/index.ts | 6 -- .../fixtures/sample-project/input/.gitkeep | 0 .../fixtures/sample-project/output/.gitkeep | 0 .../shared-test-setups/sample-project.ts | 11 -- .../tests/index/sample-project.test.ts | 21 ---- .../steps/add-end-of-line/base-case.test.ts | 23 ---- .../edge-case-file-ends-with-newline.test.ts | 23 ---- .../edge-case-file-is-empty.test.ts | 23 ---- .../create-options/sample-project.test.ts | 11 -- .../utils/blueprints/blueprints-root.test.ts | 7 -- .../tsconfig.build.json | 13 --- .../tsconfig.json | 13 --- .../.changeset/config.json | 11 -- .../.changeset/format-changelogs.cjs | 55 ---------- .../ember-codemod-pod-to-octane/.eslintignore | 13 --- .../ember-codemod-pod-to-octane/.eslintrc.cjs | 65 ----------- .../ask-for-better-documentation.md | 27 ----- .../ask-for-new-feature-or-refactor.md | 27 ----- .../.github/ISSUE_TEMPLATE/report-bug.md | 38 ------- .../report-outdated-dependency.md | 35 ------ .../.github/workflows/ci.yml | 62 ----------- .../ember-codemod-pod-to-octane/.gitignore | 12 --- .../ember-codemod-pod-to-octane/.npmignore | 25 ----- .../.prettierrc.cjs | 13 --- .../ember-codemod-pod-to-octane/CHANGELOG.md | 1 - .../CONTRIBUTING.md | 102 ------------------ .../ember-codemod-pod-to-octane/LICENSE.md | 9 -- .../ember-codemod-pod-to-octane/README.md | 56 ---------- .../bin/ember-codemod-pod-to-octane.ts | 25 ----- .../ember-codemod-pod-to-octane/build.sh | 40 ------- .../codemod-test-fixture.sh | 44 -------- .../codemod-test-fixtures.sh | 20 ---- .../ember-codemod-pod-to-octane/package.json | 40 ------- .../ember-codemod-pod-to-octane/src/index.ts | 9 -- .../src/steps/add-end-of-line.ts | 26 ----- .../src/steps/create-options.ts | 9 -- .../src/steps/index.ts | 2 - .../src/types/index.ts | 9 -- .../tests/fixtures/sample-project/index.ts | 6 -- .../fixtures/sample-project/input/.gitkeep | 0 .../fixtures/sample-project/output/.gitkeep | 0 .../shared-test-setups/sample-project.ts | 11 -- .../tests/index/sample-project.test.ts | 21 ---- .../steps/add-end-of-line/base-case.test.ts | 23 ---- .../edge-case-file-ends-with-newline.test.ts | 23 ---- .../edge-case-file-is-empty.test.ts | 23 ---- .../create-options/sample-project.test.ts | 11 -- .../tsconfig.build.json | 13 --- .../ember-codemod-pod-to-octane/tsconfig.json | 13 --- .../package.json | 38 ------- .../package.json | 61 ----------- .../ember-codemod-pod-to-octane/package.json | 38 ------- .../ember-codemod-pod-to-octane/package.json | 56 ---------- .../package.json | 40 ------- .../package.json | 76 ------------- .../ember-codemod-pod-to-octane/package.json | 40 ------- .../ember-codemod-pod-to-octane/package.json | 71 ------------ .../.github/workflows/ci.yml | 9 +- .../package.json | 39 +++---- .../.github/workflows/ci.yml | 9 +- .../ember-codemod-pod-to-octane/package.json | 29 ++--- .../javascript-with-addons.test.ts | 26 ----- .../javascript.test.ts | 26 ----- .../typescript-with-addons.test.ts | 26 ----- .../typescript.test.ts | 26 ----- .../javascript-with-addons.test.ts | 28 ----- .../update-package-json/javascript.test.ts | 28 ----- .../typescript-with-addons.test.ts | 28 ----- .../update-package-json/typescript.test.ts | 28 ----- 176 files changed, 117 insertions(+), 4231 deletions(-) create mode 100644 .changeset/lucky-rivers-mix.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.changeset/config.json delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.changeset/format-changelogs.cjs delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.eslintignore delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.eslintrc.cjs delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/ask-for-better-documentation.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/ask-for-new-feature-or-refactor.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/report-bug.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/report-outdated-dependency.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/workflows/ci.yml delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.gitignore delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.npmignore delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.prettierrc.cjs delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/CHANGELOG.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/CONTRIBUTING.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/LICENSE.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/README.md delete mode 100755 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/bin/ember-codemod-args-to-signature.js delete mode 100755 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/codemod-test-fixture.sh delete mode 100755 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/codemod-test-fixtures.sh delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/package.json delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/blueprints/.gitkeep delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/index.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/steps/add-end-of-line.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/steps/create-options.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/steps/index.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/utils/blueprints.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/utils/blueprints/blueprints-root.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/index.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/input/.gitkeep delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/output/.gitkeep delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/helpers/shared-test-setups/sample-project.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/index/sample-project.test.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/base-case.test.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/edge-case-file-ends-with-newline.test.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/edge-case-file-is-empty.test.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/steps/create-options/sample-project.test.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/utils/blueprints/blueprints-root.test.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.changeset/config.json delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.changeset/format-changelogs.cjs delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.eslintignore delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.eslintrc.cjs delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/ask-for-better-documentation.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/ask-for-new-feature-or-refactor.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/report-bug.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/report-outdated-dependency.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/workflows/ci.yml delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.gitignore delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.npmignore delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.prettierrc.cjs delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/CHANGELOG.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/CONTRIBUTING.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/LICENSE.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/README.md delete mode 100755 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/bin/ember-codemod-pod-to-octane.js delete mode 100755 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/codemod-test-fixture.sh delete mode 100755 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/codemod-test-fixtures.sh delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/package.json delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/src/index.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/src/steps/add-end-of-line.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/src/steps/create-options.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/src/steps/index.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/index.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/input/.gitkeep delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/output/.gitkeep delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/helpers/shared-test-setups/sample-project.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/index/sample-project.test.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/base-case.test.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/edge-case-file-ends-with-newline.test.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/edge-case-file-is-empty.test.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/steps/create-options/sample-project.test.js delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.changeset/config.json delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.changeset/format-changelogs.cjs delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.eslintignore delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.eslintrc.cjs delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/ask-for-better-documentation.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/ask-for-new-feature-or-refactor.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/report-bug.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/report-outdated-dependency.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/workflows/ci.yml delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.gitignore delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.npmignore delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.prettierrc.cjs delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/CHANGELOG.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/CONTRIBUTING.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/LICENSE.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/README.md delete mode 100755 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/bin/ember-codemod-args-to-signature.ts delete mode 100755 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/build.sh delete mode 100755 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/codemod-test-fixture.sh delete mode 100755 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/codemod-test-fixtures.sh delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/package.json delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/blueprints/.gitkeep delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/index.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/steps/add-end-of-line.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/steps/create-options.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/steps/index.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/types/index.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/utils/blueprints.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/utils/blueprints/blueprints-root.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/index.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/input/.gitkeep delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/output/.gitkeep delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/helpers/shared-test-setups/sample-project.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/index/sample-project.test.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/base-case.test.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/edge-case-file-ends-with-newline.test.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/edge-case-file-is-empty.test.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/steps/create-options/sample-project.test.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/utils/blueprints/blueprints-root.test.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tsconfig.build.json delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tsconfig.json delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.changeset/config.json delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.changeset/format-changelogs.cjs delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.eslintignore delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.eslintrc.cjs delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/ask-for-better-documentation.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/ask-for-new-feature-or-refactor.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/report-bug.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/report-outdated-dependency.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/workflows/ci.yml delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.gitignore delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.npmignore delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.prettierrc.cjs delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/CHANGELOG.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/CONTRIBUTING.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/LICENSE.md delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/README.md delete mode 100755 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/bin/ember-codemod-pod-to-octane.ts delete mode 100755 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/build.sh delete mode 100755 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/codemod-test-fixture.sh delete mode 100755 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/codemod-test-fixtures.sh delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/package.json delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/index.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/steps/add-end-of-line.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/steps/create-options.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/steps/index.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/types/index.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/index.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/input/.gitkeep delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/output/.gitkeep delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/helpers/shared-test-setups/sample-project.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/index/sample-project.test.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/base-case.test.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/edge-case-file-ends-with-newline.test.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/edge-case-file-is-empty.test.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/steps/create-options/sample-project.test.ts delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tsconfig.build.json delete mode 100644 packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tsconfig.json delete mode 100644 packages/cli/tests/fixtures/steps/update-package-json/javascript-with-addons/input/ember-codemod-args-to-signature/package.json delete mode 100644 packages/cli/tests/fixtures/steps/update-package-json/javascript-with-addons/output/ember-codemod-args-to-signature/package.json delete mode 100644 packages/cli/tests/fixtures/steps/update-package-json/javascript/input/ember-codemod-pod-to-octane/package.json delete mode 100644 packages/cli/tests/fixtures/steps/update-package-json/javascript/output/ember-codemod-pod-to-octane/package.json delete mode 100644 packages/cli/tests/fixtures/steps/update-package-json/typescript-with-addons/input/ember-codemod-args-to-signature/package.json delete mode 100644 packages/cli/tests/fixtures/steps/update-package-json/typescript-with-addons/output/ember-codemod-args-to-signature/package.json delete mode 100644 packages/cli/tests/fixtures/steps/update-package-json/typescript/input/ember-codemod-pod-to-octane/package.json delete mode 100644 packages/cli/tests/fixtures/steps/update-package-json/typescript/output/ember-codemod-pod-to-octane/package.json delete mode 100644 packages/cli/tests/steps/create-files-from-blueprints/javascript-with-addons.test.ts delete mode 100644 packages/cli/tests/steps/create-files-from-blueprints/javascript.test.ts delete mode 100644 packages/cli/tests/steps/create-files-from-blueprints/typescript-with-addons.test.ts delete mode 100644 packages/cli/tests/steps/create-files-from-blueprints/typescript.test.ts delete mode 100644 packages/cli/tests/steps/update-package-json/javascript-with-addons.test.ts delete mode 100644 packages/cli/tests/steps/update-package-json/javascript.test.ts delete mode 100644 packages/cli/tests/steps/update-package-json/typescript-with-addons.test.ts delete mode 100644 packages/cli/tests/steps/update-package-json/typescript.test.ts diff --git a/.changeset/lucky-rivers-mix.md b/.changeset/lucky-rivers-mix.md new file mode 100644 index 00000000..ca13ba02 --- /dev/null +++ b/.changeset/lucky-rivers-mix.md @@ -0,0 +1,5 @@ +--- +"@codemod-utils/cli": minor +--- + +Updated dependencies and supported pnpm@9 diff --git a/packages/cli/src/blueprints/.github/workflows/ci.yml b/packages/cli/src/blueprints/.github/workflows/ci.yml index 8436dcb6..fbce4ff5 100644 --- a/packages/cli/src/blueprints/.github/workflows/ci.yml +++ b/packages/cli/src/blueprints/.github/workflows/ci.yml @@ -8,6 +8,7 @@ on: env: NODE_VERSION: 18 + PNPM_VERSION: 9 jobs: lint: @@ -19,9 +20,9 @@ jobs: uses: actions/checkout@v4 - name: Set up pnpm - uses: pnpm/action-setup@v3 + uses: pnpm/action-setup@v4 with: - version: latest + version: ${{ env.PNPM_VERSION }} - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v4 @@ -45,9 +46,9 @@ jobs: uses: actions/checkout@v4 - name: Set up pnpm - uses: pnpm/action-setup@v3 + uses: pnpm/action-setup@v4 with: - version: latest + version: ${{ env.PNPM_VERSION }} - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v4 diff --git a/packages/cli/src/blueprints/package.json b/packages/cli/src/blueprints/package.json index ce321a63..3d5bfb9a 100644 --- a/packages/cli/src/blueprints/package.json +++ b/packages/cli/src/blueprints/package.json @@ -22,8 +22,8 @@ ], "scripts": { "build": "./build.sh --production", - "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", - "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", + "lint": "concurrently 'pnpm:lint:*(!fix)' --names 'lint:'", + "lint:fix": "concurrently 'pnpm:lint:*:fix' --names 'fix:'", "lint:js": "eslint . --cache", "lint:js:fix": "eslint . --fix", "lint:types": "tsc --noEmit", @@ -35,7 +35,8 @@ "dependencies": {}, "devDependencies": {}, "engines": { - "node": "18.* || >= 20" + "node": "18.* || >= 20", + "pnpm": ">= 9" } }<% } else { %>{ "name": "<%= options.codemod.name %>", @@ -61,8 +62,8 @@ "src" ], "scripts": { - "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", - "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", + "lint": "concurrently 'pnpm:lint:*(!fix)' --names 'lint:'", + "lint:fix": "concurrently 'pnpm:lint:*:fix' --names 'fix:'", "lint:js": "eslint . --cache", "lint:js:fix": "eslint . --fix", "release:changelog": "changeset version", @@ -72,6 +73,7 @@ "dependencies": {}, "devDependencies": {}, "engines": { - "node": "18.* || >= 20" + "node": "18.* || >= 20", + "pnpm": ">= 9" } }<% } %> diff --git a/packages/cli/src/utils/blueprints/get-version.ts b/packages/cli/src/utils/blueprints/get-version.ts index 9acb5f19..f2908fe3 100644 --- a/packages/cli/src/utils/blueprints/get-version.ts +++ b/packages/cli/src/utils/blueprints/get-version.ts @@ -1,35 +1,35 @@ import { decideVersion } from '@codemod-utils/blueprints'; const latestVersions = new Map([ - ['@babel/core', '7.24.7'], - ['@babel/eslint-parser', '7.24.7'], + ['@babel/core', '7.25.2'], + ['@babel/eslint-parser', '7.25.1'], ['@changesets/cli', '2.27.7'], ['@changesets/get-github-info', '0.6.0'], - ['@codemod-utils/ast-javascript', '1.2.7'], - ['@codemod-utils/ast-template', '1.1.3'], - ['@codemod-utils/blueprints', '1.1.4'], - ['@codemod-utils/ember-cli-string', '1.1.3'], - ['@codemod-utils/files', '2.0.3'], - ['@codemod-utils/json', '1.1.8'], - ['@codemod-utils/tests', '1.1.6'], + ['@codemod-utils/ast-javascript', '1.2.8'], + ['@codemod-utils/ast-template', '1.1.4'], + ['@codemod-utils/blueprints', '1.1.5'], + ['@codemod-utils/ember-cli-string', '1.1.4'], + ['@codemod-utils/files', '2.0.4'], + ['@codemod-utils/json', '1.1.9'], + ['@codemod-utils/tests', '1.1.7'], ['@sondr3/minitest', '0.1.2'], ['@tsconfig/node18', '18.2.4'], ['@tsconfig/strictest', '2.0.5'], - ['@types/node', '18.19.39'], - ['@types/yargs', '17.0.32'], - ['@typescript-eslint/eslint-plugin', '7.16.0'], - ['@typescript-eslint/parser', '7.16.0'], + ['@types/node', '18.19.44'], + ['@types/yargs', '17.0.33'], + ['@typescript-eslint/eslint-plugin', '8.1.0'], + ['@typescript-eslint/parser', '8.1.0'], ['concurrently', '8.2.2'], ['eslint', '8.57.0'], ['eslint-config-prettier', '9.1.0'], ['eslint-import-resolver-typescript', '3.6.1'], ['eslint-plugin-import', '2.29.1'], - ['eslint-plugin-n', '17.9.0'], - ['eslint-plugin-prettier', '5.1.3'], + ['eslint-plugin-n', '17.10.2'], + ['eslint-plugin-prettier', '5.2.1'], ['eslint-plugin-simple-import-sort', '12.1.1'], ['eslint-plugin-typescript-sort-keys', '3.2.0'], - ['prettier', '3.3.2'], - ['typescript', '5.5.3'], + ['prettier', '3.3.3'], + ['typescript', '5.5.4'], ['yargs', '17.7.2'], ]); diff --git a/packages/cli/tests/fixtures/javascript-with-addons/output/ember-codemod-args-to-signature/.github/workflows/ci.yml b/packages/cli/tests/fixtures/javascript-with-addons/output/ember-codemod-args-to-signature/.github/workflows/ci.yml index 8436dcb6..fbce4ff5 100644 --- a/packages/cli/tests/fixtures/javascript-with-addons/output/ember-codemod-args-to-signature/.github/workflows/ci.yml +++ b/packages/cli/tests/fixtures/javascript-with-addons/output/ember-codemod-args-to-signature/.github/workflows/ci.yml @@ -8,6 +8,7 @@ on: env: NODE_VERSION: 18 + PNPM_VERSION: 9 jobs: lint: @@ -19,9 +20,9 @@ jobs: uses: actions/checkout@v4 - name: Set up pnpm - uses: pnpm/action-setup@v3 + uses: pnpm/action-setup@v4 with: - version: latest + version: ${{ env.PNPM_VERSION }} - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v4 @@ -45,9 +46,9 @@ jobs: uses: actions/checkout@v4 - name: Set up pnpm - uses: pnpm/action-setup@v3 + uses: pnpm/action-setup@v4 with: - version: latest + version: ${{ env.PNPM_VERSION }} - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v4 diff --git a/packages/cli/tests/fixtures/javascript-with-addons/output/ember-codemod-args-to-signature/package.json b/packages/cli/tests/fixtures/javascript-with-addons/output/ember-codemod-args-to-signature/package.json index e755f13a..ee75e591 100644 --- a/packages/cli/tests/fixtures/javascript-with-addons/output/ember-codemod-args-to-signature/package.json +++ b/packages/cli/tests/fixtures/javascript-with-addons/output/ember-codemod-args-to-signature/package.json @@ -22,8 +22,8 @@ "src" ], "scripts": { - "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", - "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", + "lint": "concurrently 'pnpm:lint:*(!fix)' --names 'lint:'", + "lint:fix": "concurrently 'pnpm:lint:*:fix' --names 'fix:'", "lint:js": "eslint . --cache", "lint:js:fix": "eslint . --fix", "release:changelog": "changeset version", @@ -31,31 +31,32 @@ "test": "mt tests --quiet" }, "dependencies": { - "@codemod-utils/ast-javascript": "^1.2.7", - "@codemod-utils/ast-template": "^1.1.3", - "@codemod-utils/blueprints": "^1.1.4", - "@codemod-utils/ember-cli-string": "^1.1.3", - "@codemod-utils/files": "^2.0.3", - "@codemod-utils/json": "^1.1.8", + "@codemod-utils/ast-javascript": "^1.2.8", + "@codemod-utils/ast-template": "^1.1.4", + "@codemod-utils/blueprints": "^1.1.5", + "@codemod-utils/ember-cli-string": "^1.1.4", + "@codemod-utils/files": "^2.0.4", + "@codemod-utils/json": "^1.1.9", "yargs": "^17.7.2" }, "devDependencies": { - "@babel/core": "^7.24.7", - "@babel/eslint-parser": "^7.24.7", + "@babel/core": "^7.25.2", + "@babel/eslint-parser": "^7.25.1", "@changesets/cli": "^2.27.7", "@changesets/get-github-info": "^0.6.0", - "@codemod-utils/tests": "^1.1.6", + "@codemod-utils/tests": "^1.1.7", "@sondr3/minitest": "^0.1.2", "concurrently": "^8.2.2", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.29.1", - "eslint-plugin-n": "^17.9.0", - "eslint-plugin-prettier": "^5.1.3", + "eslint-plugin-n": "^17.10.2", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-simple-import-sort": "^12.1.1", - "prettier": "^3.3.2" + "prettier": "^3.3.3" }, "engines": { - "node": "18.* || >= 20" + "node": "18.* || >= 20", + "pnpm": ">= 9" } } diff --git a/packages/cli/tests/fixtures/javascript/output/ember-codemod-pod-to-octane/.github/workflows/ci.yml b/packages/cli/tests/fixtures/javascript/output/ember-codemod-pod-to-octane/.github/workflows/ci.yml index 8436dcb6..fbce4ff5 100644 --- a/packages/cli/tests/fixtures/javascript/output/ember-codemod-pod-to-octane/.github/workflows/ci.yml +++ b/packages/cli/tests/fixtures/javascript/output/ember-codemod-pod-to-octane/.github/workflows/ci.yml @@ -8,6 +8,7 @@ on: env: NODE_VERSION: 18 + PNPM_VERSION: 9 jobs: lint: @@ -19,9 +20,9 @@ jobs: uses: actions/checkout@v4 - name: Set up pnpm - uses: pnpm/action-setup@v3 + uses: pnpm/action-setup@v4 with: - version: latest + version: ${{ env.PNPM_VERSION }} - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v4 @@ -45,9 +46,9 @@ jobs: uses: actions/checkout@v4 - name: Set up pnpm - uses: pnpm/action-setup@v3 + uses: pnpm/action-setup@v4 with: - version: latest + version: ${{ env.PNPM_VERSION }} - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v4 diff --git a/packages/cli/tests/fixtures/javascript/output/ember-codemod-pod-to-octane/package.json b/packages/cli/tests/fixtures/javascript/output/ember-codemod-pod-to-octane/package.json index e30663cf..74632f45 100644 --- a/packages/cli/tests/fixtures/javascript/output/ember-codemod-pod-to-octane/package.json +++ b/packages/cli/tests/fixtures/javascript/output/ember-codemod-pod-to-octane/package.json @@ -22,8 +22,8 @@ "src" ], "scripts": { - "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", - "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", + "lint": "concurrently 'pnpm:lint:*(!fix)' --names 'lint:'", + "lint:fix": "concurrently 'pnpm:lint:*:fix' --names 'fix:'", "lint:js": "eslint . --cache", "lint:js:fix": "eslint . --fix", "release:changelog": "changeset version", @@ -31,26 +31,27 @@ "test": "mt tests --quiet" }, "dependencies": { - "@codemod-utils/files": "^2.0.3", + "@codemod-utils/files": "^2.0.4", "yargs": "^17.7.2" }, "devDependencies": { - "@babel/core": "^7.24.7", - "@babel/eslint-parser": "^7.24.7", + "@babel/core": "^7.25.2", + "@babel/eslint-parser": "^7.25.1", "@changesets/cli": "^2.27.7", "@changesets/get-github-info": "^0.6.0", - "@codemod-utils/tests": "^1.1.6", + "@codemod-utils/tests": "^1.1.7", "@sondr3/minitest": "^0.1.2", "concurrently": "^8.2.2", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.29.1", - "eslint-plugin-n": "^17.9.0", - "eslint-plugin-prettier": "^5.1.3", + "eslint-plugin-n": "^17.10.2", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-simple-import-sort": "^12.1.1", - "prettier": "^3.3.2" + "prettier": "^3.3.3" }, "engines": { - "node": "18.* || >= 20" + "node": "18.* || >= 20", + "pnpm": ">= 9" } } diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.changeset/config.json b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.changeset/config.json deleted file mode 100644 index abda549c..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.changeset/config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json", - "changelog": "./format-changelogs.cjs", - "commit": false, - "fixed": [], - "linked": [], - "access": "public", - "baseBranch": "main", - "updateInternalDependencies": "patch", - "ignore": [] -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.changeset/format-changelogs.cjs b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.changeset/format-changelogs.cjs deleted file mode 100644 index da4d20ca..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.changeset/format-changelogs.cjs +++ /dev/null @@ -1,55 +0,0 @@ -const { getInfo } = require('@changesets/get-github-info'); - -const repo = '/ember-codemod-args-to-signature'; - -async function analyze(changeset) { - const { links: info } = await getInfo({ - commit: changeset.commit, - repo, - }); - - const contributor = info.user ? `(${info.user})` : undefined; - const link = info.pull ?? info.commit ?? undefined; - const summary = (changeset.summary ?? '').split('\n')[0].trim(); - - return { - contributor, - link, - summary, - }; -} - -async function summarize(changeset) { - const { contributor, link, summary } = await analyze(changeset); - - const line = [link, summary, contributor].filter(Boolean).join(' '); - - return `- ${line}`; -} - -async function getDependencyReleaseLine(changesets) { - try { - const lines = await Promise.all(changesets.map(summarize)); - - return lines.join('\n'); - } catch (error) { - console.error(`ERROR: getDependencyReleaseLine (${error.message})`); - - return ''; - } -} - -async function getReleaseLine(changeset) { - try { - return summarize(changeset); - } catch (error) { - console.error(`ERROR: getReleaseLine (${error.message})`); - - return ''; - } -} - -module.exports = { - getDependencyReleaseLine, - getReleaseLine, -}; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.eslintignore b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.eslintignore deleted file mode 100644 index 771057c8..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.eslintignore +++ /dev/null @@ -1,13 +0,0 @@ -# compiled output -/dist/ -/dist-for-testing/ -/tmp/ - -# dependencies -/node_modules/ - -# misc -!.* -.*/ -/src/blueprints/ -/tests/fixtures/ diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.eslintrc.cjs b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.eslintrc.cjs deleted file mode 100644 index 9f589b55..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.eslintrc.cjs +++ /dev/null @@ -1,47 +0,0 @@ -'use strict'; - -module.exports = { - root: true, - parser: '@babel/eslint-parser', - parserOptions: { - ecmaVersion: 'latest', - requireConfigFile: false, - sourceType: 'module', - }, - plugins: ['simple-import-sort'], - extends: [ - 'eslint:recommended', - 'plugin:import/recommended', - 'plugin:n/recommended', - 'plugin:prettier/recommended', - ], - rules: { - curly: 'error', - 'simple-import-sort/exports': 'error', - 'simple-import-sort/imports': 'error', - }, - overrides: [ - // JavaScript files - { - files: ['**/*.{cjs,js}'], - rules: { - 'import/no-duplicates': 'error', - }, - }, - // Node files - { - files: ['./.eslintrc.{cjs,js}', './.prettierrc.{cjs,js}'], - env: { - browser: false, - node: true, - }, - extends: ['plugin:n/recommended'], - }, - { - files: ['bin/**/*.{js,ts}'], - rules: { - 'n/hashbang': 'off', - }, - }, - ], -}; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/ask-for-better-documentation.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/ask-for-better-documentation.md deleted file mode 100644 index e3ec7c1d..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/ask-for-better-documentation.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: Ask for better documentation -about: Ask for better documentation -title: '' -labels: 'enhance: documentation' -assignees: '' - ---- - -Hello! Thanks for taking time to suggest how we can improve documentation. - -Here, documentation can mean a few different things, including README, code comments, and tests. Anything that will help everyone understand how to use `ember-codemod-args-to-signature`! - - -## I would like to see... 🙋‍♀️🙋‍♂️ - -A clear, concise description of what you want to happen. - - -## Why and how 💬 - -A clear, concise description of why you want something to happen and how we might be able to solve the problem. - - -## Additional context ➕ - -If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the request here. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/ask-for-new-feature-or-refactor.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/ask-for-new-feature-or-refactor.md deleted file mode 100644 index b561c5fd..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/ask-for-new-feature-or-refactor.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: Ask for new feature or refactor -about: Ask for new feature or refactor -title: '' -labels: 'enhance: code' -assignees: '' - ---- - -Hello! Thanks for taking time to suggest how we can improve `ember-codemod-args-to-signature`. - -Before you make a new issue, please search for similar issues. It's possible that someone has made a request already. - - -## I would like to see... 🙋‍♀️🙋‍♂️ - -A clear, concise description of what you want to happen. - - -## Why and how 💬 - -A clear, concise description of why you want something to happen and how we might be able to solve the problem. - - -## Additional context ➕ - -If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the request here. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/report-bug.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/report-bug.md deleted file mode 100644 index 140b92c9..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/report-bug.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: Report bug -about: Report bug -title: '' -labels: bug -assignees: '' - ---- - -Hello! Thanks for taking time to make a bug report. - -Before you make a new issue, please search for similar issues. It's possible that someone has reported this bug already. - - -## Describe the bug 🐞 - -A clear and concise description of the bug. - - -## Expected behavior 🤔 - -A clear and concise description of what you expected to see. - - -## Minimal reproduction 🔬 - -Describe steps to reproduce the issue. - -1. ... -1. ... -1. ... - -If possible, please share a repo with the minimum files to reproduce the issue. - - -## Additional context ➕ - -If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the problem here. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/report-outdated-dependency.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/report-outdated-dependency.md deleted file mode 100644 index 3fb22da0..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/report-outdated-dependency.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -name: Report outdated dependency -about: Report outdated dependency -title: '' -labels: 'enhance: dependency' -assignees: '' - ---- - -Hello! Thanks for taking time to make an outdated dependency report. - -Before you make a new issue, please search for similar issues. It's possible that someone has made a request for update already. - - -## List outdated dependencies 🔗 - -When you ran `pnpm outdated`, what did you see? - -```sh -┌────────────────────────┬─────────┬────────┐ -│ Package │ Current │ Latest │ -├────────────────────────┼─────────┼────────┤ -│ @sondr3/minitest (dev) │ 0.1.1 │ 0.1.2 │ -└────────────────────────┴─────────┴────────┘ -``` - - -## Risk analysis ⚠️ - -Are there breaking changes that we should be aware of? Please add links to the `CHANGELOG`s, if they are available. - - -## Additional context ➕ - -If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the problem here. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/workflows/ci.yml b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/workflows/ci.yml deleted file mode 100644 index 8436dcb6..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.github/workflows/ci.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: CI - -on: - push: - branches: - - main - pull_request: - -env: - NODE_VERSION: 18 - -jobs: - lint: - name: Lint - runs-on: ubuntu-latest - timeout-minutes: 5 - steps: - - name: Check out a copy of the repo - uses: actions/checkout@v4 - - - name: Set up pnpm - uses: pnpm/action-setup@v3 - with: - version: latest - - - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v4 - with: - cache: 'pnpm' - node-version: ${{ env.NODE_VERSION }} - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Lint - run: pnpm lint - - - test: - name: Test - runs-on: ubuntu-latest - timeout-minutes: 5 - steps: - - name: Check out a copy of the repo - uses: actions/checkout@v4 - - - name: Set up pnpm - uses: pnpm/action-setup@v3 - with: - version: latest - - - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v4 - with: - cache: 'pnpm' - node-version: ${{ env.NODE_VERSION }} - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Test - run: pnpm test diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.gitignore b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.gitignore deleted file mode 100644 index cc33aa0e..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ -# compiled output -dist/ -dist-for-testing/ -tmp/ - -# dependencies -node_modules/ - -# misc -.DS_Store -.env* -.eslintcache diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.npmignore b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.npmignore deleted file mode 100644 index fc33b3b8..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.npmignore +++ /dev/null @@ -1,25 +0,0 @@ -# compiled output -/dist-for-testing/ -/tmp/ - -# dependencies -/node_modules/ - -# misc -/.DS_Store -/.env* -/.eslintcache -/.eslintignore -/.eslintrc.cjs -/.git/ -/.github/ -/.gitignore -/.pnpm-debug.log -/.prettierignore -/.prettierrc.cjs -/build.sh -/codemod-test-fixture.sh -/codemod-test-fixtures.sh -/CONTRIBUTING.md -/create-test-fixture.sh -/tests/ diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.prettierrc.cjs b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.prettierrc.cjs deleted file mode 100644 index 73e00c88..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/.prettierrc.cjs +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -module.exports = { - overrides: [ - { - files: '*.{cjs,js,mjs}', - options: { - printWidth: 80, - singleQuote: true, - }, - }, - ], -}; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/CHANGELOG.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/CHANGELOG.md deleted file mode 100644 index 825c32f0..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/CHANGELOG.md +++ /dev/null @@ -1 +0,0 @@ -# Changelog diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/CONTRIBUTING.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/CONTRIBUTING.md deleted file mode 100644 index 5ba03103..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/CONTRIBUTING.md +++ /dev/null @@ -1,102 +0,0 @@ -# Contributing to ember-codemod-args-to-signature - -Open source projects like `ember-codemod-args-to-signature` live on your words of encouragement and contribution. Please give feedback, report issues, or submit pull requests! - -Here are some guidelines to help you and everyone else. - - -## Local development - -
- -Install dependencies - -1. Fork and clone this repo. - - ```sh - git clone git@github.com:/ember-codemod-args-to-signature.git - ``` - -1. Change directory. - - ```sh - cd ember-codemod-args-to-signature - ``` - -1. Use [`pnpm`](https://pnpm.io/installation) to install dependencies. - - ```sh - pnpm install - ``` - -
- - -
- -Lint files - -1. When you write code, please check that it meets the linting rules. - - ```sh - pnpm lint - ``` - -1. You can run `lint:fix` to automatically fix linting errors. - - ```sh - pnpm lint:fix - ``` - -
- - -
- -Run tests - -1. When you write code, please check that all tests continue to pass. - - ```sh - pnpm test - ``` - -
- - -
- -Add changeset to pull request - -1. To record how a pull request affects packages, you will want to add a changeset. - - The changeset provides a summary of the code change. It also describes how package versions should be updated (major, minor, or patch) as a result of the code change. - - ```sh - pnpm changeset - ``` - -
- - -
- -Publish package (for admins) - -1. Generate a [personal access token](https://github.com/settings/tokens/) in GitHub, with `repo` and `read:user` scopes enabled. - -1. Run the `release:changelog` script. This removes changesets, updates the package version, and updates the `CHANGELOG`. - - ```sh - GITHUB_TOKEN= pnpm release:changelog - ``` - -1. [Create a tag](https://github.com//ember-codemod-args-to-signature/releases/new) and provide release notes. The tag name should match the package version. - -1. Publish the package. - - ```sh - pnpm release:publish - ``` - -
diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/LICENSE.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/LICENSE.md deleted file mode 100644 index ff84a5be..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/LICENSE.md +++ /dev/null @@ -1,9 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2024 - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/README.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/README.md deleted file mode 100644 index 9ed92ee8..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/README.md +++ /dev/null @@ -1,53 +0,0 @@ -[![This project uses GitHub Actions for continuous integration.](https://github.com//ember-codemod-args-to-signature/actions/workflows/ci.yml/badge.svg)](https://github.com//ember-codemod-args-to-signature/actions/workflows/ci.yml) - -# ember-codemod-args-to-signature - -_Codemod to [PROVIDE A SHORT DESCRIPTION.]_ - - -## Usage - -### Arguments - -[PROVIDE REQUIRED AND OPTIONAL ARGUMENTS.] - -
- -Optional: Specify the project root - -Pass `--root` to run the codemod somewhere else (i.e. not in the current directory). - -```sh -npx ember-codemod-args-to-signature --root -``` - -
- - -### Limitations - -The codemod is designed to cover typical cases. It is not designed to cover one-off cases. - -To better meet your needs, consider cloning the repo and running the codemod locally. - -```sh -cd - -# Run codemod -./bin/ember-codemod-args-to-signature.js --root -``` - - -## Compatibility - -- Node.js v18 or above - - -## Contributing - -See the [Contributing](CONTRIBUTING.md) guide for details. - - -## License - -This project is licensed under the [MIT License](LICENSE.md). diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/bin/ember-codemod-args-to-signature.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/bin/ember-codemod-args-to-signature.js deleted file mode 100755 index 09994389..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/bin/ember-codemod-args-to-signature.js +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env node -'use strict'; - -import yargs from 'yargs'; -import { hideBin } from 'yargs/helpers'; - -import { runCodemod } from '../src/index.js'; - -// Provide a title to the process in `ps` -process.title = 'ember-codemod-args-to-signature'; - -// Set codemod options -const argv = yargs(hideBin(process.argv)) - .option('root', { - describe: 'Where to run the codemod', - type: 'string', - }) - .parseSync(); - -const codemodOptions = { - projectRoot: argv['root'] ?? process.cwd(), -}; - -runCodemod(codemodOptions); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/codemod-test-fixture.sh b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/codemod-test-fixture.sh deleted file mode 100755 index a78a4ae9..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/codemod-test-fixture.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env sh - -#---------- -# -# A. Purpose -# -# Fix the expected output of a test fixture after updating the source code. -# -# B. Usage -# -# For named arguments, do not include `=` between the flag and the value. -# Positional arguments are to appear at the end. -# -# ./codemod-test-fixture.sh [OPTIONAL-FLAGS] -# -#--------- - -# Get named arguments for the binary -while getopts ":N:" flag -do - case $flag in - N) NAMED_ARGUMENTS=$OPTARG;; - esac -done - -# Get fixture name -FIXTURE=${@:$OPTIND:1} - -if [ ! $FIXTURE ] -then - echo "ERROR: Please specify the fixture name.\n" - exit 1 -elif [ ! -d "tests/fixtures/$FIXTURE/input" ] -then - echo "ERROR: Input folder \`tests/fixtures/$FIXTURE/input\` does not exist.\n" - exit 1 -fi - -rm -r "tests/fixtures/$FIXTURE/output" -cp -r "tests/fixtures/$FIXTURE/input" "tests/fixtures/$FIXTURE/output" - -./dist/bin/ember-codemod-args-to-signature.js $NAMED_ARGUMENTS --root="tests/fixtures/$FIXTURE/output" - -echo "SUCCESS: Updated the output of $FIXTURE.\n" diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/codemod-test-fixtures.sh b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/codemod-test-fixtures.sh deleted file mode 100755 index 6b06b5f0..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/codemod-test-fixtures.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env sh - -#---------- -# -# A. Purpose -# -# Fix all test fixtures after updating the source code. -# -# B. Usage -# -# ./codemod-test-fixtures.sh -# -#--------- - -# Compile TypeScript -# pnpm build - -./codemod-test-fixture.sh \ - -N "" \ - sample-project diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/package.json b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/package.json deleted file mode 100644 index be89ea67..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "ember-codemod-args-to-signature", - "version": "0.0.0", - "private": true, - "description": "Small description for ember-codemod-args-to-signature goes here", - "keywords": [ - "codemod", - "ember-codemod", - "emberjs" - ], - "repository": "", - "license": "MIT", - "author": "", - "type": "module", - "main": "src/index.js", - "bin": "bin/ember-codemod-args-to-signature.js", - "directories": { - "test": "tests" - }, - "files": [ - "bin", - "src" - ], - "scripts": { - "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", - "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", - "lint:js": "eslint . --cache", - "lint:js:fix": "eslint . --fix", - "release:changelog": "changeset version", - "release:publish": "changeset publish", - "test": "mt tests --quiet" - }, - "dependencies": {}, - "devDependencies": {}, - "engines": { - "node": "18.* || >= 20" - } -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/blueprints/.gitkeep b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/blueprints/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/index.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/index.js deleted file mode 100644 index 86600b69..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import { addEndOfLine, createOptions } from './steps/index.js'; - -export function runCodemod(codemodOptions) { - const options = createOptions(codemodOptions); - - // TODO: Replace with actual steps - addEndOfLine(options); -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/steps/add-end-of-line.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/steps/add-end-of-line.js deleted file mode 100644 index c7e4f10e..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/steps/add-end-of-line.js +++ /dev/null @@ -1,24 +0,0 @@ -import { readFileSync } from 'node:fs'; -import { join } from 'node:path'; - -import { createFiles, findFiles } from '@codemod-utils/files'; - -export function addEndOfLine(options) { - const { projectRoot } = options; - - const filePaths = findFiles('**/*.txt', { - projectRoot, - }); - - const fileMap = new Map( - filePaths.map((filePath) => { - const file = readFileSync(join(projectRoot, filePath), 'utf8'); - - const newFile = file.endsWith('\n') ? file : `${file}\n`; - - return [filePath, newFile]; - }), - ); - - createFiles(fileMap, options); -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/steps/create-options.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/steps/create-options.js deleted file mode 100644 index ef6336db..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/steps/create-options.js +++ /dev/null @@ -1,7 +0,0 @@ -export function createOptions(codemodOptions) { - const { projectRoot } = codemodOptions; - - return { - projectRoot, - }; -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/steps/index.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/steps/index.js deleted file mode 100644 index 5435fe02..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/steps/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from './add-end-of-line.js'; -export * from './create-options.js'; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/utils/blueprints.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/utils/blueprints.js deleted file mode 100644 index 1e540879..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/utils/blueprints.js +++ /dev/null @@ -1 +0,0 @@ -export * from './blueprints/blueprints-root.js'; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/utils/blueprints/blueprints-root.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/utils/blueprints/blueprints-root.js deleted file mode 100644 index 237d2fb9..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/src/utils/blueprints/blueprints-root.js +++ /dev/null @@ -1,7 +0,0 @@ -import { join } from 'node:path'; - -import { getFilePath } from '@codemod-utils/blueprints'; - -const fileURL = import.meta.url; - -export const blueprintsRoot = join(getFilePath(fileURL), '../../blueprints'); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/index.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/index.js deleted file mode 100644 index a8a96766..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/index.js +++ /dev/null @@ -1,6 +0,0 @@ -import { convertFixtureToJson } from '@codemod-utils/tests'; - -const inputProject = convertFixtureToJson('sample-project/input'); -const outputProject = convertFixtureToJson('sample-project/output'); - -export { inputProject, outputProject }; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/input/.gitkeep b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/input/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/output/.gitkeep b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/output/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/helpers/shared-test-setups/sample-project.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/helpers/shared-test-setups/sample-project.js deleted file mode 100644 index 8b286802..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/helpers/shared-test-setups/sample-project.js +++ /dev/null @@ -1,9 +0,0 @@ -const codemodOptions = { - projectRoot: 'tmp/sample-project', -}; - -const options = { - projectRoot: 'tmp/sample-project', -}; - -export { codemodOptions, options }; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/index/sample-project.test.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/index/sample-project.test.js deleted file mode 100644 index 7a97215f..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/index/sample-project.test.js +++ /dev/null @@ -1,21 +0,0 @@ -import { assertFixture, loadFixture, test } from '@codemod-utils/tests'; - -import { runCodemod } from '../../src/index.js'; -import { - inputProject, - outputProject, -} from '../fixtures/sample-project/index.js'; -import { codemodOptions } from '../helpers/shared-test-setups/sample-project.js'; - -test('index > sample-project', function () { - loadFixture(inputProject, codemodOptions); - - runCodemod(codemodOptions); - - assertFixture(outputProject, codemodOptions); - - // Check idempotence - runCodemod(codemodOptions); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/base-case.test.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/base-case.test.js deleted file mode 100644 index cf5dfe06..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/base-case.test.js +++ /dev/null @@ -1,23 +0,0 @@ -import { assertFixture, loadFixture, test } from '@codemod-utils/tests'; - -import { addEndOfLine } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/sample-project.js'; - -test('steps | add-end-of-line > base case', function () { - const inputProject = { - 'file.txt': 'Hello world!', - }; - - const outputProject = { - 'file.txt': 'Hello world!\n', - }; - - loadFixture(inputProject, codemodOptions); - - addEndOfLine(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/edge-case-file-ends-with-newline.test.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/edge-case-file-ends-with-newline.test.js deleted file mode 100644 index 2340e587..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/edge-case-file-ends-with-newline.test.js +++ /dev/null @@ -1,23 +0,0 @@ -import { assertFixture, loadFixture, test } from '@codemod-utils/tests'; - -import { addEndOfLine } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/sample-project.js'; - -test('steps | add-end-of-line > edge case (file ends with newline)', function () { - const inputProject = { - 'file.txt': 'Hello world!\n', - }; - - const outputProject = { - 'file.txt': 'Hello world!\n', - }; - - loadFixture(inputProject, codemodOptions); - - addEndOfLine(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/edge-case-file-is-empty.test.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/edge-case-file-is-empty.test.js deleted file mode 100644 index 218b3c4e..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/edge-case-file-is-empty.test.js +++ /dev/null @@ -1,23 +0,0 @@ -import { assertFixture, loadFixture, test } from '@codemod-utils/tests'; - -import { addEndOfLine } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/sample-project.js'; - -test('steps | add-end-of-line > edge case (file is empty)', function () { - const inputProject = { - 'file.txt': '', - }; - - const outputProject = { - 'file.txt': '\n', - }; - - loadFixture(inputProject, codemodOptions); - - addEndOfLine(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/steps/create-options/sample-project.test.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/steps/create-options/sample-project.test.js deleted file mode 100644 index fbfe0291..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/steps/create-options/sample-project.test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { assert, test } from '@codemod-utils/tests'; - -import { createOptions } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/sample-project.js'; - -test('steps | create-options > sample-project', function () { - assert.deepStrictEqual(createOptions(codemodOptions), options); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/utils/blueprints/blueprints-root.test.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/utils/blueprints/blueprints-root.test.js deleted file mode 100644 index df5ed4f0..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript-with-addons/output/ember-codemod-args-to-signature/tests/utils/blueprints/blueprints-root.test.js +++ /dev/null @@ -1,7 +0,0 @@ -import { assert, test } from '@codemod-utils/tests'; - -import { blueprintsRoot } from '../../../src/utils/blueprints.js'; - -test('utils | blueprints | blueprints-root', function () { - assert.strictEqual(blueprintsRoot.endsWith('src/blueprints'), true); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.changeset/config.json b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.changeset/config.json deleted file mode 100644 index abda549c..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.changeset/config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json", - "changelog": "./format-changelogs.cjs", - "commit": false, - "fixed": [], - "linked": [], - "access": "public", - "baseBranch": "main", - "updateInternalDependencies": "patch", - "ignore": [] -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.changeset/format-changelogs.cjs b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.changeset/format-changelogs.cjs deleted file mode 100644 index 57cbc075..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.changeset/format-changelogs.cjs +++ /dev/null @@ -1,55 +0,0 @@ -const { getInfo } = require('@changesets/get-github-info'); - -const repo = '/ember-codemod-pod-to-octane'; - -async function analyze(changeset) { - const { links: info } = await getInfo({ - commit: changeset.commit, - repo, - }); - - const contributor = info.user ? `(${info.user})` : undefined; - const link = info.pull ?? info.commit ?? undefined; - const summary = (changeset.summary ?? '').split('\n')[0].trim(); - - return { - contributor, - link, - summary, - }; -} - -async function summarize(changeset) { - const { contributor, link, summary } = await analyze(changeset); - - const line = [link, summary, contributor].filter(Boolean).join(' '); - - return `- ${line}`; -} - -async function getDependencyReleaseLine(changesets) { - try { - const lines = await Promise.all(changesets.map(summarize)); - - return lines.join('\n'); - } catch (error) { - console.error(`ERROR: getDependencyReleaseLine (${error.message})`); - - return ''; - } -} - -async function getReleaseLine(changeset) { - try { - return summarize(changeset); - } catch (error) { - console.error(`ERROR: getReleaseLine (${error.message})`); - - return ''; - } -} - -module.exports = { - getDependencyReleaseLine, - getReleaseLine, -}; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.eslintignore b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.eslintignore deleted file mode 100644 index 771057c8..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.eslintignore +++ /dev/null @@ -1,13 +0,0 @@ -# compiled output -/dist/ -/dist-for-testing/ -/tmp/ - -# dependencies -/node_modules/ - -# misc -!.* -.*/ -/src/blueprints/ -/tests/fixtures/ diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.eslintrc.cjs b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.eslintrc.cjs deleted file mode 100644 index 9f589b55..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.eslintrc.cjs +++ /dev/null @@ -1,47 +0,0 @@ -'use strict'; - -module.exports = { - root: true, - parser: '@babel/eslint-parser', - parserOptions: { - ecmaVersion: 'latest', - requireConfigFile: false, - sourceType: 'module', - }, - plugins: ['simple-import-sort'], - extends: [ - 'eslint:recommended', - 'plugin:import/recommended', - 'plugin:n/recommended', - 'plugin:prettier/recommended', - ], - rules: { - curly: 'error', - 'simple-import-sort/exports': 'error', - 'simple-import-sort/imports': 'error', - }, - overrides: [ - // JavaScript files - { - files: ['**/*.{cjs,js}'], - rules: { - 'import/no-duplicates': 'error', - }, - }, - // Node files - { - files: ['./.eslintrc.{cjs,js}', './.prettierrc.{cjs,js}'], - env: { - browser: false, - node: true, - }, - extends: ['plugin:n/recommended'], - }, - { - files: ['bin/**/*.{js,ts}'], - rules: { - 'n/hashbang': 'off', - }, - }, - ], -}; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/ask-for-better-documentation.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/ask-for-better-documentation.md deleted file mode 100644 index 4296e54f..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/ask-for-better-documentation.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: Ask for better documentation -about: Ask for better documentation -title: '' -labels: 'enhance: documentation' -assignees: '' - ---- - -Hello! Thanks for taking time to suggest how we can improve documentation. - -Here, documentation can mean a few different things, including README, code comments, and tests. Anything that will help everyone understand how to use `ember-codemod-pod-to-octane`! - - -## I would like to see... 🙋‍♀️🙋‍♂️ - -A clear, concise description of what you want to happen. - - -## Why and how 💬 - -A clear, concise description of why you want something to happen and how we might be able to solve the problem. - - -## Additional context ➕ - -If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the request here. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/ask-for-new-feature-or-refactor.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/ask-for-new-feature-or-refactor.md deleted file mode 100644 index d4d18a4a..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/ask-for-new-feature-or-refactor.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: Ask for new feature or refactor -about: Ask for new feature or refactor -title: '' -labels: 'enhance: code' -assignees: '' - ---- - -Hello! Thanks for taking time to suggest how we can improve `ember-codemod-pod-to-octane`. - -Before you make a new issue, please search for similar issues. It's possible that someone has made a request already. - - -## I would like to see... 🙋‍♀️🙋‍♂️ - -A clear, concise description of what you want to happen. - - -## Why and how 💬 - -A clear, concise description of why you want something to happen and how we might be able to solve the problem. - - -## Additional context ➕ - -If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the request here. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/report-bug.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/report-bug.md deleted file mode 100644 index 140b92c9..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/report-bug.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: Report bug -about: Report bug -title: '' -labels: bug -assignees: '' - ---- - -Hello! Thanks for taking time to make a bug report. - -Before you make a new issue, please search for similar issues. It's possible that someone has reported this bug already. - - -## Describe the bug 🐞 - -A clear and concise description of the bug. - - -## Expected behavior 🤔 - -A clear and concise description of what you expected to see. - - -## Minimal reproduction 🔬 - -Describe steps to reproduce the issue. - -1. ... -1. ... -1. ... - -If possible, please share a repo with the minimum files to reproduce the issue. - - -## Additional context ➕ - -If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the problem here. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/report-outdated-dependency.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/report-outdated-dependency.md deleted file mode 100644 index 3fb22da0..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/report-outdated-dependency.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -name: Report outdated dependency -about: Report outdated dependency -title: '' -labels: 'enhance: dependency' -assignees: '' - ---- - -Hello! Thanks for taking time to make an outdated dependency report. - -Before you make a new issue, please search for similar issues. It's possible that someone has made a request for update already. - - -## List outdated dependencies 🔗 - -When you ran `pnpm outdated`, what did you see? - -```sh -┌────────────────────────┬─────────┬────────┐ -│ Package │ Current │ Latest │ -├────────────────────────┼─────────┼────────┤ -│ @sondr3/minitest (dev) │ 0.1.1 │ 0.1.2 │ -└────────────────────────┴─────────┴────────┘ -``` - - -## Risk analysis ⚠️ - -Are there breaking changes that we should be aware of? Please add links to the `CHANGELOG`s, if they are available. - - -## Additional context ➕ - -If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the problem here. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/workflows/ci.yml b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/workflows/ci.yml deleted file mode 100644 index 8436dcb6..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.github/workflows/ci.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: CI - -on: - push: - branches: - - main - pull_request: - -env: - NODE_VERSION: 18 - -jobs: - lint: - name: Lint - runs-on: ubuntu-latest - timeout-minutes: 5 - steps: - - name: Check out a copy of the repo - uses: actions/checkout@v4 - - - name: Set up pnpm - uses: pnpm/action-setup@v3 - with: - version: latest - - - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v4 - with: - cache: 'pnpm' - node-version: ${{ env.NODE_VERSION }} - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Lint - run: pnpm lint - - - test: - name: Test - runs-on: ubuntu-latest - timeout-minutes: 5 - steps: - - name: Check out a copy of the repo - uses: actions/checkout@v4 - - - name: Set up pnpm - uses: pnpm/action-setup@v3 - with: - version: latest - - - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v4 - with: - cache: 'pnpm' - node-version: ${{ env.NODE_VERSION }} - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Test - run: pnpm test diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.gitignore b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.gitignore deleted file mode 100644 index cc33aa0e..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ -# compiled output -dist/ -dist-for-testing/ -tmp/ - -# dependencies -node_modules/ - -# misc -.DS_Store -.env* -.eslintcache diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.npmignore b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.npmignore deleted file mode 100644 index fc33b3b8..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.npmignore +++ /dev/null @@ -1,25 +0,0 @@ -# compiled output -/dist-for-testing/ -/tmp/ - -# dependencies -/node_modules/ - -# misc -/.DS_Store -/.env* -/.eslintcache -/.eslintignore -/.eslintrc.cjs -/.git/ -/.github/ -/.gitignore -/.pnpm-debug.log -/.prettierignore -/.prettierrc.cjs -/build.sh -/codemod-test-fixture.sh -/codemod-test-fixtures.sh -/CONTRIBUTING.md -/create-test-fixture.sh -/tests/ diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.prettierrc.cjs b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.prettierrc.cjs deleted file mode 100644 index 73e00c88..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/.prettierrc.cjs +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -module.exports = { - overrides: [ - { - files: '*.{cjs,js,mjs}', - options: { - printWidth: 80, - singleQuote: true, - }, - }, - ], -}; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/CHANGELOG.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/CHANGELOG.md deleted file mode 100644 index 825c32f0..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/CHANGELOG.md +++ /dev/null @@ -1 +0,0 @@ -# Changelog diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/CONTRIBUTING.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/CONTRIBUTING.md deleted file mode 100644 index d4ba38c7..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/CONTRIBUTING.md +++ /dev/null @@ -1,102 +0,0 @@ -# Contributing to ember-codemod-pod-to-octane - -Open source projects like `ember-codemod-pod-to-octane` live on your words of encouragement and contribution. Please give feedback, report issues, or submit pull requests! - -Here are some guidelines to help you and everyone else. - - -## Local development - -
- -Install dependencies - -1. Fork and clone this repo. - - ```sh - git clone git@github.com:/ember-codemod-pod-to-octane.git - ``` - -1. Change directory. - - ```sh - cd ember-codemod-pod-to-octane - ``` - -1. Use [`pnpm`](https://pnpm.io/installation) to install dependencies. - - ```sh - pnpm install - ``` - -
- - -
- -Lint files - -1. When you write code, please check that it meets the linting rules. - - ```sh - pnpm lint - ``` - -1. You can run `lint:fix` to automatically fix linting errors. - - ```sh - pnpm lint:fix - ``` - -
- - -
- -Run tests - -1. When you write code, please check that all tests continue to pass. - - ```sh - pnpm test - ``` - -
- - -
- -Add changeset to pull request - -1. To record how a pull request affects packages, you will want to add a changeset. - - The changeset provides a summary of the code change. It also describes how package versions should be updated (major, minor, or patch) as a result of the code change. - - ```sh - pnpm changeset - ``` - -
- - -
- -Publish package (for admins) - -1. Generate a [personal access token](https://github.com/settings/tokens/) in GitHub, with `repo` and `read:user` scopes enabled. - -1. Run the `release:changelog` script. This removes changesets, updates the package version, and updates the `CHANGELOG`. - - ```sh - GITHUB_TOKEN= pnpm release:changelog - ``` - -1. [Create a tag](https://github.com//ember-codemod-pod-to-octane/releases/new) and provide release notes. The tag name should match the package version. - -1. Publish the package. - - ```sh - pnpm release:publish - ``` - -
diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/LICENSE.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/LICENSE.md deleted file mode 100644 index ff84a5be..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/LICENSE.md +++ /dev/null @@ -1,9 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2024 - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/README.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/README.md deleted file mode 100644 index 57beb1ed..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/README.md +++ /dev/null @@ -1,53 +0,0 @@ -[![This project uses GitHub Actions for continuous integration.](https://github.com//ember-codemod-pod-to-octane/actions/workflows/ci.yml/badge.svg)](https://github.com//ember-codemod-pod-to-octane/actions/workflows/ci.yml) - -# ember-codemod-pod-to-octane - -_Codemod to [PROVIDE A SHORT DESCRIPTION.]_ - - -## Usage - -### Arguments - -[PROVIDE REQUIRED AND OPTIONAL ARGUMENTS.] - -
- -Optional: Specify the project root - -Pass `--root` to run the codemod somewhere else (i.e. not in the current directory). - -```sh -npx ember-codemod-pod-to-octane --root -``` - -
- - -### Limitations - -The codemod is designed to cover typical cases. It is not designed to cover one-off cases. - -To better meet your needs, consider cloning the repo and running the codemod locally. - -```sh -cd - -# Run codemod -./bin/ember-codemod-pod-to-octane.js --root -``` - - -## Compatibility - -- Node.js v18 or above - - -## Contributing - -See the [Contributing](CONTRIBUTING.md) guide for details. - - -## License - -This project is licensed under the [MIT License](LICENSE.md). diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/bin/ember-codemod-pod-to-octane.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/bin/ember-codemod-pod-to-octane.js deleted file mode 100755 index 43259143..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/bin/ember-codemod-pod-to-octane.js +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env node -'use strict'; - -import yargs from 'yargs'; -import { hideBin } from 'yargs/helpers'; - -import { runCodemod } from '../src/index.js'; - -// Provide a title to the process in `ps` -process.title = 'ember-codemod-pod-to-octane'; - -// Set codemod options -const argv = yargs(hideBin(process.argv)) - .option('root', { - describe: 'Where to run the codemod', - type: 'string', - }) - .parseSync(); - -const codemodOptions = { - projectRoot: argv['root'] ?? process.cwd(), -}; - -runCodemod(codemodOptions); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/codemod-test-fixture.sh b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/codemod-test-fixture.sh deleted file mode 100755 index 57ceb336..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/codemod-test-fixture.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env sh - -#---------- -# -# A. Purpose -# -# Fix the expected output of a test fixture after updating the source code. -# -# B. Usage -# -# For named arguments, do not include `=` between the flag and the value. -# Positional arguments are to appear at the end. -# -# ./codemod-test-fixture.sh [OPTIONAL-FLAGS] -# -#--------- - -# Get named arguments for the binary -while getopts ":N:" flag -do - case $flag in - N) NAMED_ARGUMENTS=$OPTARG;; - esac -done - -# Get fixture name -FIXTURE=${@:$OPTIND:1} - -if [ ! $FIXTURE ] -then - echo "ERROR: Please specify the fixture name.\n" - exit 1 -elif [ ! -d "tests/fixtures/$FIXTURE/input" ] -then - echo "ERROR: Input folder \`tests/fixtures/$FIXTURE/input\` does not exist.\n" - exit 1 -fi - -rm -r "tests/fixtures/$FIXTURE/output" -cp -r "tests/fixtures/$FIXTURE/input" "tests/fixtures/$FIXTURE/output" - -./dist/bin/ember-codemod-pod-to-octane.js $NAMED_ARGUMENTS --root="tests/fixtures/$FIXTURE/output" - -echo "SUCCESS: Updated the output of $FIXTURE.\n" diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/codemod-test-fixtures.sh b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/codemod-test-fixtures.sh deleted file mode 100755 index 6b06b5f0..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/codemod-test-fixtures.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env sh - -#---------- -# -# A. Purpose -# -# Fix all test fixtures after updating the source code. -# -# B. Usage -# -# ./codemod-test-fixtures.sh -# -#--------- - -# Compile TypeScript -# pnpm build - -./codemod-test-fixture.sh \ - -N "" \ - sample-project diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/package.json b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/package.json deleted file mode 100644 index 22d80b6c..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "ember-codemod-pod-to-octane", - "version": "0.0.0", - "private": true, - "description": "Small description for ember-codemod-pod-to-octane goes here", - "keywords": [ - "codemod", - "ember-codemod", - "emberjs" - ], - "repository": "", - "license": "MIT", - "author": "", - "type": "module", - "main": "src/index.js", - "bin": "bin/ember-codemod-pod-to-octane.js", - "directories": { - "test": "tests" - }, - "files": [ - "bin", - "src" - ], - "scripts": { - "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", - "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", - "lint:js": "eslint . --cache", - "lint:js:fix": "eslint . --fix", - "release:changelog": "changeset version", - "release:publish": "changeset publish", - "test": "mt tests --quiet" - }, - "dependencies": {}, - "devDependencies": {}, - "engines": { - "node": "18.* || >= 20" - } -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/src/index.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/src/index.js deleted file mode 100644 index 86600b69..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/src/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import { addEndOfLine, createOptions } from './steps/index.js'; - -export function runCodemod(codemodOptions) { - const options = createOptions(codemodOptions); - - // TODO: Replace with actual steps - addEndOfLine(options); -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/src/steps/add-end-of-line.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/src/steps/add-end-of-line.js deleted file mode 100644 index c7e4f10e..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/src/steps/add-end-of-line.js +++ /dev/null @@ -1,24 +0,0 @@ -import { readFileSync } from 'node:fs'; -import { join } from 'node:path'; - -import { createFiles, findFiles } from '@codemod-utils/files'; - -export function addEndOfLine(options) { - const { projectRoot } = options; - - const filePaths = findFiles('**/*.txt', { - projectRoot, - }); - - const fileMap = new Map( - filePaths.map((filePath) => { - const file = readFileSync(join(projectRoot, filePath), 'utf8'); - - const newFile = file.endsWith('\n') ? file : `${file}\n`; - - return [filePath, newFile]; - }), - ); - - createFiles(fileMap, options); -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/src/steps/create-options.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/src/steps/create-options.js deleted file mode 100644 index ef6336db..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/src/steps/create-options.js +++ /dev/null @@ -1,7 +0,0 @@ -export function createOptions(codemodOptions) { - const { projectRoot } = codemodOptions; - - return { - projectRoot, - }; -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/src/steps/index.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/src/steps/index.js deleted file mode 100644 index 5435fe02..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/src/steps/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from './add-end-of-line.js'; -export * from './create-options.js'; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/index.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/index.js deleted file mode 100644 index a8a96766..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/index.js +++ /dev/null @@ -1,6 +0,0 @@ -import { convertFixtureToJson } from '@codemod-utils/tests'; - -const inputProject = convertFixtureToJson('sample-project/input'); -const outputProject = convertFixtureToJson('sample-project/output'); - -export { inputProject, outputProject }; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/input/.gitkeep b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/input/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/output/.gitkeep b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/output/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/helpers/shared-test-setups/sample-project.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/helpers/shared-test-setups/sample-project.js deleted file mode 100644 index 8b286802..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/helpers/shared-test-setups/sample-project.js +++ /dev/null @@ -1,9 +0,0 @@ -const codemodOptions = { - projectRoot: 'tmp/sample-project', -}; - -const options = { - projectRoot: 'tmp/sample-project', -}; - -export { codemodOptions, options }; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/index/sample-project.test.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/index/sample-project.test.js deleted file mode 100644 index 7a97215f..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/index/sample-project.test.js +++ /dev/null @@ -1,21 +0,0 @@ -import { assertFixture, loadFixture, test } from '@codemod-utils/tests'; - -import { runCodemod } from '../../src/index.js'; -import { - inputProject, - outputProject, -} from '../fixtures/sample-project/index.js'; -import { codemodOptions } from '../helpers/shared-test-setups/sample-project.js'; - -test('index > sample-project', function () { - loadFixture(inputProject, codemodOptions); - - runCodemod(codemodOptions); - - assertFixture(outputProject, codemodOptions); - - // Check idempotence - runCodemod(codemodOptions); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/base-case.test.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/base-case.test.js deleted file mode 100644 index cf5dfe06..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/base-case.test.js +++ /dev/null @@ -1,23 +0,0 @@ -import { assertFixture, loadFixture, test } from '@codemod-utils/tests'; - -import { addEndOfLine } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/sample-project.js'; - -test('steps | add-end-of-line > base case', function () { - const inputProject = { - 'file.txt': 'Hello world!', - }; - - const outputProject = { - 'file.txt': 'Hello world!\n', - }; - - loadFixture(inputProject, codemodOptions); - - addEndOfLine(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/edge-case-file-ends-with-newline.test.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/edge-case-file-ends-with-newline.test.js deleted file mode 100644 index 2340e587..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/edge-case-file-ends-with-newline.test.js +++ /dev/null @@ -1,23 +0,0 @@ -import { assertFixture, loadFixture, test } from '@codemod-utils/tests'; - -import { addEndOfLine } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/sample-project.js'; - -test('steps | add-end-of-line > edge case (file ends with newline)', function () { - const inputProject = { - 'file.txt': 'Hello world!\n', - }; - - const outputProject = { - 'file.txt': 'Hello world!\n', - }; - - loadFixture(inputProject, codemodOptions); - - addEndOfLine(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/edge-case-file-is-empty.test.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/edge-case-file-is-empty.test.js deleted file mode 100644 index 218b3c4e..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/edge-case-file-is-empty.test.js +++ /dev/null @@ -1,23 +0,0 @@ -import { assertFixture, loadFixture, test } from '@codemod-utils/tests'; - -import { addEndOfLine } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/sample-project.js'; - -test('steps | add-end-of-line > edge case (file is empty)', function () { - const inputProject = { - 'file.txt': '', - }; - - const outputProject = { - 'file.txt': '\n', - }; - - loadFixture(inputProject, codemodOptions); - - addEndOfLine(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/steps/create-options/sample-project.test.js b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/steps/create-options/sample-project.test.js deleted file mode 100644 index fbfe0291..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/javascript/output/ember-codemod-pod-to-octane/tests/steps/create-options/sample-project.test.js +++ /dev/null @@ -1,11 +0,0 @@ -import { assert, test } from '@codemod-utils/tests'; - -import { createOptions } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/sample-project.js'; - -test('steps | create-options > sample-project', function () { - assert.deepStrictEqual(createOptions(codemodOptions), options); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.changeset/config.json b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.changeset/config.json deleted file mode 100644 index abda549c..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.changeset/config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json", - "changelog": "./format-changelogs.cjs", - "commit": false, - "fixed": [], - "linked": [], - "access": "public", - "baseBranch": "main", - "updateInternalDependencies": "patch", - "ignore": [] -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.changeset/format-changelogs.cjs b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.changeset/format-changelogs.cjs deleted file mode 100644 index da4d20ca..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.changeset/format-changelogs.cjs +++ /dev/null @@ -1,55 +0,0 @@ -const { getInfo } = require('@changesets/get-github-info'); - -const repo = '/ember-codemod-args-to-signature'; - -async function analyze(changeset) { - const { links: info } = await getInfo({ - commit: changeset.commit, - repo, - }); - - const contributor = info.user ? `(${info.user})` : undefined; - const link = info.pull ?? info.commit ?? undefined; - const summary = (changeset.summary ?? '').split('\n')[0].trim(); - - return { - contributor, - link, - summary, - }; -} - -async function summarize(changeset) { - const { contributor, link, summary } = await analyze(changeset); - - const line = [link, summary, contributor].filter(Boolean).join(' '); - - return `- ${line}`; -} - -async function getDependencyReleaseLine(changesets) { - try { - const lines = await Promise.all(changesets.map(summarize)); - - return lines.join('\n'); - } catch (error) { - console.error(`ERROR: getDependencyReleaseLine (${error.message})`); - - return ''; - } -} - -async function getReleaseLine(changeset) { - try { - return summarize(changeset); - } catch (error) { - console.error(`ERROR: getReleaseLine (${error.message})`); - - return ''; - } -} - -module.exports = { - getDependencyReleaseLine, - getReleaseLine, -}; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.eslintignore b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.eslintignore deleted file mode 100644 index 771057c8..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.eslintignore +++ /dev/null @@ -1,13 +0,0 @@ -# compiled output -/dist/ -/dist-for-testing/ -/tmp/ - -# dependencies -/node_modules/ - -# misc -!.* -.*/ -/src/blueprints/ -/tests/fixtures/ diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.eslintrc.cjs b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.eslintrc.cjs deleted file mode 100644 index 758ce769..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.eslintrc.cjs +++ /dev/null @@ -1,65 +0,0 @@ -'use strict'; - -module.exports = { - root: true, - parserOptions: { - ecmaVersion: 'latest', - project: true, - sourceType: 'module', - }, - plugins: ['simple-import-sort'], - extends: [ - 'eslint:recommended', - 'plugin:import/recommended', - 'plugin:n/recommended', - 'plugin:prettier/recommended', - ], - rules: { - curly: 'error', - 'simple-import-sort/exports': 'error', - 'simple-import-sort/imports': 'error', - }, - settings: { - 'import/resolver': { - node: true, - typescript: true, - }, - }, - overrides: [ - // TypeScript files - { - files: ['**/*.{cts,ts}'], - parser: '@typescript-eslint/parser', - extends: [ - 'plugin:@typescript-eslint/recommended', - 'plugin:import/typescript', - 'plugin:typescript-sort-keys/recommended', - ], - rules: { - 'import/no-duplicates': 'error', - }, - }, - // JavaScript files - { - files: ['**/*.{cjs,js}'], - rules: { - 'import/no-duplicates': 'error', - }, - }, - // Node files - { - files: ['./.eslintrc.{cjs,js}', './.prettierrc.{cjs,js}'], - env: { - browser: false, - node: true, - }, - extends: ['plugin:n/recommended'], - }, - { - files: ['bin/**/*.{js,ts}'], - rules: { - 'n/hashbang': 'off', - }, - }, - ], -}; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/ask-for-better-documentation.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/ask-for-better-documentation.md deleted file mode 100644 index e3ec7c1d..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/ask-for-better-documentation.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: Ask for better documentation -about: Ask for better documentation -title: '' -labels: 'enhance: documentation' -assignees: '' - ---- - -Hello! Thanks for taking time to suggest how we can improve documentation. - -Here, documentation can mean a few different things, including README, code comments, and tests. Anything that will help everyone understand how to use `ember-codemod-args-to-signature`! - - -## I would like to see... 🙋‍♀️🙋‍♂️ - -A clear, concise description of what you want to happen. - - -## Why and how 💬 - -A clear, concise description of why you want something to happen and how we might be able to solve the problem. - - -## Additional context ➕ - -If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the request here. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/ask-for-new-feature-or-refactor.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/ask-for-new-feature-or-refactor.md deleted file mode 100644 index b561c5fd..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/ask-for-new-feature-or-refactor.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: Ask for new feature or refactor -about: Ask for new feature or refactor -title: '' -labels: 'enhance: code' -assignees: '' - ---- - -Hello! Thanks for taking time to suggest how we can improve `ember-codemod-args-to-signature`. - -Before you make a new issue, please search for similar issues. It's possible that someone has made a request already. - - -## I would like to see... 🙋‍♀️🙋‍♂️ - -A clear, concise description of what you want to happen. - - -## Why and how 💬 - -A clear, concise description of why you want something to happen and how we might be able to solve the problem. - - -## Additional context ➕ - -If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the request here. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/report-bug.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/report-bug.md deleted file mode 100644 index 140b92c9..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/report-bug.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: Report bug -about: Report bug -title: '' -labels: bug -assignees: '' - ---- - -Hello! Thanks for taking time to make a bug report. - -Before you make a new issue, please search for similar issues. It's possible that someone has reported this bug already. - - -## Describe the bug 🐞 - -A clear and concise description of the bug. - - -## Expected behavior 🤔 - -A clear and concise description of what you expected to see. - - -## Minimal reproduction 🔬 - -Describe steps to reproduce the issue. - -1. ... -1. ... -1. ... - -If possible, please share a repo with the minimum files to reproduce the issue. - - -## Additional context ➕ - -If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the problem here. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/report-outdated-dependency.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/report-outdated-dependency.md deleted file mode 100644 index 3fb22da0..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/ISSUE_TEMPLATE/report-outdated-dependency.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -name: Report outdated dependency -about: Report outdated dependency -title: '' -labels: 'enhance: dependency' -assignees: '' - ---- - -Hello! Thanks for taking time to make an outdated dependency report. - -Before you make a new issue, please search for similar issues. It's possible that someone has made a request for update already. - - -## List outdated dependencies 🔗 - -When you ran `pnpm outdated`, what did you see? - -```sh -┌────────────────────────┬─────────┬────────┐ -│ Package │ Current │ Latest │ -├────────────────────────┼─────────┼────────┤ -│ @sondr3/minitest (dev) │ 0.1.1 │ 0.1.2 │ -└────────────────────────┴─────────┴────────┘ -``` - - -## Risk analysis ⚠️ - -Are there breaking changes that we should be aware of? Please add links to the `CHANGELOG`s, if they are available. - - -## Additional context ➕ - -If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the problem here. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/workflows/ci.yml b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/workflows/ci.yml deleted file mode 100644 index 8436dcb6..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.github/workflows/ci.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: CI - -on: - push: - branches: - - main - pull_request: - -env: - NODE_VERSION: 18 - -jobs: - lint: - name: Lint - runs-on: ubuntu-latest - timeout-minutes: 5 - steps: - - name: Check out a copy of the repo - uses: actions/checkout@v4 - - - name: Set up pnpm - uses: pnpm/action-setup@v3 - with: - version: latest - - - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v4 - with: - cache: 'pnpm' - node-version: ${{ env.NODE_VERSION }} - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Lint - run: pnpm lint - - - test: - name: Test - runs-on: ubuntu-latest - timeout-minutes: 5 - steps: - - name: Check out a copy of the repo - uses: actions/checkout@v4 - - - name: Set up pnpm - uses: pnpm/action-setup@v3 - with: - version: latest - - - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v4 - with: - cache: 'pnpm' - node-version: ${{ env.NODE_VERSION }} - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Test - run: pnpm test diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.gitignore b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.gitignore deleted file mode 100644 index cc33aa0e..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ -# compiled output -dist/ -dist-for-testing/ -tmp/ - -# dependencies -node_modules/ - -# misc -.DS_Store -.env* -.eslintcache diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.npmignore b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.npmignore deleted file mode 100644 index fc33b3b8..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.npmignore +++ /dev/null @@ -1,25 +0,0 @@ -# compiled output -/dist-for-testing/ -/tmp/ - -# dependencies -/node_modules/ - -# misc -/.DS_Store -/.env* -/.eslintcache -/.eslintignore -/.eslintrc.cjs -/.git/ -/.github/ -/.gitignore -/.pnpm-debug.log -/.prettierignore -/.prettierrc.cjs -/build.sh -/codemod-test-fixture.sh -/codemod-test-fixtures.sh -/CONTRIBUTING.md -/create-test-fixture.sh -/tests/ diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.prettierrc.cjs b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.prettierrc.cjs deleted file mode 100644 index fa709836..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/.prettierrc.cjs +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -module.exports = { - overrides: [ - { - files: '*.{cjs,cts,js,mjs,mts,ts}', - options: { - printWidth: 80, - singleQuote: true, - }, - }, - ], -}; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/CHANGELOG.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/CHANGELOG.md deleted file mode 100644 index 825c32f0..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/CHANGELOG.md +++ /dev/null @@ -1 +0,0 @@ -# Changelog diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/CONTRIBUTING.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/CONTRIBUTING.md deleted file mode 100644 index 5ba03103..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/CONTRIBUTING.md +++ /dev/null @@ -1,102 +0,0 @@ -# Contributing to ember-codemod-args-to-signature - -Open source projects like `ember-codemod-args-to-signature` live on your words of encouragement and contribution. Please give feedback, report issues, or submit pull requests! - -Here are some guidelines to help you and everyone else. - - -## Local development - -
- -Install dependencies - -1. Fork and clone this repo. - - ```sh - git clone git@github.com:/ember-codemod-args-to-signature.git - ``` - -1. Change directory. - - ```sh - cd ember-codemod-args-to-signature - ``` - -1. Use [`pnpm`](https://pnpm.io/installation) to install dependencies. - - ```sh - pnpm install - ``` - -
- - -
- -Lint files - -1. When you write code, please check that it meets the linting rules. - - ```sh - pnpm lint - ``` - -1. You can run `lint:fix` to automatically fix linting errors. - - ```sh - pnpm lint:fix - ``` - -
- - -
- -Run tests - -1. When you write code, please check that all tests continue to pass. - - ```sh - pnpm test - ``` - -
- - -
- -Add changeset to pull request - -1. To record how a pull request affects packages, you will want to add a changeset. - - The changeset provides a summary of the code change. It also describes how package versions should be updated (major, minor, or patch) as a result of the code change. - - ```sh - pnpm changeset - ``` - -
- - -
- -Publish package (for admins) - -1. Generate a [personal access token](https://github.com/settings/tokens/) in GitHub, with `repo` and `read:user` scopes enabled. - -1. Run the `release:changelog` script. This removes changesets, updates the package version, and updates the `CHANGELOG`. - - ```sh - GITHUB_TOKEN= pnpm release:changelog - ``` - -1. [Create a tag](https://github.com//ember-codemod-args-to-signature/releases/new) and provide release notes. The tag name should match the package version. - -1. Publish the package. - - ```sh - pnpm release:publish - ``` - -
diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/LICENSE.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/LICENSE.md deleted file mode 100644 index ff84a5be..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/LICENSE.md +++ /dev/null @@ -1,9 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2024 - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/README.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/README.md deleted file mode 100644 index 0b3ef112..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/README.md +++ /dev/null @@ -1,56 +0,0 @@ -[![This project uses GitHub Actions for continuous integration.](https://github.com//ember-codemod-args-to-signature/actions/workflows/ci.yml/badge.svg)](https://github.com//ember-codemod-args-to-signature/actions/workflows/ci.yml) - -# ember-codemod-args-to-signature - -_Codemod to [PROVIDE A SHORT DESCRIPTION.]_ - - -## Usage - -### Arguments - -[PROVIDE REQUIRED AND OPTIONAL ARGUMENTS.] - -
- -Optional: Specify the project root - -Pass `--root` to run the codemod somewhere else (i.e. not in the current directory). - -```sh -npx ember-codemod-args-to-signature --root -``` - -
- - -### Limitations - -The codemod is designed to cover typical cases. It is not designed to cover one-off cases. - -To better meet your needs, consider cloning the repo and running the codemod locally. - -```sh -cd - -# Compile TypeScript -pnpm build - -# Run codemod -./dist/bin/ember-codemod-args-to-signature.js --root -``` - - -## Compatibility - -- Node.js v18 or above - - -## Contributing - -See the [Contributing](CONTRIBUTING.md) guide for details. - - -## License - -This project is licensed under the [MIT License](LICENSE.md). diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/bin/ember-codemod-args-to-signature.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/bin/ember-codemod-args-to-signature.ts deleted file mode 100755 index 0f8f2cb3..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/bin/ember-codemod-args-to-signature.ts +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env node -'use strict'; - -import yargs from 'yargs'; -import { hideBin } from 'yargs/helpers'; - -import { runCodemod } from '../src/index.js'; -import type { CodemodOptions } from '../src/types/index.js'; - -// Provide a title to the process in `ps` -process.title = 'ember-codemod-args-to-signature'; - -// Set codemod options -const argv = yargs(hideBin(process.argv)) - .option('root', { - describe: 'Where to run the codemod', - type: 'string', - }) - .parseSync(); - -const codemodOptions: CodemodOptions = { - projectRoot: argv['root'] ?? process.cwd(), -}; - -runCodemod(codemodOptions); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/build.sh b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/build.sh deleted file mode 100755 index 1ad39b7a..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/build.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env sh - -COMMAND="ember-codemod-args-to-signature" -ENVIRONMENT=$1 - -if [ $ENVIRONMENT = "--production" ] -then - # Clean slate - rm -rf "dist" - - # Compile TypeScript - tsc --project "tsconfig.build.json" - - # Configure files - chmod +x "dist/bin/$COMMAND.js" - - if [ -d "src/blueprints" ] - then - cp -r "src/blueprints" "dist/src/blueprints" - fi - - echo "SUCCESS: Built dist.\n" - -elif [ $ENVIRONMENT = "--test" ] -then - # Clean slate - rm -rf "dist-for-testing" - - # Compile TypeScript - tsc --project "tsconfig.json" - - # Configure files - if [ -d "src/blueprints" ] - then - cp -r "src/blueprints" "dist-for-testing/src/blueprints" - fi - - echo "SUCCESS: Built dist-for-testing.\n" - -fi diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/codemod-test-fixture.sh b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/codemod-test-fixture.sh deleted file mode 100755 index a78a4ae9..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/codemod-test-fixture.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env sh - -#---------- -# -# A. Purpose -# -# Fix the expected output of a test fixture after updating the source code. -# -# B. Usage -# -# For named arguments, do not include `=` between the flag and the value. -# Positional arguments are to appear at the end. -# -# ./codemod-test-fixture.sh [OPTIONAL-FLAGS] -# -#--------- - -# Get named arguments for the binary -while getopts ":N:" flag -do - case $flag in - N) NAMED_ARGUMENTS=$OPTARG;; - esac -done - -# Get fixture name -FIXTURE=${@:$OPTIND:1} - -if [ ! $FIXTURE ] -then - echo "ERROR: Please specify the fixture name.\n" - exit 1 -elif [ ! -d "tests/fixtures/$FIXTURE/input" ] -then - echo "ERROR: Input folder \`tests/fixtures/$FIXTURE/input\` does not exist.\n" - exit 1 -fi - -rm -r "tests/fixtures/$FIXTURE/output" -cp -r "tests/fixtures/$FIXTURE/input" "tests/fixtures/$FIXTURE/output" - -./dist/bin/ember-codemod-args-to-signature.js $NAMED_ARGUMENTS --root="tests/fixtures/$FIXTURE/output" - -echo "SUCCESS: Updated the output of $FIXTURE.\n" diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/codemod-test-fixtures.sh b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/codemod-test-fixtures.sh deleted file mode 100755 index 5caf3c3a..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/codemod-test-fixtures.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env sh - -#---------- -# -# A. Purpose -# -# Fix all test fixtures after updating the source code. -# -# B. Usage -# -# ./codemod-test-fixtures.sh -# -#--------- - -# Compile TypeScript -pnpm build - -./codemod-test-fixture.sh \ - -N "" \ - sample-project diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/package.json b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/package.json deleted file mode 100644 index b12f366c..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "ember-codemod-args-to-signature", - "version": "0.0.0", - "private": true, - "description": "Small description for ember-codemod-args-to-signature goes here", - "keywords": [ - "codemod", - "ember-codemod", - "emberjs" - ], - "repository": "", - "license": "MIT", - "author": "", - "type": "module", - "main": "dist/src/index.js", - "bin": "dist/bin/ember-codemod-args-to-signature.js", - "directories": { - "test": "tests" - }, - "files": [ - "dist" - ], - "scripts": { - "build": "./build.sh --production", - "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", - "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", - "lint:js": "eslint . --cache", - "lint:js:fix": "eslint . --fix", - "lint:types": "tsc --noEmit", - "prepare": "pnpm build", - "release:changelog": "changeset version", - "release:publish": "pnpm build && changeset publish", - "test": "./build.sh --test && mt dist-for-testing --quiet" - }, - "dependencies": {}, - "devDependencies": {}, - "engines": { - "node": "18.* || >= 20" - } -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/blueprints/.gitkeep b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/blueprints/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/index.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/index.ts deleted file mode 100644 index b2f3be42..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { addEndOfLine, createOptions } from './steps/index.js'; -import type { CodemodOptions } from './types/index.js'; - -export function runCodemod(codemodOptions: CodemodOptions): void { - const options = createOptions(codemodOptions); - - // TODO: Replace with actual steps - addEndOfLine(options); -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/steps/add-end-of-line.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/steps/add-end-of-line.ts deleted file mode 100644 index de3ae4e1..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/steps/add-end-of-line.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { readFileSync } from 'node:fs'; -import { join } from 'node:path'; - -import { createFiles, findFiles } from '@codemod-utils/files'; - -import type { Options } from '../types/index.js'; - -export function addEndOfLine(options: Options): void { - const { projectRoot } = options; - - const filePaths = findFiles('**/*.txt', { - projectRoot, - }); - - const fileMap = new Map( - filePaths.map((filePath) => { - const file = readFileSync(join(projectRoot, filePath), 'utf8'); - - const newFile = file.endsWith('\n') ? file : `${file}\n`; - - return [filePath, newFile]; - }), - ); - - createFiles(fileMap, options); -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/steps/create-options.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/steps/create-options.ts deleted file mode 100644 index 8c156fb8..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/steps/create-options.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { CodemodOptions, Options } from '../types/index.js'; - -export function createOptions(codemodOptions: CodemodOptions): Options { - const { projectRoot } = codemodOptions; - - return { - projectRoot, - }; -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/steps/index.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/steps/index.ts deleted file mode 100644 index 5435fe02..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/steps/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './add-end-of-line.js'; -export * from './create-options.js'; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/types/index.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/types/index.ts deleted file mode 100644 index e9bbbebc..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/types/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -type CodemodOptions = { - projectRoot: string; -}; - -type Options = { - projectRoot: string; -}; - -export type { CodemodOptions, Options }; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/utils/blueprints.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/utils/blueprints.ts deleted file mode 100644 index 1e540879..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/utils/blueprints.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './blueprints/blueprints-root.js'; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/utils/blueprints/blueprints-root.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/utils/blueprints/blueprints-root.ts deleted file mode 100644 index 237d2fb9..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/src/utils/blueprints/blueprints-root.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { join } from 'node:path'; - -import { getFilePath } from '@codemod-utils/blueprints'; - -const fileURL = import.meta.url; - -export const blueprintsRoot = join(getFilePath(fileURL), '../../blueprints'); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/index.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/index.ts deleted file mode 100644 index a8a96766..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { convertFixtureToJson } from '@codemod-utils/tests'; - -const inputProject = convertFixtureToJson('sample-project/input'); -const outputProject = convertFixtureToJson('sample-project/output'); - -export { inputProject, outputProject }; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/input/.gitkeep b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/input/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/output/.gitkeep b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/fixtures/sample-project/output/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/helpers/shared-test-setups/sample-project.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/helpers/shared-test-setups/sample-project.ts deleted file mode 100644 index a7d7ecab..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/helpers/shared-test-setups/sample-project.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { CodemodOptions, Options } from '../../../src/types/index.js'; - -const codemodOptions: CodemodOptions = { - projectRoot: 'tmp/sample-project', -}; - -const options: Options = { - projectRoot: 'tmp/sample-project', -}; - -export { codemodOptions, options }; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/index/sample-project.test.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/index/sample-project.test.ts deleted file mode 100644 index 7a97215f..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/index/sample-project.test.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { assertFixture, loadFixture, test } from '@codemod-utils/tests'; - -import { runCodemod } from '../../src/index.js'; -import { - inputProject, - outputProject, -} from '../fixtures/sample-project/index.js'; -import { codemodOptions } from '../helpers/shared-test-setups/sample-project.js'; - -test('index > sample-project', function () { - loadFixture(inputProject, codemodOptions); - - runCodemod(codemodOptions); - - assertFixture(outputProject, codemodOptions); - - // Check idempotence - runCodemod(codemodOptions); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/base-case.test.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/base-case.test.ts deleted file mode 100644 index cf5dfe06..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/base-case.test.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { assertFixture, loadFixture, test } from '@codemod-utils/tests'; - -import { addEndOfLine } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/sample-project.js'; - -test('steps | add-end-of-line > base case', function () { - const inputProject = { - 'file.txt': 'Hello world!', - }; - - const outputProject = { - 'file.txt': 'Hello world!\n', - }; - - loadFixture(inputProject, codemodOptions); - - addEndOfLine(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/edge-case-file-ends-with-newline.test.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/edge-case-file-ends-with-newline.test.ts deleted file mode 100644 index 2340e587..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/edge-case-file-ends-with-newline.test.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { assertFixture, loadFixture, test } from '@codemod-utils/tests'; - -import { addEndOfLine } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/sample-project.js'; - -test('steps | add-end-of-line > edge case (file ends with newline)', function () { - const inputProject = { - 'file.txt': 'Hello world!\n', - }; - - const outputProject = { - 'file.txt': 'Hello world!\n', - }; - - loadFixture(inputProject, codemodOptions); - - addEndOfLine(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/edge-case-file-is-empty.test.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/edge-case-file-is-empty.test.ts deleted file mode 100644 index 218b3c4e..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/steps/add-end-of-line/edge-case-file-is-empty.test.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { assertFixture, loadFixture, test } from '@codemod-utils/tests'; - -import { addEndOfLine } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/sample-project.js'; - -test('steps | add-end-of-line > edge case (file is empty)', function () { - const inputProject = { - 'file.txt': '', - }; - - const outputProject = { - 'file.txt': '\n', - }; - - loadFixture(inputProject, codemodOptions); - - addEndOfLine(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/steps/create-options/sample-project.test.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/steps/create-options/sample-project.test.ts deleted file mode 100644 index fbfe0291..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/steps/create-options/sample-project.test.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { assert, test } from '@codemod-utils/tests'; - -import { createOptions } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/sample-project.js'; - -test('steps | create-options > sample-project', function () { - assert.deepStrictEqual(createOptions(codemodOptions), options); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/utils/blueprints/blueprints-root.test.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/utils/blueprints/blueprints-root.test.ts deleted file mode 100644 index df5ed4f0..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tests/utils/blueprints/blueprints-root.test.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { assert, test } from '@codemod-utils/tests'; - -import { blueprintsRoot } from '../../../src/utils/blueprints.js'; - -test('utils | blueprints | blueprints-root', function () { - assert.strictEqual(blueprintsRoot.endsWith('src/blueprints'), true); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tsconfig.build.json b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tsconfig.build.json deleted file mode 100644 index a3d8218c..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tsconfig.build.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": [ - "@tsconfig/node18/tsconfig", - "@tsconfig/strictest/tsconfig" - ], - "compilerOptions": { - "declaration": false, - "moduleResolution": "NodeNext", - "outDir": "dist" - }, - "include": ["bin", "src"], - "exclude": ["src/blueprints"] -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tsconfig.json b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tsconfig.json deleted file mode 100644 index 5387b492..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript-with-addons/output/ember-codemod-args-to-signature/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": [ - "@tsconfig/node18/tsconfig", - "@tsconfig/strictest/tsconfig" - ], - "compilerOptions": { - "declaration": false, - "moduleResolution": "NodeNext", - "outDir": "dist-for-testing" - }, - "include": ["bin", "src", "tests"], - "exclude": ["src/blueprints", "tests/fixtures"] -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.changeset/config.json b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.changeset/config.json deleted file mode 100644 index abda549c..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.changeset/config.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json", - "changelog": "./format-changelogs.cjs", - "commit": false, - "fixed": [], - "linked": [], - "access": "public", - "baseBranch": "main", - "updateInternalDependencies": "patch", - "ignore": [] -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.changeset/format-changelogs.cjs b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.changeset/format-changelogs.cjs deleted file mode 100644 index 57cbc075..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.changeset/format-changelogs.cjs +++ /dev/null @@ -1,55 +0,0 @@ -const { getInfo } = require('@changesets/get-github-info'); - -const repo = '/ember-codemod-pod-to-octane'; - -async function analyze(changeset) { - const { links: info } = await getInfo({ - commit: changeset.commit, - repo, - }); - - const contributor = info.user ? `(${info.user})` : undefined; - const link = info.pull ?? info.commit ?? undefined; - const summary = (changeset.summary ?? '').split('\n')[0].trim(); - - return { - contributor, - link, - summary, - }; -} - -async function summarize(changeset) { - const { contributor, link, summary } = await analyze(changeset); - - const line = [link, summary, contributor].filter(Boolean).join(' '); - - return `- ${line}`; -} - -async function getDependencyReleaseLine(changesets) { - try { - const lines = await Promise.all(changesets.map(summarize)); - - return lines.join('\n'); - } catch (error) { - console.error(`ERROR: getDependencyReleaseLine (${error.message})`); - - return ''; - } -} - -async function getReleaseLine(changeset) { - try { - return summarize(changeset); - } catch (error) { - console.error(`ERROR: getReleaseLine (${error.message})`); - - return ''; - } -} - -module.exports = { - getDependencyReleaseLine, - getReleaseLine, -}; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.eslintignore b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.eslintignore deleted file mode 100644 index 771057c8..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.eslintignore +++ /dev/null @@ -1,13 +0,0 @@ -# compiled output -/dist/ -/dist-for-testing/ -/tmp/ - -# dependencies -/node_modules/ - -# misc -!.* -.*/ -/src/blueprints/ -/tests/fixtures/ diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.eslintrc.cjs b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.eslintrc.cjs deleted file mode 100644 index 758ce769..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.eslintrc.cjs +++ /dev/null @@ -1,65 +0,0 @@ -'use strict'; - -module.exports = { - root: true, - parserOptions: { - ecmaVersion: 'latest', - project: true, - sourceType: 'module', - }, - plugins: ['simple-import-sort'], - extends: [ - 'eslint:recommended', - 'plugin:import/recommended', - 'plugin:n/recommended', - 'plugin:prettier/recommended', - ], - rules: { - curly: 'error', - 'simple-import-sort/exports': 'error', - 'simple-import-sort/imports': 'error', - }, - settings: { - 'import/resolver': { - node: true, - typescript: true, - }, - }, - overrides: [ - // TypeScript files - { - files: ['**/*.{cts,ts}'], - parser: '@typescript-eslint/parser', - extends: [ - 'plugin:@typescript-eslint/recommended', - 'plugin:import/typescript', - 'plugin:typescript-sort-keys/recommended', - ], - rules: { - 'import/no-duplicates': 'error', - }, - }, - // JavaScript files - { - files: ['**/*.{cjs,js}'], - rules: { - 'import/no-duplicates': 'error', - }, - }, - // Node files - { - files: ['./.eslintrc.{cjs,js}', './.prettierrc.{cjs,js}'], - env: { - browser: false, - node: true, - }, - extends: ['plugin:n/recommended'], - }, - { - files: ['bin/**/*.{js,ts}'], - rules: { - 'n/hashbang': 'off', - }, - }, - ], -}; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/ask-for-better-documentation.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/ask-for-better-documentation.md deleted file mode 100644 index 4296e54f..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/ask-for-better-documentation.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: Ask for better documentation -about: Ask for better documentation -title: '' -labels: 'enhance: documentation' -assignees: '' - ---- - -Hello! Thanks for taking time to suggest how we can improve documentation. - -Here, documentation can mean a few different things, including README, code comments, and tests. Anything that will help everyone understand how to use `ember-codemod-pod-to-octane`! - - -## I would like to see... 🙋‍♀️🙋‍♂️ - -A clear, concise description of what you want to happen. - - -## Why and how 💬 - -A clear, concise description of why you want something to happen and how we might be able to solve the problem. - - -## Additional context ➕ - -If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the request here. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/ask-for-new-feature-or-refactor.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/ask-for-new-feature-or-refactor.md deleted file mode 100644 index d4d18a4a..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/ask-for-new-feature-or-refactor.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: Ask for new feature or refactor -about: Ask for new feature or refactor -title: '' -labels: 'enhance: code' -assignees: '' - ---- - -Hello! Thanks for taking time to suggest how we can improve `ember-codemod-pod-to-octane`. - -Before you make a new issue, please search for similar issues. It's possible that someone has made a request already. - - -## I would like to see... 🙋‍♀️🙋‍♂️ - -A clear, concise description of what you want to happen. - - -## Why and how 💬 - -A clear, concise description of why you want something to happen and how we might be able to solve the problem. - - -## Additional context ➕ - -If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the request here. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/report-bug.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/report-bug.md deleted file mode 100644 index 140b92c9..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/report-bug.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: Report bug -about: Report bug -title: '' -labels: bug -assignees: '' - ---- - -Hello! Thanks for taking time to make a bug report. - -Before you make a new issue, please search for similar issues. It's possible that someone has reported this bug already. - - -## Describe the bug 🐞 - -A clear and concise description of the bug. - - -## Expected behavior 🤔 - -A clear and concise description of what you expected to see. - - -## Minimal reproduction 🔬 - -Describe steps to reproduce the issue. - -1. ... -1. ... -1. ... - -If possible, please share a repo with the minimum files to reproduce the issue. - - -## Additional context ➕ - -If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the problem here. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/report-outdated-dependency.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/report-outdated-dependency.md deleted file mode 100644 index 3fb22da0..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/ISSUE_TEMPLATE/report-outdated-dependency.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -name: Report outdated dependency -about: Report outdated dependency -title: '' -labels: 'enhance: dependency' -assignees: '' - ---- - -Hello! Thanks for taking time to make an outdated dependency report. - -Before you make a new issue, please search for similar issues. It's possible that someone has made a request for update already. - - -## List outdated dependencies 🔗 - -When you ran `pnpm outdated`, what did you see? - -```sh -┌────────────────────────┬─────────┬────────┐ -│ Package │ Current │ Latest │ -├────────────────────────┼─────────┼────────┤ -│ @sondr3/minitest (dev) │ 0.1.1 │ 0.1.2 │ -└────────────────────────┴─────────┴────────┘ -``` - - -## Risk analysis ⚠️ - -Are there breaking changes that we should be aware of? Please add links to the `CHANGELOG`s, if they are available. - - -## Additional context ➕ - -If needed, you can provide more context (e.g. reference materials, screenshots, GIFs) for the problem here. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/workflows/ci.yml b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/workflows/ci.yml deleted file mode 100644 index 8436dcb6..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.github/workflows/ci.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: CI - -on: - push: - branches: - - main - pull_request: - -env: - NODE_VERSION: 18 - -jobs: - lint: - name: Lint - runs-on: ubuntu-latest - timeout-minutes: 5 - steps: - - name: Check out a copy of the repo - uses: actions/checkout@v4 - - - name: Set up pnpm - uses: pnpm/action-setup@v3 - with: - version: latest - - - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v4 - with: - cache: 'pnpm' - node-version: ${{ env.NODE_VERSION }} - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Lint - run: pnpm lint - - - test: - name: Test - runs-on: ubuntu-latest - timeout-minutes: 5 - steps: - - name: Check out a copy of the repo - uses: actions/checkout@v4 - - - name: Set up pnpm - uses: pnpm/action-setup@v3 - with: - version: latest - - - name: Use Node.js ${{ env.NODE_VERSION }} - uses: actions/setup-node@v4 - with: - cache: 'pnpm' - node-version: ${{ env.NODE_VERSION }} - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Test - run: pnpm test diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.gitignore b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.gitignore deleted file mode 100644 index cc33aa0e..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ -# compiled output -dist/ -dist-for-testing/ -tmp/ - -# dependencies -node_modules/ - -# misc -.DS_Store -.env* -.eslintcache diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.npmignore b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.npmignore deleted file mode 100644 index fc33b3b8..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.npmignore +++ /dev/null @@ -1,25 +0,0 @@ -# compiled output -/dist-for-testing/ -/tmp/ - -# dependencies -/node_modules/ - -# misc -/.DS_Store -/.env* -/.eslintcache -/.eslintignore -/.eslintrc.cjs -/.git/ -/.github/ -/.gitignore -/.pnpm-debug.log -/.prettierignore -/.prettierrc.cjs -/build.sh -/codemod-test-fixture.sh -/codemod-test-fixtures.sh -/CONTRIBUTING.md -/create-test-fixture.sh -/tests/ diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.prettierrc.cjs b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.prettierrc.cjs deleted file mode 100644 index fa709836..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/.prettierrc.cjs +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -module.exports = { - overrides: [ - { - files: '*.{cjs,cts,js,mjs,mts,ts}', - options: { - printWidth: 80, - singleQuote: true, - }, - }, - ], -}; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/CHANGELOG.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/CHANGELOG.md deleted file mode 100644 index 825c32f0..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/CHANGELOG.md +++ /dev/null @@ -1 +0,0 @@ -# Changelog diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/CONTRIBUTING.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/CONTRIBUTING.md deleted file mode 100644 index d4ba38c7..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/CONTRIBUTING.md +++ /dev/null @@ -1,102 +0,0 @@ -# Contributing to ember-codemod-pod-to-octane - -Open source projects like `ember-codemod-pod-to-octane` live on your words of encouragement and contribution. Please give feedback, report issues, or submit pull requests! - -Here are some guidelines to help you and everyone else. - - -## Local development - -
- -Install dependencies - -1. Fork and clone this repo. - - ```sh - git clone git@github.com:/ember-codemod-pod-to-octane.git - ``` - -1. Change directory. - - ```sh - cd ember-codemod-pod-to-octane - ``` - -1. Use [`pnpm`](https://pnpm.io/installation) to install dependencies. - - ```sh - pnpm install - ``` - -
- - -
- -Lint files - -1. When you write code, please check that it meets the linting rules. - - ```sh - pnpm lint - ``` - -1. You can run `lint:fix` to automatically fix linting errors. - - ```sh - pnpm lint:fix - ``` - -
- - -
- -Run tests - -1. When you write code, please check that all tests continue to pass. - - ```sh - pnpm test - ``` - -
- - -
- -Add changeset to pull request - -1. To record how a pull request affects packages, you will want to add a changeset. - - The changeset provides a summary of the code change. It also describes how package versions should be updated (major, minor, or patch) as a result of the code change. - - ```sh - pnpm changeset - ``` - -
- - -
- -Publish package (for admins) - -1. Generate a [personal access token](https://github.com/settings/tokens/) in GitHub, with `repo` and `read:user` scopes enabled. - -1. Run the `release:changelog` script. This removes changesets, updates the package version, and updates the `CHANGELOG`. - - ```sh - GITHUB_TOKEN= pnpm release:changelog - ``` - -1. [Create a tag](https://github.com//ember-codemod-pod-to-octane/releases/new) and provide release notes. The tag name should match the package version. - -1. Publish the package. - - ```sh - pnpm release:publish - ``` - -
diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/LICENSE.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/LICENSE.md deleted file mode 100644 index ff84a5be..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/LICENSE.md +++ /dev/null @@ -1,9 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2024 - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/README.md b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/README.md deleted file mode 100644 index f9a81104..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/README.md +++ /dev/null @@ -1,56 +0,0 @@ -[![This project uses GitHub Actions for continuous integration.](https://github.com//ember-codemod-pod-to-octane/actions/workflows/ci.yml/badge.svg)](https://github.com//ember-codemod-pod-to-octane/actions/workflows/ci.yml) - -# ember-codemod-pod-to-octane - -_Codemod to [PROVIDE A SHORT DESCRIPTION.]_ - - -## Usage - -### Arguments - -[PROVIDE REQUIRED AND OPTIONAL ARGUMENTS.] - -
- -Optional: Specify the project root - -Pass `--root` to run the codemod somewhere else (i.e. not in the current directory). - -```sh -npx ember-codemod-pod-to-octane --root -``` - -
- - -### Limitations - -The codemod is designed to cover typical cases. It is not designed to cover one-off cases. - -To better meet your needs, consider cloning the repo and running the codemod locally. - -```sh -cd - -# Compile TypeScript -pnpm build - -# Run codemod -./dist/bin/ember-codemod-pod-to-octane.js --root -``` - - -## Compatibility - -- Node.js v18 or above - - -## Contributing - -See the [Contributing](CONTRIBUTING.md) guide for details. - - -## License - -This project is licensed under the [MIT License](LICENSE.md). diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/bin/ember-codemod-pod-to-octane.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/bin/ember-codemod-pod-to-octane.ts deleted file mode 100755 index c5d87c78..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/bin/ember-codemod-pod-to-octane.ts +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env node -'use strict'; - -import yargs from 'yargs'; -import { hideBin } from 'yargs/helpers'; - -import { runCodemod } from '../src/index.js'; -import type { CodemodOptions } from '../src/types/index.js'; - -// Provide a title to the process in `ps` -process.title = 'ember-codemod-pod-to-octane'; - -// Set codemod options -const argv = yargs(hideBin(process.argv)) - .option('root', { - describe: 'Where to run the codemod', - type: 'string', - }) - .parseSync(); - -const codemodOptions: CodemodOptions = { - projectRoot: argv['root'] ?? process.cwd(), -}; - -runCodemod(codemodOptions); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/build.sh b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/build.sh deleted file mode 100755 index 79c3a66d..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/build.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env sh - -COMMAND="ember-codemod-pod-to-octane" -ENVIRONMENT=$1 - -if [ $ENVIRONMENT = "--production" ] -then - # Clean slate - rm -rf "dist" - - # Compile TypeScript - tsc --project "tsconfig.build.json" - - # Configure files - chmod +x "dist/bin/$COMMAND.js" - - if [ -d "src/blueprints" ] - then - cp -r "src/blueprints" "dist/src/blueprints" - fi - - echo "SUCCESS: Built dist.\n" - -elif [ $ENVIRONMENT = "--test" ] -then - # Clean slate - rm -rf "dist-for-testing" - - # Compile TypeScript - tsc --project "tsconfig.json" - - # Configure files - if [ -d "src/blueprints" ] - then - cp -r "src/blueprints" "dist-for-testing/src/blueprints" - fi - - echo "SUCCESS: Built dist-for-testing.\n" - -fi diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/codemod-test-fixture.sh b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/codemod-test-fixture.sh deleted file mode 100755 index 57ceb336..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/codemod-test-fixture.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env sh - -#---------- -# -# A. Purpose -# -# Fix the expected output of a test fixture after updating the source code. -# -# B. Usage -# -# For named arguments, do not include `=` between the flag and the value. -# Positional arguments are to appear at the end. -# -# ./codemod-test-fixture.sh [OPTIONAL-FLAGS] -# -#--------- - -# Get named arguments for the binary -while getopts ":N:" flag -do - case $flag in - N) NAMED_ARGUMENTS=$OPTARG;; - esac -done - -# Get fixture name -FIXTURE=${@:$OPTIND:1} - -if [ ! $FIXTURE ] -then - echo "ERROR: Please specify the fixture name.\n" - exit 1 -elif [ ! -d "tests/fixtures/$FIXTURE/input" ] -then - echo "ERROR: Input folder \`tests/fixtures/$FIXTURE/input\` does not exist.\n" - exit 1 -fi - -rm -r "tests/fixtures/$FIXTURE/output" -cp -r "tests/fixtures/$FIXTURE/input" "tests/fixtures/$FIXTURE/output" - -./dist/bin/ember-codemod-pod-to-octane.js $NAMED_ARGUMENTS --root="tests/fixtures/$FIXTURE/output" - -echo "SUCCESS: Updated the output of $FIXTURE.\n" diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/codemod-test-fixtures.sh b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/codemod-test-fixtures.sh deleted file mode 100755 index 5caf3c3a..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/codemod-test-fixtures.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env sh - -#---------- -# -# A. Purpose -# -# Fix all test fixtures after updating the source code. -# -# B. Usage -# -# ./codemod-test-fixtures.sh -# -#--------- - -# Compile TypeScript -pnpm build - -./codemod-test-fixture.sh \ - -N "" \ - sample-project diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/package.json b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/package.json deleted file mode 100644 index 98891865..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "ember-codemod-pod-to-octane", - "version": "0.0.0", - "private": true, - "description": "Small description for ember-codemod-pod-to-octane goes here", - "keywords": [ - "codemod", - "ember-codemod", - "emberjs" - ], - "repository": "", - "license": "MIT", - "author": "", - "type": "module", - "main": "dist/src/index.js", - "bin": "dist/bin/ember-codemod-pod-to-octane.js", - "directories": { - "test": "tests" - }, - "files": [ - "dist" - ], - "scripts": { - "build": "./build.sh --production", - "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", - "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", - "lint:js": "eslint . --cache", - "lint:js:fix": "eslint . --fix", - "lint:types": "tsc --noEmit", - "prepare": "pnpm build", - "release:changelog": "changeset version", - "release:publish": "pnpm build && changeset publish", - "test": "./build.sh --test && mt dist-for-testing --quiet" - }, - "dependencies": {}, - "devDependencies": {}, - "engines": { - "node": "18.* || >= 20" - } -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/index.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/index.ts deleted file mode 100644 index b2f3be42..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { addEndOfLine, createOptions } from './steps/index.js'; -import type { CodemodOptions } from './types/index.js'; - -export function runCodemod(codemodOptions: CodemodOptions): void { - const options = createOptions(codemodOptions); - - // TODO: Replace with actual steps - addEndOfLine(options); -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/steps/add-end-of-line.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/steps/add-end-of-line.ts deleted file mode 100644 index de3ae4e1..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/steps/add-end-of-line.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { readFileSync } from 'node:fs'; -import { join } from 'node:path'; - -import { createFiles, findFiles } from '@codemod-utils/files'; - -import type { Options } from '../types/index.js'; - -export function addEndOfLine(options: Options): void { - const { projectRoot } = options; - - const filePaths = findFiles('**/*.txt', { - projectRoot, - }); - - const fileMap = new Map( - filePaths.map((filePath) => { - const file = readFileSync(join(projectRoot, filePath), 'utf8'); - - const newFile = file.endsWith('\n') ? file : `${file}\n`; - - return [filePath, newFile]; - }), - ); - - createFiles(fileMap, options); -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/steps/create-options.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/steps/create-options.ts deleted file mode 100644 index 8c156fb8..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/steps/create-options.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { CodemodOptions, Options } from '../types/index.js'; - -export function createOptions(codemodOptions: CodemodOptions): Options { - const { projectRoot } = codemodOptions; - - return { - projectRoot, - }; -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/steps/index.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/steps/index.ts deleted file mode 100644 index 5435fe02..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/steps/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './add-end-of-line.js'; -export * from './create-options.js'; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/types/index.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/types/index.ts deleted file mode 100644 index e9bbbebc..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/src/types/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -type CodemodOptions = { - projectRoot: string; -}; - -type Options = { - projectRoot: string; -}; - -export type { CodemodOptions, Options }; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/index.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/index.ts deleted file mode 100644 index a8a96766..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { convertFixtureToJson } from '@codemod-utils/tests'; - -const inputProject = convertFixtureToJson('sample-project/input'); -const outputProject = convertFixtureToJson('sample-project/output'); - -export { inputProject, outputProject }; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/input/.gitkeep b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/input/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/output/.gitkeep b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/fixtures/sample-project/output/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/helpers/shared-test-setups/sample-project.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/helpers/shared-test-setups/sample-project.ts deleted file mode 100644 index a7d7ecab..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/helpers/shared-test-setups/sample-project.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { CodemodOptions, Options } from '../../../src/types/index.js'; - -const codemodOptions: CodemodOptions = { - projectRoot: 'tmp/sample-project', -}; - -const options: Options = { - projectRoot: 'tmp/sample-project', -}; - -export { codemodOptions, options }; diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/index/sample-project.test.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/index/sample-project.test.ts deleted file mode 100644 index 7a97215f..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/index/sample-project.test.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { assertFixture, loadFixture, test } from '@codemod-utils/tests'; - -import { runCodemod } from '../../src/index.js'; -import { - inputProject, - outputProject, -} from '../fixtures/sample-project/index.js'; -import { codemodOptions } from '../helpers/shared-test-setups/sample-project.js'; - -test('index > sample-project', function () { - loadFixture(inputProject, codemodOptions); - - runCodemod(codemodOptions); - - assertFixture(outputProject, codemodOptions); - - // Check idempotence - runCodemod(codemodOptions); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/base-case.test.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/base-case.test.ts deleted file mode 100644 index cf5dfe06..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/base-case.test.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { assertFixture, loadFixture, test } from '@codemod-utils/tests'; - -import { addEndOfLine } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/sample-project.js'; - -test('steps | add-end-of-line > base case', function () { - const inputProject = { - 'file.txt': 'Hello world!', - }; - - const outputProject = { - 'file.txt': 'Hello world!\n', - }; - - loadFixture(inputProject, codemodOptions); - - addEndOfLine(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/edge-case-file-ends-with-newline.test.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/edge-case-file-ends-with-newline.test.ts deleted file mode 100644 index 2340e587..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/edge-case-file-ends-with-newline.test.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { assertFixture, loadFixture, test } from '@codemod-utils/tests'; - -import { addEndOfLine } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/sample-project.js'; - -test('steps | add-end-of-line > edge case (file ends with newline)', function () { - const inputProject = { - 'file.txt': 'Hello world!\n', - }; - - const outputProject = { - 'file.txt': 'Hello world!\n', - }; - - loadFixture(inputProject, codemodOptions); - - addEndOfLine(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/edge-case-file-is-empty.test.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/edge-case-file-is-empty.test.ts deleted file mode 100644 index 218b3c4e..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/steps/add-end-of-line/edge-case-file-is-empty.test.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { assertFixture, loadFixture, test } from '@codemod-utils/tests'; - -import { addEndOfLine } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/sample-project.js'; - -test('steps | add-end-of-line > edge case (file is empty)', function () { - const inputProject = { - 'file.txt': '', - }; - - const outputProject = { - 'file.txt': '\n', - }; - - loadFixture(inputProject, codemodOptions); - - addEndOfLine(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/steps/create-options/sample-project.test.ts b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/steps/create-options/sample-project.test.ts deleted file mode 100644 index fbfe0291..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tests/steps/create-options/sample-project.test.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { assert, test } from '@codemod-utils/tests'; - -import { createOptions } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/sample-project.js'; - -test('steps | create-options > sample-project', function () { - assert.deepStrictEqual(createOptions(codemodOptions), options); -}); diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tsconfig.build.json b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tsconfig.build.json deleted file mode 100644 index a3d8218c..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tsconfig.build.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": [ - "@tsconfig/node18/tsconfig", - "@tsconfig/strictest/tsconfig" - ], - "compilerOptions": { - "declaration": false, - "moduleResolution": "NodeNext", - "outDir": "dist" - }, - "include": ["bin", "src"], - "exclude": ["src/blueprints"] -} diff --git a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tsconfig.json b/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tsconfig.json deleted file mode 100644 index 5387b492..00000000 --- a/packages/cli/tests/fixtures/steps/create-files-from-blueprints/typescript/output/ember-codemod-pod-to-octane/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": [ - "@tsconfig/node18/tsconfig", - "@tsconfig/strictest/tsconfig" - ], - "compilerOptions": { - "declaration": false, - "moduleResolution": "NodeNext", - "outDir": "dist-for-testing" - }, - "include": ["bin", "src", "tests"], - "exclude": ["src/blueprints", "tests/fixtures"] -} diff --git a/packages/cli/tests/fixtures/steps/update-package-json/javascript-with-addons/input/ember-codemod-args-to-signature/package.json b/packages/cli/tests/fixtures/steps/update-package-json/javascript-with-addons/input/ember-codemod-args-to-signature/package.json deleted file mode 100644 index be89ea67..00000000 --- a/packages/cli/tests/fixtures/steps/update-package-json/javascript-with-addons/input/ember-codemod-args-to-signature/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "ember-codemod-args-to-signature", - "version": "0.0.0", - "private": true, - "description": "Small description for ember-codemod-args-to-signature goes here", - "keywords": [ - "codemod", - "ember-codemod", - "emberjs" - ], - "repository": "", - "license": "MIT", - "author": "", - "type": "module", - "main": "src/index.js", - "bin": "bin/ember-codemod-args-to-signature.js", - "directories": { - "test": "tests" - }, - "files": [ - "bin", - "src" - ], - "scripts": { - "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", - "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", - "lint:js": "eslint . --cache", - "lint:js:fix": "eslint . --fix", - "release:changelog": "changeset version", - "release:publish": "changeset publish", - "test": "mt tests --quiet" - }, - "dependencies": {}, - "devDependencies": {}, - "engines": { - "node": "18.* || >= 20" - } -} diff --git a/packages/cli/tests/fixtures/steps/update-package-json/javascript-with-addons/output/ember-codemod-args-to-signature/package.json b/packages/cli/tests/fixtures/steps/update-package-json/javascript-with-addons/output/ember-codemod-args-to-signature/package.json deleted file mode 100644 index e755f13a..00000000 --- a/packages/cli/tests/fixtures/steps/update-package-json/javascript-with-addons/output/ember-codemod-args-to-signature/package.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "name": "ember-codemod-args-to-signature", - "version": "0.0.0", - "private": true, - "description": "Small description for ember-codemod-args-to-signature goes here", - "keywords": [ - "codemod", - "ember-codemod", - "emberjs" - ], - "repository": "", - "license": "MIT", - "author": "", - "type": "module", - "main": "src/index.js", - "bin": "bin/ember-codemod-args-to-signature.js", - "directories": { - "test": "tests" - }, - "files": [ - "bin", - "src" - ], - "scripts": { - "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", - "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", - "lint:js": "eslint . --cache", - "lint:js:fix": "eslint . --fix", - "release:changelog": "changeset version", - "release:publish": "changeset publish", - "test": "mt tests --quiet" - }, - "dependencies": { - "@codemod-utils/ast-javascript": "^1.2.7", - "@codemod-utils/ast-template": "^1.1.3", - "@codemod-utils/blueprints": "^1.1.4", - "@codemod-utils/ember-cli-string": "^1.1.3", - "@codemod-utils/files": "^2.0.3", - "@codemod-utils/json": "^1.1.8", - "yargs": "^17.7.2" - }, - "devDependencies": { - "@babel/core": "^7.24.7", - "@babel/eslint-parser": "^7.24.7", - "@changesets/cli": "^2.27.7", - "@changesets/get-github-info": "^0.6.0", - "@codemod-utils/tests": "^1.1.6", - "@sondr3/minitest": "^0.1.2", - "concurrently": "^8.2.2", - "eslint": "^8.57.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-import": "^2.29.1", - "eslint-plugin-n": "^17.9.0", - "eslint-plugin-prettier": "^5.1.3", - "eslint-plugin-simple-import-sort": "^12.1.1", - "prettier": "^3.3.2" - }, - "engines": { - "node": "18.* || >= 20" - } -} diff --git a/packages/cli/tests/fixtures/steps/update-package-json/javascript/input/ember-codemod-pod-to-octane/package.json b/packages/cli/tests/fixtures/steps/update-package-json/javascript/input/ember-codemod-pod-to-octane/package.json deleted file mode 100644 index 22d80b6c..00000000 --- a/packages/cli/tests/fixtures/steps/update-package-json/javascript/input/ember-codemod-pod-to-octane/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "ember-codemod-pod-to-octane", - "version": "0.0.0", - "private": true, - "description": "Small description for ember-codemod-pod-to-octane goes here", - "keywords": [ - "codemod", - "ember-codemod", - "emberjs" - ], - "repository": "", - "license": "MIT", - "author": "", - "type": "module", - "main": "src/index.js", - "bin": "bin/ember-codemod-pod-to-octane.js", - "directories": { - "test": "tests" - }, - "files": [ - "bin", - "src" - ], - "scripts": { - "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", - "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", - "lint:js": "eslint . --cache", - "lint:js:fix": "eslint . --fix", - "release:changelog": "changeset version", - "release:publish": "changeset publish", - "test": "mt tests --quiet" - }, - "dependencies": {}, - "devDependencies": {}, - "engines": { - "node": "18.* || >= 20" - } -} diff --git a/packages/cli/tests/fixtures/steps/update-package-json/javascript/output/ember-codemod-pod-to-octane/package.json b/packages/cli/tests/fixtures/steps/update-package-json/javascript/output/ember-codemod-pod-to-octane/package.json deleted file mode 100644 index e30663cf..00000000 --- a/packages/cli/tests/fixtures/steps/update-package-json/javascript/output/ember-codemod-pod-to-octane/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "ember-codemod-pod-to-octane", - "version": "0.0.0", - "private": true, - "description": "Small description for ember-codemod-pod-to-octane goes here", - "keywords": [ - "codemod", - "ember-codemod", - "emberjs" - ], - "repository": "", - "license": "MIT", - "author": "", - "type": "module", - "main": "src/index.js", - "bin": "bin/ember-codemod-pod-to-octane.js", - "directories": { - "test": "tests" - }, - "files": [ - "bin", - "src" - ], - "scripts": { - "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", - "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", - "lint:js": "eslint . --cache", - "lint:js:fix": "eslint . --fix", - "release:changelog": "changeset version", - "release:publish": "changeset publish", - "test": "mt tests --quiet" - }, - "dependencies": { - "@codemod-utils/files": "^2.0.3", - "yargs": "^17.7.2" - }, - "devDependencies": { - "@babel/core": "^7.24.7", - "@babel/eslint-parser": "^7.24.7", - "@changesets/cli": "^2.27.7", - "@changesets/get-github-info": "^0.6.0", - "@codemod-utils/tests": "^1.1.6", - "@sondr3/minitest": "^0.1.2", - "concurrently": "^8.2.2", - "eslint": "^8.57.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-import": "^2.29.1", - "eslint-plugin-n": "^17.9.0", - "eslint-plugin-prettier": "^5.1.3", - "eslint-plugin-simple-import-sort": "^12.1.1", - "prettier": "^3.3.2" - }, - "engines": { - "node": "18.* || >= 20" - } -} diff --git a/packages/cli/tests/fixtures/steps/update-package-json/typescript-with-addons/input/ember-codemod-args-to-signature/package.json b/packages/cli/tests/fixtures/steps/update-package-json/typescript-with-addons/input/ember-codemod-args-to-signature/package.json deleted file mode 100644 index b12f366c..00000000 --- a/packages/cli/tests/fixtures/steps/update-package-json/typescript-with-addons/input/ember-codemod-args-to-signature/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "ember-codemod-args-to-signature", - "version": "0.0.0", - "private": true, - "description": "Small description for ember-codemod-args-to-signature goes here", - "keywords": [ - "codemod", - "ember-codemod", - "emberjs" - ], - "repository": "", - "license": "MIT", - "author": "", - "type": "module", - "main": "dist/src/index.js", - "bin": "dist/bin/ember-codemod-args-to-signature.js", - "directories": { - "test": "tests" - }, - "files": [ - "dist" - ], - "scripts": { - "build": "./build.sh --production", - "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", - "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", - "lint:js": "eslint . --cache", - "lint:js:fix": "eslint . --fix", - "lint:types": "tsc --noEmit", - "prepare": "pnpm build", - "release:changelog": "changeset version", - "release:publish": "pnpm build && changeset publish", - "test": "./build.sh --test && mt dist-for-testing --quiet" - }, - "dependencies": {}, - "devDependencies": {}, - "engines": { - "node": "18.* || >= 20" - } -} diff --git a/packages/cli/tests/fixtures/steps/update-package-json/typescript-with-addons/output/ember-codemod-args-to-signature/package.json b/packages/cli/tests/fixtures/steps/update-package-json/typescript-with-addons/output/ember-codemod-args-to-signature/package.json deleted file mode 100644 index e0e139b0..00000000 --- a/packages/cli/tests/fixtures/steps/update-package-json/typescript-with-addons/output/ember-codemod-args-to-signature/package.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "name": "ember-codemod-args-to-signature", - "version": "0.0.0", - "private": true, - "description": "Small description for ember-codemod-args-to-signature goes here", - "keywords": [ - "codemod", - "ember-codemod", - "emberjs" - ], - "repository": "", - "license": "MIT", - "author": "", - "type": "module", - "main": "dist/src/index.js", - "bin": "dist/bin/ember-codemod-args-to-signature.js", - "directories": { - "test": "tests" - }, - "files": [ - "dist" - ], - "scripts": { - "build": "./build.sh --production", - "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", - "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", - "lint:js": "eslint . --cache", - "lint:js:fix": "eslint . --fix", - "lint:types": "tsc --noEmit", - "prepare": "pnpm build", - "release:changelog": "changeset version", - "release:publish": "pnpm build && changeset publish", - "test": "./build.sh --test && mt dist-for-testing --quiet" - }, - "dependencies": { - "@codemod-utils/ast-javascript": "^1.2.7", - "@codemod-utils/ast-template": "^1.1.3", - "@codemod-utils/blueprints": "^1.1.4", - "@codemod-utils/ember-cli-string": "^1.1.3", - "@codemod-utils/files": "^2.0.3", - "@codemod-utils/json": "^1.1.8", - "yargs": "^17.7.2" - }, - "devDependencies": { - "@babel/core": "^7.24.7", - "@changesets/cli": "^2.27.7", - "@changesets/get-github-info": "^0.6.0", - "@codemod-utils/tests": "^1.1.6", - "@sondr3/minitest": "^0.1.2", - "@tsconfig/node18": "^18.2.4", - "@tsconfig/strictest": "^2.0.5", - "@types/node": "^18.19.39", - "@types/yargs": "^17.0.32", - "@typescript-eslint/eslint-plugin": "^7.16.0", - "@typescript-eslint/parser": "^7.16.0", - "concurrently": "^8.2.2", - "eslint": "^8.57.0", - "eslint-config-prettier": "^9.1.0", - "eslint-import-resolver-typescript": "^3.6.1", - "eslint-plugin-import": "^2.29.1", - "eslint-plugin-n": "^17.9.0", - "eslint-plugin-prettier": "^5.1.3", - "eslint-plugin-simple-import-sort": "^12.1.1", - "eslint-plugin-typescript-sort-keys": "^3.2.0", - "prettier": "^3.3.2", - "typescript": "^5.5.3" - }, - "engines": { - "node": "18.* || >= 20" - }, - "pnpm": { - "overrides": { - "eslint-plugin-import@2.29.1>tsconfig-paths": "^4.2.0" - } - } -} diff --git a/packages/cli/tests/fixtures/steps/update-package-json/typescript/input/ember-codemod-pod-to-octane/package.json b/packages/cli/tests/fixtures/steps/update-package-json/typescript/input/ember-codemod-pod-to-octane/package.json deleted file mode 100644 index 98891865..00000000 --- a/packages/cli/tests/fixtures/steps/update-package-json/typescript/input/ember-codemod-pod-to-octane/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "ember-codemod-pod-to-octane", - "version": "0.0.0", - "private": true, - "description": "Small description for ember-codemod-pod-to-octane goes here", - "keywords": [ - "codemod", - "ember-codemod", - "emberjs" - ], - "repository": "", - "license": "MIT", - "author": "", - "type": "module", - "main": "dist/src/index.js", - "bin": "dist/bin/ember-codemod-pod-to-octane.js", - "directories": { - "test": "tests" - }, - "files": [ - "dist" - ], - "scripts": { - "build": "./build.sh --production", - "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", - "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", - "lint:js": "eslint . --cache", - "lint:js:fix": "eslint . --fix", - "lint:types": "tsc --noEmit", - "prepare": "pnpm build", - "release:changelog": "changeset version", - "release:publish": "pnpm build && changeset publish", - "test": "./build.sh --test && mt dist-for-testing --quiet" - }, - "dependencies": {}, - "devDependencies": {}, - "engines": { - "node": "18.* || >= 20" - } -} diff --git a/packages/cli/tests/fixtures/steps/update-package-json/typescript/output/ember-codemod-pod-to-octane/package.json b/packages/cli/tests/fixtures/steps/update-package-json/typescript/output/ember-codemod-pod-to-octane/package.json deleted file mode 100644 index 36c9cf5a..00000000 --- a/packages/cli/tests/fixtures/steps/update-package-json/typescript/output/ember-codemod-pod-to-octane/package.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "name": "ember-codemod-pod-to-octane", - "version": "0.0.0", - "private": true, - "description": "Small description for ember-codemod-pod-to-octane goes here", - "keywords": [ - "codemod", - "ember-codemod", - "emberjs" - ], - "repository": "", - "license": "MIT", - "author": "", - "type": "module", - "main": "dist/src/index.js", - "bin": "dist/bin/ember-codemod-pod-to-octane.js", - "directories": { - "test": "tests" - }, - "files": [ - "dist" - ], - "scripts": { - "build": "./build.sh --production", - "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", - "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", - "lint:js": "eslint . --cache", - "lint:js:fix": "eslint . --fix", - "lint:types": "tsc --noEmit", - "prepare": "pnpm build", - "release:changelog": "changeset version", - "release:publish": "pnpm build && changeset publish", - "test": "./build.sh --test && mt dist-for-testing --quiet" - }, - "dependencies": { - "@codemod-utils/files": "^2.0.3", - "yargs": "^17.7.2" - }, - "devDependencies": { - "@babel/core": "^7.24.7", - "@changesets/cli": "^2.27.7", - "@changesets/get-github-info": "^0.6.0", - "@codemod-utils/tests": "^1.1.6", - "@sondr3/minitest": "^0.1.2", - "@tsconfig/node18": "^18.2.4", - "@tsconfig/strictest": "^2.0.5", - "@types/node": "^18.19.39", - "@types/yargs": "^17.0.32", - "@typescript-eslint/eslint-plugin": "^7.16.0", - "@typescript-eslint/parser": "^7.16.0", - "concurrently": "^8.2.2", - "eslint": "^8.57.0", - "eslint-config-prettier": "^9.1.0", - "eslint-import-resolver-typescript": "^3.6.1", - "eslint-plugin-import": "^2.29.1", - "eslint-plugin-n": "^17.9.0", - "eslint-plugin-prettier": "^5.1.3", - "eslint-plugin-simple-import-sort": "^12.1.1", - "eslint-plugin-typescript-sort-keys": "^3.2.0", - "prettier": "^3.3.2", - "typescript": "^5.5.3" - }, - "engines": { - "node": "18.* || >= 20" - }, - "pnpm": { - "overrides": { - "eslint-plugin-import@2.29.1>tsconfig-paths": "^4.2.0" - } - } -} diff --git a/packages/cli/tests/fixtures/typescript-with-addons/output/ember-codemod-args-to-signature/.github/workflows/ci.yml b/packages/cli/tests/fixtures/typescript-with-addons/output/ember-codemod-args-to-signature/.github/workflows/ci.yml index 8436dcb6..fbce4ff5 100644 --- a/packages/cli/tests/fixtures/typescript-with-addons/output/ember-codemod-args-to-signature/.github/workflows/ci.yml +++ b/packages/cli/tests/fixtures/typescript-with-addons/output/ember-codemod-args-to-signature/.github/workflows/ci.yml @@ -8,6 +8,7 @@ on: env: NODE_VERSION: 18 + PNPM_VERSION: 9 jobs: lint: @@ -19,9 +20,9 @@ jobs: uses: actions/checkout@v4 - name: Set up pnpm - uses: pnpm/action-setup@v3 + uses: pnpm/action-setup@v4 with: - version: latest + version: ${{ env.PNPM_VERSION }} - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v4 @@ -45,9 +46,9 @@ jobs: uses: actions/checkout@v4 - name: Set up pnpm - uses: pnpm/action-setup@v3 + uses: pnpm/action-setup@v4 with: - version: latest + version: ${{ env.PNPM_VERSION }} - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v4 diff --git a/packages/cli/tests/fixtures/typescript-with-addons/output/ember-codemod-args-to-signature/package.json b/packages/cli/tests/fixtures/typescript-with-addons/output/ember-codemod-args-to-signature/package.json index e0e139b0..11ff65a7 100644 --- a/packages/cli/tests/fixtures/typescript-with-addons/output/ember-codemod-args-to-signature/package.json +++ b/packages/cli/tests/fixtures/typescript-with-addons/output/ember-codemod-args-to-signature/package.json @@ -22,8 +22,8 @@ ], "scripts": { "build": "./build.sh --production", - "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", - "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", + "lint": "concurrently 'pnpm:lint:*(!fix)' --names 'lint:'", + "lint:fix": "concurrently 'pnpm:lint:*:fix' --names 'fix:'", "lint:js": "eslint . --cache", "lint:js:fix": "eslint . --fix", "lint:types": "tsc --noEmit", @@ -33,40 +33,41 @@ "test": "./build.sh --test && mt dist-for-testing --quiet" }, "dependencies": { - "@codemod-utils/ast-javascript": "^1.2.7", - "@codemod-utils/ast-template": "^1.1.3", - "@codemod-utils/blueprints": "^1.1.4", - "@codemod-utils/ember-cli-string": "^1.1.3", - "@codemod-utils/files": "^2.0.3", - "@codemod-utils/json": "^1.1.8", + "@codemod-utils/ast-javascript": "^1.2.8", + "@codemod-utils/ast-template": "^1.1.4", + "@codemod-utils/blueprints": "^1.1.5", + "@codemod-utils/ember-cli-string": "^1.1.4", + "@codemod-utils/files": "^2.0.4", + "@codemod-utils/json": "^1.1.9", "yargs": "^17.7.2" }, "devDependencies": { - "@babel/core": "^7.24.7", + "@babel/core": "^7.25.2", "@changesets/cli": "^2.27.7", "@changesets/get-github-info": "^0.6.0", - "@codemod-utils/tests": "^1.1.6", + "@codemod-utils/tests": "^1.1.7", "@sondr3/minitest": "^0.1.2", "@tsconfig/node18": "^18.2.4", "@tsconfig/strictest": "^2.0.5", - "@types/node": "^18.19.39", - "@types/yargs": "^17.0.32", - "@typescript-eslint/eslint-plugin": "^7.16.0", - "@typescript-eslint/parser": "^7.16.0", + "@types/node": "^18.19.44", + "@types/yargs": "^17.0.33", + "@typescript-eslint/eslint-plugin": "^8.1.0", + "@typescript-eslint/parser": "^8.1.0", "concurrently": "^8.2.2", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-import": "^2.29.1", - "eslint-plugin-n": "^17.9.0", - "eslint-plugin-prettier": "^5.1.3", + "eslint-plugin-n": "^17.10.2", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-simple-import-sort": "^12.1.1", "eslint-plugin-typescript-sort-keys": "^3.2.0", - "prettier": "^3.3.2", - "typescript": "^5.5.3" + "prettier": "^3.3.3", + "typescript": "^5.5.4" }, "engines": { - "node": "18.* || >= 20" + "node": "18.* || >= 20", + "pnpm": ">= 9" }, "pnpm": { "overrides": { diff --git a/packages/cli/tests/fixtures/typescript/output/ember-codemod-pod-to-octane/.github/workflows/ci.yml b/packages/cli/tests/fixtures/typescript/output/ember-codemod-pod-to-octane/.github/workflows/ci.yml index 8436dcb6..fbce4ff5 100644 --- a/packages/cli/tests/fixtures/typescript/output/ember-codemod-pod-to-octane/.github/workflows/ci.yml +++ b/packages/cli/tests/fixtures/typescript/output/ember-codemod-pod-to-octane/.github/workflows/ci.yml @@ -8,6 +8,7 @@ on: env: NODE_VERSION: 18 + PNPM_VERSION: 9 jobs: lint: @@ -19,9 +20,9 @@ jobs: uses: actions/checkout@v4 - name: Set up pnpm - uses: pnpm/action-setup@v3 + uses: pnpm/action-setup@v4 with: - version: latest + version: ${{ env.PNPM_VERSION }} - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v4 @@ -45,9 +46,9 @@ jobs: uses: actions/checkout@v4 - name: Set up pnpm - uses: pnpm/action-setup@v3 + uses: pnpm/action-setup@v4 with: - version: latest + version: ${{ env.PNPM_VERSION }} - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v4 diff --git a/packages/cli/tests/fixtures/typescript/output/ember-codemod-pod-to-octane/package.json b/packages/cli/tests/fixtures/typescript/output/ember-codemod-pod-to-octane/package.json index 36c9cf5a..b83de569 100644 --- a/packages/cli/tests/fixtures/typescript/output/ember-codemod-pod-to-octane/package.json +++ b/packages/cli/tests/fixtures/typescript/output/ember-codemod-pod-to-octane/package.json @@ -22,8 +22,8 @@ ], "scripts": { "build": "./build.sh --production", - "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", - "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", + "lint": "concurrently 'pnpm:lint:*(!fix)' --names 'lint:'", + "lint:fix": "concurrently 'pnpm:lint:*:fix' --names 'fix:'", "lint:js": "eslint . --cache", "lint:js:fix": "eslint . --fix", "lint:types": "tsc --noEmit", @@ -33,35 +33,36 @@ "test": "./build.sh --test && mt dist-for-testing --quiet" }, "dependencies": { - "@codemod-utils/files": "^2.0.3", + "@codemod-utils/files": "^2.0.4", "yargs": "^17.7.2" }, "devDependencies": { - "@babel/core": "^7.24.7", + "@babel/core": "^7.25.2", "@changesets/cli": "^2.27.7", "@changesets/get-github-info": "^0.6.0", - "@codemod-utils/tests": "^1.1.6", + "@codemod-utils/tests": "^1.1.7", "@sondr3/minitest": "^0.1.2", "@tsconfig/node18": "^18.2.4", "@tsconfig/strictest": "^2.0.5", - "@types/node": "^18.19.39", - "@types/yargs": "^17.0.32", - "@typescript-eslint/eslint-plugin": "^7.16.0", - "@typescript-eslint/parser": "^7.16.0", + "@types/node": "^18.19.44", + "@types/yargs": "^17.0.33", + "@typescript-eslint/eslint-plugin": "^8.1.0", + "@typescript-eslint/parser": "^8.1.0", "concurrently": "^8.2.2", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-import": "^2.29.1", - "eslint-plugin-n": "^17.9.0", - "eslint-plugin-prettier": "^5.1.3", + "eslint-plugin-n": "^17.10.2", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-simple-import-sort": "^12.1.1", "eslint-plugin-typescript-sort-keys": "^3.2.0", - "prettier": "^3.3.2", - "typescript": "^5.5.3" + "prettier": "^3.3.3", + "typescript": "^5.5.4" }, "engines": { - "node": "18.* || >= 20" + "node": "18.* || >= 20", + "pnpm": ">= 9" }, "pnpm": { "overrides": { diff --git a/packages/cli/tests/steps/create-files-from-blueprints/javascript-with-addons.test.ts b/packages/cli/tests/steps/create-files-from-blueprints/javascript-with-addons.test.ts deleted file mode 100644 index f0bcf7b2..00000000 --- a/packages/cli/tests/steps/create-files-from-blueprints/javascript-with-addons.test.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { - assertFixture, - convertFixtureToJson, - loadFixture, - test, -} from '@codemod-utils/tests'; - -import { createFilesFromBlueprints } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/javascript-with-addons.js'; - -test('migration | steps | create-files-from-blueprints > javascript-with-addons', function () { - const inputProject = {}; - - const outputProject = convertFixtureToJson( - 'steps/create-files-from-blueprints/javascript-with-addons/output', - ); - - loadFixture(inputProject, codemodOptions); - - createFilesFromBlueprints(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/steps/create-files-from-blueprints/javascript.test.ts b/packages/cli/tests/steps/create-files-from-blueprints/javascript.test.ts deleted file mode 100644 index 99322fc7..00000000 --- a/packages/cli/tests/steps/create-files-from-blueprints/javascript.test.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { - assertFixture, - convertFixtureToJson, - loadFixture, - test, -} from '@codemod-utils/tests'; - -import { createFilesFromBlueprints } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/javascript.js'; - -test('migration | steps | create-files-from-blueprints > javascript', function () { - const inputProject = {}; - - const outputProject = convertFixtureToJson( - 'steps/create-files-from-blueprints/javascript/output', - ); - - loadFixture(inputProject, codemodOptions); - - createFilesFromBlueprints(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/steps/create-files-from-blueprints/typescript-with-addons.test.ts b/packages/cli/tests/steps/create-files-from-blueprints/typescript-with-addons.test.ts deleted file mode 100644 index 75ba5dce..00000000 --- a/packages/cli/tests/steps/create-files-from-blueprints/typescript-with-addons.test.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { - assertFixture, - convertFixtureToJson, - loadFixture, - test, -} from '@codemod-utils/tests'; - -import { createFilesFromBlueprints } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/typescript-with-addons.js'; - -test('migration | steps | create-files-from-blueprints > typescript-with-addons', function () { - const inputProject = {}; - - const outputProject = convertFixtureToJson( - 'steps/create-files-from-blueprints/typescript-with-addons/output', - ); - - loadFixture(inputProject, codemodOptions); - - createFilesFromBlueprints(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/steps/create-files-from-blueprints/typescript.test.ts b/packages/cli/tests/steps/create-files-from-blueprints/typescript.test.ts deleted file mode 100644 index 57474c2e..00000000 --- a/packages/cli/tests/steps/create-files-from-blueprints/typescript.test.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { - assertFixture, - convertFixtureToJson, - loadFixture, - test, -} from '@codemod-utils/tests'; - -import { createFilesFromBlueprints } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/typescript.js'; - -test('migration | steps | create-files-from-blueprints > typescript', function () { - const inputProject = {}; - - const outputProject = convertFixtureToJson( - 'steps/create-files-from-blueprints/typescript/output', - ); - - loadFixture(inputProject, codemodOptions); - - createFilesFromBlueprints(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/steps/update-package-json/javascript-with-addons.test.ts b/packages/cli/tests/steps/update-package-json/javascript-with-addons.test.ts deleted file mode 100644 index e78dca50..00000000 --- a/packages/cli/tests/steps/update-package-json/javascript-with-addons.test.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { - assertFixture, - convertFixtureToJson, - loadFixture, - test, -} from '@codemod-utils/tests'; - -import { updatePackageJson } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/javascript-with-addons.js'; - -test('migration | steps | update-package-json > javascript-with-addons', function () { - const inputProject = convertFixtureToJson( - 'steps/update-package-json/javascript-with-addons/output', - ); - - const outputProject = convertFixtureToJson( - 'steps/update-package-json/javascript-with-addons/output', - ); - - loadFixture(inputProject, codemodOptions); - - updatePackageJson(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/steps/update-package-json/javascript.test.ts b/packages/cli/tests/steps/update-package-json/javascript.test.ts deleted file mode 100644 index 0a09eb4e..00000000 --- a/packages/cli/tests/steps/update-package-json/javascript.test.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { - assertFixture, - convertFixtureToJson, - loadFixture, - test, -} from '@codemod-utils/tests'; - -import { updatePackageJson } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/javascript.js'; - -test('migration | steps | update-package-json > javascript', function () { - const inputProject = convertFixtureToJson( - 'steps/update-package-json/javascript/output', - ); - - const outputProject = convertFixtureToJson( - 'steps/update-package-json/javascript/output', - ); - - loadFixture(inputProject, codemodOptions); - - updatePackageJson(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/steps/update-package-json/typescript-with-addons.test.ts b/packages/cli/tests/steps/update-package-json/typescript-with-addons.test.ts deleted file mode 100644 index bb63f692..00000000 --- a/packages/cli/tests/steps/update-package-json/typescript-with-addons.test.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { - assertFixture, - convertFixtureToJson, - loadFixture, - test, -} from '@codemod-utils/tests'; - -import { updatePackageJson } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/typescript-with-addons.js'; - -test('migration | steps | update-package-json > typescript-with-addons', function () { - const inputProject = convertFixtureToJson( - 'steps/update-package-json/typescript-with-addons/output', - ); - - const outputProject = convertFixtureToJson( - 'steps/update-package-json/typescript-with-addons/output', - ); - - loadFixture(inputProject, codemodOptions); - - updatePackageJson(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/packages/cli/tests/steps/update-package-json/typescript.test.ts b/packages/cli/tests/steps/update-package-json/typescript.test.ts deleted file mode 100644 index 95c92902..00000000 --- a/packages/cli/tests/steps/update-package-json/typescript.test.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { - assertFixture, - convertFixtureToJson, - loadFixture, - test, -} from '@codemod-utils/tests'; - -import { updatePackageJson } from '../../../src/steps/index.js'; -import { - codemodOptions, - options, -} from '../../helpers/shared-test-setups/typescript.js'; - -test('migration | steps | update-package-json > typescript', function () { - const inputProject = convertFixtureToJson( - 'steps/update-package-json/typescript/output', - ); - - const outputProject = convertFixtureToJson( - 'steps/update-package-json/typescript/output', - ); - - loadFixture(inputProject, codemodOptions); - - updatePackageJson(options); - - assertFixture(outputProject, codemodOptions); -});