Skip to content

Commit 7b3bdd1

Browse files
author
Robert Jackson
authored
[REFACTOR] Changes the name to native-class-codemod (#134)
[REFACTOR] Changes the name to native-class-codemod
2 parents 77b08e2 + d9df450 commit 7b3bdd1

8 files changed

Lines changed: 30 additions & 30 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## v0.2.1 (2019-06-19)
22

33
#### :bug: Bug Fix
4-
* [#125](https://github.com/ember-codemods/ember-es6-class-codemod/pull/125) Handle module failures gracefully while gathering telemetry. ([@rwjblue](https://github.com/rwjblue))
5-
* [#124](https://github.com/ember-codemods/ember-es6-class-codemod/pull/124) Add puppeteer launch flag to ignore https errors ([@ssutar](https://github.com/ssutar))
4+
* [#125](https://github.com/ember-codemods/ember-native-class-codemod/pull/125) Handle module failures gracefully while gathering telemetry. ([@rwjblue](https://github.com/rwjblue))
5+
* [#124](https://github.com/ember-codemods/ember-native-class-codemod/pull/124) Add puppeteer launch flag to ignore https errors ([@ssutar](https://github.com/ssutar))
66

77
#### :memo: Documentation
8-
* [#123](https://github.com/ember-codemods/ember-es6-class-codemod/pull/123) Add some missing fields to package.json. ([@rwjblue](https://github.com/rwjblue))
8+
* [#123](https://github.com/ember-codemods/ember-native-class-codemod/pull/123) Add some missing fields to package.json. ([@rwjblue](https://github.com/rwjblue))
99

1010
#### Committers: 2
1111
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))
@@ -14,22 +14,22 @@
1414
## v0.2.0 (2019-06-18)
1515

1616
#### :boom: Breaking Change
17-
* [#118](https://github.com/ember-codemods/ember-es6-class-codemod/pull/118) [FEATURE] Replace dyfactor with puppeteer ([@pzuraq](https://github.com/pzuraq))
17+
* [#118](https://github.com/ember-codemods/ember-native-class-codemod/pull/118) [FEATURE] Replace dyfactor with puppeteer ([@pzuraq](https://github.com/pzuraq))
1818

1919
#### :rocket: Enhancement
20-
* [#118](https://github.com/ember-codemods/ember-es6-class-codemod/pull/118) [FEATURE] Replace dyfactor with puppeteer ([@pzuraq](https://github.com/pzuraq))
21-
* [#112](https://github.com/ember-codemods/ember-es6-class-codemod/pull/112) Update to use official decorators from Ember as much as possible ([@ssutar](https://github.com/ssutar))
22-
* [#89](https://github.com/ember-codemods/ember-es6-class-codemod/pull/89) Import @service and @controller from @ember packages ([@ssutar](https://github.com/ssutar))
20+
* [#118](https://github.com/ember-codemods/ember-native-class-codemod/pull/118) [FEATURE] Replace dyfactor with puppeteer ([@pzuraq](https://github.com/pzuraq))
21+
* [#112](https://github.com/ember-codemods/ember-native-class-codemod/pull/112) Update to use official decorators from Ember as much as possible ([@ssutar](https://github.com/ssutar))
22+
* [#89](https://github.com/ember-codemods/ember-native-class-codemod/pull/89) Import @service and @controller from @ember packages ([@ssutar](https://github.com/ssutar))
2323

2424
#### :bug: Bug Fix
25-
* [#116](https://github.com/ember-codemods/ember-es6-class-codemod/pull/116) Merge imports from the same module ([@ssutar](https://github.com/ssutar))
26-
* [#94](https://github.com/ember-codemods/ember-es6-class-codemod/pull/94) Add automatic detection of an infinite `@action` loop ([@ssutar](https://github.com/ssutar))
25+
* [#116](https://github.com/ember-codemods/ember-native-class-codemod/pull/116) Merge imports from the same module ([@ssutar](https://github.com/ssutar))
26+
* [#94](https://github.com/ember-codemods/ember-native-class-codemod/pull/94) Add automatic detection of an infinite `@action` loop ([@ssutar](https://github.com/ssutar))
2727

2828
#### :memo: Documentation
29-
* [#121](https://github.com/ember-codemods/ember-es6-class-codemod/pull/121) Update README.md to match recent changes. ([@rwjblue](https://github.com/rwjblue))
29+
* [#121](https://github.com/ember-codemods/ember-native-class-codemod/pull/121) Update README.md to match recent changes. ([@rwjblue](https://github.com/rwjblue))
3030

3131
#### :house: Internal
32-
* [#122](https://github.com/ember-codemods/ember-es6-class-codemod/pull/122) Add automated release setup and documentation. ([@rwjblue](https://github.com/rwjblue))
32+
* [#122](https://github.com/ember-codemods/ember-native-class-codemod/pull/122) Add automated release setup and documentation. ([@rwjblue](https://github.com/rwjblue))
3333

3434
#### Committers: 4
3535
- Chris Garrett ([@pzuraq](https://github.com/pzuraq))

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# ember-es6-class-codemod
1+
# ember-native-class-codemod
22

3-
[![Build Status](https://travis-ci.org/ember-codemods/ember-es6-class-codemod.svg?branch=master)](https://travis-ci.org/ember-codemods/ember-es6-class-codemod)
4-
[![npm version](https://badge.fury.io/js/ember-es6-class-codemod.svg)](https://badge.fury.io/js/ember-es6-class-codemod)
3+
[![Build Status](https://travis-ci.org/ember-codemods/ember-native-class-codemod.svg?branch=master)](https://travis-ci.org/ember-codemods/ember-native-class-codemod)
4+
[![npm version](https://badge.fury.io/js/ember-native-class-codemod.svg)](https://badge.fury.io/js/ember-native-class-codemod)
55

66
Codemods for transforming ember app code to native ES6 class syntax with decorators.
77

@@ -10,7 +10,7 @@ Codemods for transforming ember app code to native ES6 class syntax with decorat
1010
The Ember ES6 codemods can be run using the following command:
1111

1212
```
13-
npx ember-es6-class-codemod http://localhost:4200/path/to/server [OPTIONS] path/of/files/ or/some**/*glob.js
13+
npx ember-native-class-codemod http://localhost:4200/path/to/server [OPTIONS] path/of/files/ or/some**/*glob.js
1414
```
1515

1616
The codemods accept the following options:

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"name": "ember-es6-class-codemod",
2+
"name": "ember-native-class-codemod",
33
"version": "0.2.1",
44
"description": "Codemods for transforming ember app code to native ES6 class syntax with decorators.",
55
"keywords": [
66
"codemod-cli"
77
],
8-
"homepage": "https://github.com/ember-codemods/ember-es6-class-codemod#readme",
8+
"homepage": "https://github.com/ember-codemods/ember-native-class-codemod#readme",
99
"bugs": {
10-
"url": "https://github.com/ember-codemods/ember-es6-class-codemod/issues"
10+
"url": "https://github.com/ember-codemods/ember-native-class-codemod/issues"
1111
},
1212
"repository": {
1313
"type": "git",
14-
"url": "git+https://github.com/ember-codemods/ember-es6-class-codemod.git"
14+
"url": "git+https://github.com/ember-codemods/ember-native-class-codemod.git"
1515
},
1616
"license": "MIT",
1717
"author": "",
@@ -23,7 +23,7 @@
2323
],
2424
"main": ".eslintrc.js",
2525
"bin": {
26-
"ember-es6-class-codemod": "./bin/cli.js"
26+
"ember-native-class-codemod": "./bin/cli.js"
2727
},
2828
"directories": {
2929
"lib": "lib",

transforms/ember-object/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
## Usage
55

66
```
7-
npx ember-es6-class-codemod ember-object path/of/files/ or/some**/*glob.js
7+
npx ember-native-class-codemod ember-object path/of/files/ or/some**/*glob.js
88
99
# or
1010
11-
yarn global add ember-es6-class-codemod
12-
ember-es6-class-codemod ember-object path/of/files/ or/some**/*glob.js
11+
yarn global add ember-native-class-codemod
12+
ember-native-class-codemod ember-object path/of/files/ or/some**/*glob.js
1313
```
1414

1515
## Input / Output
@@ -763,7 +763,7 @@ class Foo extends EmberObject {
763763
// class's actions to be safe. This should be refactored to call a normal method
764764
// on the parent class. If the parent class has not been converted to native
765765
// classes, it may need to be refactored as well. See
766-
// https: //github.com/scalvert/ember-es6-class-codemod/blob/master/README.md
766+
// https: //github.com/scalvert/ember-native-class-codemod/blob/master/README.md
767767
// for more details.
768768
super.actions.baz.call(this, ...arguments);
769769
}
@@ -1213,7 +1213,7 @@ export default class RuntimeInputEmberObject extends RuntimeInput.extend(MyMixin
12131213
// class's actions to be safe. This should be refactored to call a normal method
12141214
// on the parent class. If the parent class has not been converted to native
12151215
// classes, it may need to be refactored as well. See
1216-
// https: //github.com/scalvert/ember-es6-class-codemod/blob/master/README.md
1216+
// https: //github.com/scalvert/ember-native-class-codemod/blob/master/README.md
12171217
// for more details.
12181218
super.actions.overriddenActionMethod.call(this, ...arguments) && this.boolProp;
12191219
}

transforms/ember-object/__testfixtures__/decorators.output.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class Foo extends EmberObject {
7070
// class's actions to be safe. This should be refactored to call a normal method
7171
// on the parent class. If the parent class has not been converted to native
7272
// classes, it may need to be refactored as well. See
73-
// https: //github.com/scalvert/ember-es6-class-codemod/blob/master/README.md
73+
// https: //github.com/scalvert/ember-native-class-codemod/blob/master/README.md
7474
// for more details.
7575
super.actions.baz.call(this, ...arguments);
7676
}

transforms/ember-object/__testfixtures__/runtime.output.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default class RuntimeInputEmberObject extends RuntimeInput.extend(MyMixin
7272
// class's actions to be safe. This should be refactored to call a normal method
7373
// on the parent class. If the parent class has not been converted to native
7474
// classes, it may need to be refactored as well. See
75-
// https: //github.com/scalvert/ember-es6-class-codemod/blob/master/README.md
75+
// https: //github.com/scalvert/ember-native-class-codemod/blob/master/README.md
7676
// for more details.
7777
super.actions.overriddenActionMethod.call(this, ...arguments) && this.boolProp;
7878
}

transforms/helpers/util/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const ACTION_SUPER_EXPRESSION_COMMENT = [
5656
" class's actions to be safe. This should be refactored to call a normal method",
5757
' on the parent class. If the parent class has not been converted to native',
5858
' classes, it may need to be refactored as well. See',
59-
' https: //github.com/scalvert/ember-es6-class-codemod/blob/master/README.md',
59+
' https: //github.com/scalvert/ember-native-class-codemod/blob/master/README.md',
6060
' for more details.',
6161
];
6262

transforms/helpers/validation-helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function hasValidProps(
102102
/**
103103
* Iterate over actions and verify that the action name does not match the lifecycle hooks
104104
* The transformation is not supported if an action has the same name as lifecycle hook
105-
* Reference: https://github.com/scalvert/ember-es6-class-codemod/issues/34
105+
* Reference: https://github.com/scalvert/ember-native-class-codemod/issues/34
106106
*
107107
* @param {EOProp} actionsProp
108108
*/
@@ -112,7 +112,7 @@ function getLifecycleHookErrors(actionsProp) {
112112
const actionName = getPropName(actionProp);
113113
if (actionName && LIFECYCLE_HOOKS.includes(actionName)) {
114114
errors.push(
115-
`[${actionName}]: Transform not supported - action name matches one of the lifecycle hooks. Rename and try again. See https://github.com/scalvert/ember-es6-class-codemod/issues/34 for more details`
115+
`[${actionName}]: Transform not supported - action name matches one of the lifecycle hooks. Rename and try again. See https://github.com/scalvert/ember-native-class-codemod/issues/34 for more details`
116116
);
117117
}
118118
return errors;

0 commit comments

Comments
 (0)