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.

Whitelist hidden files from globbing

See original GitHub issue

Renamed a controller to have a . in front of the file and caused the following error when running lux serve.

This can pose a problem when using hidden files for custom linting .eslintrc, ignoring files .gitignore .eslintignore or even keeping an empty directory on git .gitkeep

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
neojpcommented, May 20, 2016

I think I’ve been misunderstood. I don’t want you to let people access hidden files. It’s the other way around.

Ignore all files that have a . in front of the file name regardless of extension. And also ignore any other file that doesn’t have a .js extension.

0reactions
zacharygolbacommented, May 20, 2016

That makes 100% sense. Can you write that in a new issue? 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to glob every hidden file except current and parent directory
I want to glob every hidden file and directory, but not the current ( . ) and parent directory ( .. ). I...
Read more >
search in hidden files not listed in .gitignore #1303 - GitHub
Note that if a hidden file or a directory is whitelisted in an ignore file, then it will be searched even if this...
Read more >
How should I glob for all hidden files? - Ask Ubuntu
I want to carry out some action (say chown ) on all the hidden files in a directory. I know that this .*...
Read more >
git - .gitignore whitelist on directory and its contents
Put a hidden file (such as .gitignore) into the directory, and it will be saved. But to keep the directory empty, even if...
Read more >
How to use _one_ shell globbing expression to list all files (of ...
I want a shell globbing (aka wildcard) pattern or GLOBIGNORE list that matches all files, including hidden files, in the current directory ...
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