Skip to content

Add back support for include option and support for symlinks #2264

Closed

Description

@tolbahadi

This is a Feature Proposal

#2194 Added support for excluding files/folders with glob statements. However, with the negate option ! being deprecated from node-glob it will be difficult to specifically include something instead of always excluding. This brings back the need for include option so packaging functions is a little more flexible, especially for the cases where people are packaging their functions individually.

Related discussions: #2194 (comment)

Also, we can use node-glob's option follow: true, to follow symlinked directories. This is needed for packages that are installed locally with npm link. (note: I believe this option will only be needed in a development environment where someone is linking a local package they deploy it, so if it has serious performance impact on how fast node-glob does the search, we should not add it or at least optionalize it)

Activity

  1. jonsharratt commented on Oct 5, 2016

    @jonsharratt
    Contributor

    @tolbahadi I have taken a look to see if we can make the exclude glob patterns terse and just support ! glob patterns using a different node module (that wraps node-glob under the hood).

    Take a look at the PR and let me know what you think and everyone else 👍 or 👎

    I have not had chance to take a look at the other request, re: following symlinks, shouldn't be a big job at all if people deem it worth adding (seems so if you have a use case for it 🎉 ).

    If we can get consensus to either have it as an option or just have it on by default I can raise a cheeky pull request.

    Thanks for the feedback on the change, much appreciated!

  2. ianserlin commented on Oct 12, 2016

    @ianserlin
    Contributor

    We are stuck on version 1.0.0-rc.2 until support for npm link is back.

    The alternatives are:

    • platform specific filesystem linking scripts, which are more brittle; or
    • publishing private npm modules and reinstalling them constantly, which has a significant effect on time-to-implement
  3. jordanmack commented on Oct 14, 2016

    @jordanmack
    Contributor

    On Windows directory symlinks and directory junctions are also not followed.

  4. mthenw commented on Nov 2, 2016

    @mthenw
    Contributor

    Duplicate of #2472. Already solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions