Skip to content
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

Closed
elevatebart opened this issue Feb 11, 2019 · 2 comments
Closed

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

elevatebart opened this issue Feb 11, 2019 · 2 comments

Comments

@elevatebart
Copy link
Member

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.

@elevatebart
Copy link
Member Author

@vue-styleguidist-bot
Copy link
Collaborator

🎉 This issue has been resolved in version 3.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

2 participants