Skip to content

Commit 49cfe42

Browse files
author
Kelly Selden
committed
codemodsUrl => codemodsSource
1 parent d3405cc commit 49cfe42

32 files changed

Lines changed: 66 additions & 65 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ ember-cli-update --run-codemods
7777
| --to | Update to a version that isn\'t latest | String | "2.14.1" "~2.15" "latest" "beta" | "*" |
7878
| --resolve-conflicts | Automatically run git mergetool if conflicts found | Boolean | | false |
7979
| --run-codemods | Run codemods to help update your code | Boolean | | false |
80-
| --codemods-url | Supply your own codemods manifest via URL | String | "ember-app-codemods-manifest@*" "git+https://github.com/ember-cli/ember-app-codemods-manifest.git#semver:*" | |
80+
| --codemods-source | Supply your own codemods manifest via URL | String | "ember-app-codemods-manifest@*" "git+https://github.com/ember-cli/ember-app-codemods-manifest.git#semver:*" | |
8181
| --codemods-json | Supply your own codemods manifest via JSON | String | '{ /* json */ }' | |
8282
| --reset | Reset your code to the default blueprint at the new version | Boolean | | false |
8383
| --compare-only | Show the changes between different versions without updating | Boolean | | false |

bin/commands/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports.builder = {
1111
blueprint: args['blueprint'],
1212
to: args['to'],
1313
resolveConflicts: args['resolve-conflicts'],
14-
codemodsUrl: args['codemods-url'],
14+
codemodsSource: args['codemods-source'],
1515
reset: args['reset']
1616
};
1717

bin/commands/save.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports.describe = 'save old blueprint state';
1010
module.exports.builder = {
1111
blueprint: args['blueprint'],
1212
from: args['from'],
13-
codemodsUrl: args['codemods-url']
13+
codemodsSource: args['codemods-source']
1414
};
1515

1616
module.exports.handler = async function handler(argv) {

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"src"
3939
],
4040
"dependencies": {
41-
"boilerplate-update": "0.35.0",
41+
"boilerplate-update": "0.36.0",
4242
"debug": "^4.1.1",
4343
"execa": "^3.4.0",
4444
"fs-extra": "^8.0.0",

src/args.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
default: false,
2424
description: 'Run codemods to help update your code'
2525
},
26-
'codemods-url': {
26+
'codemods-source': {
2727
type: 'string',
2828
description: 'Supply your own codemods manifest via URL'
2929
},

src/command.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ module.exports = {
3939
default: args['run-codemods'].default
4040
},
4141
{
42-
name: 'codemods-url',
43-
description: args['codemods-url'].description,
42+
name: 'codemods-source',
43+
description: args['codemods-source'].description,
4444
type: String
4545
},
4646
{

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.exports = async function emberCliUpdate({
5656
to = toDefault,
5757
resolveConflicts,
5858
runCodemods,
59-
codemodsUrl,
59+
codemodsSource,
6060
codemodsJson,
6161
reset,
6262
compareOnly,
@@ -155,8 +155,8 @@ module.exports = async function emberCliUpdate({
155155
createCustomDiff = true;
156156
}
157157

158-
if (codemodsUrl) {
159-
blueprint.codemodsUrl = codemodsUrl;
158+
if (codemodsSource) {
159+
blueprint.codemodsSource = codemodsSource;
160160
}
161161

162162
let baseBlueprint = await getBaseBlueprint({
@@ -252,7 +252,7 @@ module.exports = async function emberCliUpdate({
252252
statsOnly,
253253
listCodemods,
254254
runCodemods,
255-
codemodsUrl: blueprint.codemodsUrl,
255+
codemodsSource: blueprint.codemodsSource,
256256
codemodsJson,
257257
createCustomDiff,
258258
ignoredFiles: [await getBlueprintRelativeFilePath(cwd)]

src/init.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = async function init({
2222
blueprint: _blueprint,
2323
to = toDefault,
2424
resolveConflicts,
25-
codemodsUrl,
25+
codemodsSource,
2626
reset,
2727
blueprintOptions = []
2828
}) {
@@ -50,8 +50,8 @@ module.exports = async function init({
5050
let defaultBlueprint = await loadDefaultBlueprintFromDisk(cwd);
5151
packageName = defaultBlueprint.packageName;
5252
name = defaultBlueprint.name;
53-
if (!codemodsUrl) {
54-
codemodsUrl = defaultBlueprint.codemodsUrl;
53+
if (!codemodsSource) {
54+
codemodsSource = defaultBlueprint.codemodsSource;
5555
}
5656
}
5757

@@ -89,8 +89,8 @@ module.exports = async function init({
8989
blueprint.version = version;
9090
blueprint.path = path;
9191

92-
if (codemodsUrl) {
93-
blueprint.codemodsUrl = codemodsUrl;
92+
if (codemodsSource) {
93+
blueprint.codemodsSource = codemodsSource;
9494
}
9595

9696
let baseBlueprint = await getBaseBlueprint({

src/load-default-blueprint.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ const {
99

1010
function loadDefaultBlueprint(projectOptions = [], version) {
1111
let name = defaultAppBlueprintName;
12-
let codemodsUrl = 'ember-app-codemods-manifest@1';
12+
let codemodsSource = 'ember-app-codemods-manifest@1';
1313
if (projectOptions.includes('addon')) {
1414
name = defaultAddonBlueprintName;
15-
codemodsUrl = 'ember-addon-codemods-manifest@1';
15+
codemodsSource = 'ember-addon-codemods-manifest@1';
1616
}
1717

1818
let options = [];
@@ -28,7 +28,7 @@ function loadDefaultBlueprint(projectOptions = [], version) {
2828
packageName: defaultPackageName,
2929
name,
3030
version,
31-
codemodsUrl,
31+
codemodsSource,
3232
options,
3333
isBaseBlueprint: true
3434
});

0 commit comments

Comments
 (0)