-
Notifications
You must be signed in to change notification settings - Fork 0
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
IBX-8365: Use babel to automatic refactor frontend code #7
base: main
Are you sure you want to change the base?
Conversation
|
||
module.exports = function (api) { | ||
const modifyPlugins = getModifyMethod('plugins'); | ||
|
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.
@@ -0,0 +1,193 @@ | |||
# How to run |
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.
doc-team proof read?
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.
Not yet, as stated in PR's TODO it has to be adjusted a little, but I'd rather do it after CR of rest in case of you find some glaring error. :)
`--cwd` argument should point to directory where JS transform module is installed (for example `./vendor/ibexa/rector/js`). | ||
|
||
## Customizable variables | ||
### REMOVEEZ_CONFIG |
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.
### REMOVEEZ_CONFIG | |
### REMOVE_EZ_CONFIG |
?
``` | ||
{ | ||
"ibexa-rename-string-values": { | ||
"ezform-error": "ibexaform-error", |
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.
"ezform-error": "ibexaform-error", | |
"ezform-error": "ibexa-form-error", |
?
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.
Probably classes at both sides are wrong and there should be ez-form-error
as well, whoops
Unless it's something that came from form-builder, need to recheck
traverse(moduleConfig, path.node.name, (oldValue, newValue) => { | ||
const newIdentifier = path.node.name.replace(oldValue, newValue); | ||
|
||
path.node.name = t.toIdentifier(newIdentifier); |
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.
maybe we should use a different variable name than just t
?
TODO:
Description:
For QA:
Documentation: