Open khairu-aqsara opened 1 year ago
Hi @khairu-aqsara , thx for reporting the issue, really appreciate it 😁👍
yes the actual code for refactoring is here :
yes you're correct, unfortunately the search and replace function still pretty basic it'll find and replace the provided string whatever the case (Upper, Lower or Mixed) e.g @babel/plugin-transform-dotall-regex
to @babel/plugin-transform-exampleall-regex
the correct refactoring process should be :
.php
file it should be using php-parser to transform the php code into AST then refactor it.json
file e.g package.json
it should read the content and filter which one needs to be replacedfor now the Dot Framework
can be refactored with no problem, even though it's not following the right process
but yeah refactoring is actually a complex process, m still working on that
if you got any suggestion or wants to contribute I'm very much appreciate it 😁👍
When I tried to use this tool, it's replace all the string contains dot- to {pluginnema}, it will trhow a bunch of error while trying to run npm install becase some of the packages are using a dot- string prefix like
dotenv
dot-case
if I tried to run the commandaspri --wp-refactor --from Dot --to {example} --type plugin
it will change all the dot string into examplebtw it's a greate tool :)