-
Notifications
You must be signed in to change notification settings - Fork 3
Update imports codemod #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
], | ||
"scripts": { | ||
"test": "qunit tests/*-test.js", | ||
"test": "qunit tests/*-test.js tests/**/*-test.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"test": "qunit tests/*-test.js tests/**/*-test.js", | |
"test": "qunit tests/**/*-test.js", |
This is enough to catch all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried but it didn't work. It was picking the test files present inside the subdirectories only and not the ones that are directly available under the tests directory
src/commands/adapter.js
Outdated
|
||
createAppExport({ | ||
fileName: adapterName, | ||
sourceFile: sourceadapter, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camelCase naming
src/commands/constant.js
Outdated
|
||
createAppExport({ | ||
fileName: constantName, | ||
sourceFile: sourceconstant, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camelCase naming
src/commands/helper.js
Outdated
// Create helper assets to app folder in addon | ||
createAppExport({ | ||
fileName: helperName, | ||
sourceFile: sourcehelper, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camelCase naming
src/commands/mixin.js
Outdated
|
||
createAppExport({ | ||
fileName: mixinName, | ||
sourceFile: sourcemixin, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camelCase naming
src/commands/service.js
Outdated
|
||
createAppExport({ | ||
fileName: serviceName, | ||
sourceFile: sourceservice, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camelCase naming
src/commands/util.js
Outdated
|
||
createAppExport({ | ||
fileName: utilName, | ||
sourceFile: sourceutil, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camelCase naming
src/commands/validator.js
Outdated
// Create validator assets to app folder in addon | ||
createAppExport({ | ||
fileName: validatorName, | ||
sourceFile: sourcevalidator, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camelCase naming
src/utils/create-app-export.js
Outdated
// Commenting it out as the ignore pattern and config options are not supported by codemod-cli. | ||
// log(`\nUpdating the import paths matching ${oldImportPath} to ${exportPath}`); | ||
let updateImports = false; | ||
if (updateImports) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are we doing here? the if condition will never be true here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the code
|
||
## Input / Output | ||
|
||
<!--FIXTURES_TOC_START--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should run
codemod-cli update-docs
to update the examples here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@vinodh-kumar-1711 Can you please check the failing tests? |
That test will pass after this codemod-cli PR is merged. |
No description provided.