Generic codemodding engine for Vue 3 - looking for co-maintainers #10231
                  
                    
                      Sidnioulz
                    
                  
                
                  started this conversation in
                Show and tell
              
            Replies: 1 comment 3 replies
-
| Hi, have you found a way to add elements/components to the templates ast? I looked at vue-sfcmod, and I'm still not sure. I've been trying to track down how to do it reading through compiler-core, but haven't found anything obvious to do it. | 
Beta Was this translation helpful? Give feedback.
                  
                    3 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks,
Last year, I wrote https://github.com/Sidnioulz/vue-sfcmod as I needed to codemod Vue files, including HTML template sections. This project is a fork (and ~80% rewrite) of the original vue-codemod from the Vue core team, and I've added code to stringify HTML template ASTs and to edit template attributes for my personal needs.
vue-sfcmod has served me well, but I'm running into limitations in what I can do (at least with the amount of time I can devote to this project), and I would greatly appreciate involvement from someone who is more familiar with the Vue compiler's internals, and ideally someone who can help me overcome some of the limitations I'm encountering.
In other words: I'm looking for co-maintainers! This project can serve as a basis for codemodding Vue files, but also for people to run their own static analyses (design system coverage, QA metrics, presence of anti-patterns, whatever you like), so I'd love for it to live a long healthy life!
My roadmap for this project is roughly:
Beta Was this translation helpful? Give feedback.
All reactions