Giter VIP home page Giter VIP logo

Comments (5)

jimmylewis avatar jimmylewis commented on May 29, 2024 6

Support for minimatch-based globs added in #534. This will show up in the VS 16.5 preview releases (we'll release NuGet packages at the same time; packages supporting this feature will be versioned 2.1 or higher).

We look for any of *?[ to determine if a specified file is a pattern, as well as a leading ! for exclusions. ** can be used to match any level of folder, as in the bootstrap example above. Any file specified which does not match these new rules will behave exactly as it does today.

from librarymanager.

drauch avatar drauch commented on May 29, 2024 2

You definitely need wildcard support for referencing Bootstrap via libman, you don't want the whole package to be downloaded but only certain folders. E.g.,:

files: [ "scss/**/*.scss" ]

would be nice!

from librarymanager.

nickalbrecht avatar nickalbrecht commented on May 29, 2024

Update:
Found that omitting the files collection entirely defaults to all files. Though it'd be nice to be able to specify a folder's children explicitly using a wildcard.

As a continuation of my example above, the following example fails on the very first webp file (specifically webp/account-login-2x.webp) with this message in the Library Manager output window

webp/account-login-2x.webp could not be written to disk. Make sure the file name is correct

The webp files are in the desiredState.Files collection, but the cache folder it's trying to copy from is missing the webp folder in it's entirety.

{
  "version": "1.0",
  "defaultProvider": "cdnjs",
  "libraries": [
    {
      "library": "[email protected]",
      "destination": "wwwroot/vendor/open-iconic"
    },
  ]
}

from librarymanager.

SaphuA avatar SaphuA commented on May 29, 2024

I would love support for either wildcards or just specifying a directory as a file. Both supported cdn's support viewing directory contents so this should be possible.

from librarymanager.

CodesMahoney avatar CodesMahoney commented on May 29, 2024

how does this get attention, cuz i completely agree.

from librarymanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.