vuejs / vue-migration-helper

CLI tool to aid in migration from Vue 1.x to 2.0
594 stars 59 forks source link

Better detection within Laravel's .blade.php files #14

Open BrandonSurowiec opened 8 years ago

BrandonSurowiec commented 8 years ago

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

chrisvfritz commented 8 years ago

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.

BrandonSurowiec commented 8 years ago

@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.

chrisvfritz commented 8 years ago

@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
BrandonSurowiec commented 8 years ago

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

masonfox commented 8 years ago

This would be a huge help! :+1: