ember-codemods / ember-native-class-codemod

A codemod-cli project for converting Ember objects to es6 native classes
68 stars 38 forks source link

Error logging unclear #61

Open pzuraq opened 5 years ago

pzuraq commented 5 years ago

Objective:

Details

The log is helpful, but the messages can be a little bit unclear. Going to list out examples here as I find them:

Transform not supported - need option '--decorators=true' or the property type CallExpression can not be transformed

The --decorators option was being used so that shouldn't be part of the message, and the message should indicate that there was property that we couldn't transform, and ideally the name of the property.

rwjblue commented 5 years ago

Updated the description a bit, with some high level objectives.

@pzuraq - Mind reviewing?

pzuraq commented 5 years ago

Looks good. I think ideally we should include files/folders that may be confusing at first, like the Data files, as well.