vue-migration-helper icon indicating copy to clipboard operation
vue-migration-helper copied to clipboard

Better detection within Laravel's .blade.php files

Open BrandonSurowiec opened this issue 8 years ago • 5 comments

I ran the migration helper on a project and it is falsely detecting "Interpolation within attributes" for blade files within a Laravel project.

It thinks href="{{ $url }}" should be :href="$url"

I have to write it like href="@{{ url }}" for Vue. :)

BrandonSurowiec avatar Oct 01 '16 13:10 BrandonSurowiec

I'd be open to eventually adding options, such as --interpolation-delimiter-start and --interpolation-delimiter-end. I want to finish the Vue Router rules before starting on something like that though.

chrisvfritz avatar Oct 01 '16 15:10 chrisvfritz

@chrisvfritz Is there a way to simply dump the output to a .txt/.log file? I can sort through the false positives easier. That solution would be good enough for me.

BrandonSurowiec avatar Oct 01 '16 16:10 BrandonSurowiec

@BrandonSurowiec Definitely! I'm not sure if this works on Windows, but on OS X and Linux, you can run something like:

vue-migration-helper src > migration-warnings.log

chrisvfritz avatar Oct 01 '16 18:10 chrisvfritz

Perfect! It works on Windows and allows me to sort through it easier. Thank you!

BrandonSurowiec avatar Oct 02 '16 00:10 BrandonSurowiec

This would be a huge help! :+1:

masonfox avatar Nov 03 '16 16:11 masonfox