Skip to content

Commit

Permalink
Updated blueprints for @codemod-utils/cli (#126)
Browse files Browse the repository at this point in the history
* 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 <ijlee2@users.noreply.github.com>
  • Loading branch information
ijlee2 and ijlee2 authored Aug 13, 2024
1 parent e39b70a commit 5cbd8ae
Show file tree
Hide file tree
Showing 176 changed files with 117 additions and 4,231 deletions.
5 changes: 5 additions & 0 deletions .changeset/lucky-rivers-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@codemod-utils/cli": minor
---

Updated dependencies and supported pnpm@9
9 changes: 5 additions & 4 deletions packages/cli/src/blueprints/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
NODE_VERSION: 18
PNPM_VERSION: 9

jobs:
lint:
Expand All @@ -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
Expand All @@ -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
Expand Down
14 changes: 8 additions & 6 deletions packages/cli/src/blueprints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -35,7 +35,8 @@
"dependencies": {},
"devDependencies": {},
"engines": {
"node": "18.* || >= 20"
"node": "18.* || >= 20",
"pnpm": ">= 9"
}
}<% } else { %>{
"name": "<%= options.codemod.name %>",
Expand All @@ -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",
Expand All @@ -72,6 +73,7 @@
"dependencies": {},
"devDependencies": {},
"engines": {
"node": "18.* || >= 20"
"node": "18.* || >= 20",
"pnpm": ">= 9"
}
}<% } %>
34 changes: 17 additions & 17 deletions packages/cli/src/utils/blueprints/get-version.ts
Original file line number Diff line number Diff line change
@@ -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'],
]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
NODE_VERSION: 18
PNPM_VERSION: 9

jobs:
lint:
Expand All @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,40 +22,41 @@
"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",
"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",
"@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"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
NODE_VERSION: 18
PNPM_VERSION: 9

jobs:
lint:
Expand All @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,35 +22,36 @@
"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",
"release:publish": "changeset publish",
"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"
}
}

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 5cbd8ae

Please sign in to comment.