GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Support for vue template files · Issue #4 · codeque-co/codeque

Support for vue template files #4

New issue
Copy link
New issue
Copy link
Open
Open
Support for vue template files#4
Copy link

Description

@KelpyCode
KelpyCode
opened on Dec 19, 2022
Issue body actions

I'm really looking forward for using this tool for our work codebase.
Unfortunately, as of now it doesn't seem to support Vue files.

https://vuejs.org/guide/scaling-up/sfc.html

They're usually set up like this:

<template>
  <SomeStuff />
</template>

<script lang="ts" setup>
// ^ If lang isn't provided, it defaults to JS
// Setup property is optional

const abc = ref(0)

function xyz() {
  return 1
}

</script>

Thank you and good job!

Activity

  1. jayu commented on Dec 19, 2022

    @jayu
    jayu
    on Dec 19, 2022
    Contributor
    More actions

    Thanks mate! I didn't work with Vue tbh, but it's such a big ecosystem that I think it's worth supporting in future!

    I've planned to support other parsers/languages, sounds like Vue might be the first one :D

    But at first I would like to add support for ESLint parser, and to achieve that I have to do some refactoring first.

    I have a question regarding your preference, should CodeQue support only searching in the script part of the file, or in the template and style parts as well ?

  2. KelpyCode commented on Dec 19, 2022

    @KelpyCode
    KelpyCode
    on Dec 19, 2022
    Author
    More actions

    For me personally, I mostly need to search only the script part, but it would definitely be a great feature to also be able to search the template aswell. I don't see too much need in searching for CSS via AST methods though

  3. jayu commented on Dec 20, 2022

    @jayu
    jayu
    on Dec 20, 2022
    Contributor
    More actions

    Thanks! Actually I've checked and styles are not parsed to AST, so it would not work well anyway

    But script and template are definetly doable

    Reacted by Kelpy
  4. sschneider-ihre-pvs commented on Jun 7, 2023

    @sschneider-ihre-pvs
    sschneider-ihre-pvs
    on Jun 7, 2023
    More actions

    @johnsoncodehk could be interested :D

  5. sschneider-ihre-pvs commented on Jun 7, 2023

    @sschneider-ihre-pvs
    sschneider-ihre-pvs
    on Jun 7, 2023
    More actions

    Thanks! Actually I've checked and styles are not parsed to AST, so it would not work well anyway

    But script and template are definetly doable

    Well, if you manage to support Tree-Sitter integration of new languages would be a breeze, I guess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.