-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
please show example of excluding node_modules #86
Comments
I'm doing this and works fine
|
This should be added as an example directly on the npm and or github page. |
This works for me... |
Doesn't seem to be working. The issue here (and I'm suspecting @ORESoftware is doing the same) is that I am using lerna to automatically create virtual subpackages using symbolic links. sloc is unwrapping the symbolic links to the relative path (and recursively walking through the tree which will probably turn my machine into a great heater if I let it run). While it should be possible to work around this, I'm not sure if there is a one-size-fits-all workaround that would still allow for the simplicity of this tool to be preserved. Therefore, my recommendation would be for a command line flag that can treat all symlinks as nonexistant files/folders, for compatibility with lerna.
|
We're having the same issue, and we're not using Lerna. |
This is NPM this is Node.js, the docs say use a regex to exclude, but what kind of regex? A JS regex?
A nice example would be excluding node_modules when running sloc against an NPM project
I am guessing this is the one:
sloc -e node_modules .
but I cannot be certain - in fact I am fairly certain this is not working, my machine is getting hot!
The text was updated successfully, but these errors were encountered: