Skip to content

Conversation

GrabowskiM
Copy link
Contributor

@GrabowskiM GrabowskiM commented Aug 1, 2024

🎫 Issue IBX-8365

Related PRs:

TODO:

  • Update readme (some config has changed, some parts aren't clear), but it can be done little later
  • Maybe some tests?

Description:

For QA:

Documentation:

babel.config.js Outdated

module.exports = function (api) {
const modifyPlugins = getModifyMethod('plugins');

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

js/README.md Outdated
@@ -0,0 +1,193 @@
# How to run
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doc-team proof read?

Copy link
Contributor Author

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. :)

js/README.md Outdated
`--cwd` argument should point to directory where JS transform module is installed (for example `./vendor/ibexa/rector/js`).

## Customizable variables
### REMOVEEZ_CONFIG
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### REMOVEEZ_CONFIG
### REMOVE_EZ_CONFIG

?

js/README.md Outdated
```
{
"ibexa-rename-string-values": {
"ezform-error": "ibexaform-error",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"ezform-error": "ibexaform-error",
"ezform-error": "ibexa-form-error",

?

Copy link
Contributor Author

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);

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?

GrabowskiM and others added 7 commits May 14, 2025 07:30
@dew326 dew326 merged commit 5453d1a into main May 14, 2025
3 checks passed
@dew326 dew326 deleted the js branch May 14, 2025 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants