shama / napa

:wine_glass: A helper for installing stuff without a package.json with npm.
MIT License
412 stars 34 forks source link

Multiple files download in a row #23

Closed jblaise closed 9 years ago

jblaise commented 9 years ago

It would be nice if napa could manage something like that

"napa" : {
  "foo" : "http://foobar/foo*.js",
  "bar":  "http://foobar/bar-(foo1,foo2).min.js"
}

to retrieve all matching foo*.js + bar-foo1.min.js and bar-foo2.min.js

shama commented 9 years ago

I don't think that is possible as it would need to know which all the files that exist on a remote server in order to glob them. Which is out of scope of this project. Thanks!

jblaise commented 9 years ago

in fact, there was 2 options. Ok the foo package use * joker is out of bound. But the second use only known name, it is on shorthand to write :

"napa": {
  "bar":  [ 'http://foobar/bar-foo1.min.js', 'http://foobar/bar-foo2.min.js' ]
}