Skip to content
This repository was archived by the owner on Mar 8, 2019. It is now read-only.
This repository was archived by the owner on Mar 8, 2019. It is now read-only.

Read Props/Methods from external-separate .js file #105

@elevatebart

Description

@elevatebart

From @cub

Hi,
First, thanks for your work, i have tested many generators of documentation, yours is the best ;)

I have an issue, if I externalize the <script> like :

// .vue file
<template>
  <div>Hi mom !</div>
</template>
<script src="./comp.ctrl.js"></script>

Vue-Styleguidist will find my component, display the template part but not the Props/Methodes part. If I put the content into the <script> no problem. I tried to change the regex of components: 'src/components/**/[A-Za-z]*.vue' to accept .js without success, there is a security to allow only .vue file.

Is there a way to parse properly the external .js file ? I want to keep in different files the html/vue and the js part.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions