question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Example file path setting

See original GitHub issue

Hi! In my project, I need to download all the components that have to be documented to node_modules. As a result, each one of them is located in a separate folder. The structure is the following:

node_modules

  • project
  •  component_1
    
  •    component
    
  •      component_1.vue
    
  •    dev
    
  •      component_1_example.vue
    
  •  component_2
    
  •    component
    
  •      component_2.vue
    
  •    dev
    
  •      component_2_example.vue
    

In order to get access to them, I use this path and it works: module.exports = { components: 'node_modules/project/**/component/*.vue', }

What is the proper way to assign an example to them? I guess getExampleFilename() has to be used. Could you give me a hand?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
elevatebartcommented, Oct 20, 2020

It is not expected. Glad you found a workaround. I will investigate.

0reactions
nasthe2commented, Aug 19, 2021

@elevatebart I used npm run styleguide 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

File path formats on Windows systems | Microsoft Learn
In this article, learn about file path formats on Windows systems, such as traditional DOS paths, DOS device paths, and universal naming ...
Read more >
What Is a Path? (And Other File System Facts)
A path is either relative or absolute. An absolute path always contains the root element and the complete directory list required to locate...
Read more >
File and Directory Names: File, Path, Paths (Java Files Tutorial)
As seen in the table, absolute paths on Windows start with a drive letter and a colon; directories are separated by a backslash...
Read more >
HTML File Paths - W3Schools
A file path describes the location of a file in a web site's folder structure. File Path Examples. Path, Description. <img src="picture.jpg">, The...
Read more >
Relative and absolute paths, in the file system and on the web ...
The simplest example of relative path is just a file name, like index.html . So one should be careful with relative paths. If...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found