taptapship / wiredep

Wire Bower dependencies to your source code.
MIT License
1.15k stars 142 forks source link

wiredep multiple files? #164

Closed sandrodz closed 9 years ago

sandrodz commented 9 years ago

Is it possible to edit multiple files?

{ "scripts": { "postinstall": "wiredep -s path/to/src.html", "postinstall": "wiredep -s path/to/src2.html" } }

sandrodz commented 9 years ago

So, I figured it out.

{ "scripts": { "postinstall": "./postinstall.sh" } }

And inside postinstall.sh whatever you want, like: wiredep -s path/to/src.html wiredep -s path/to/src2.html wiredep -s path/to/src3.html

stephenplusplus commented 9 years ago

Sorry I missed this ticket, @sandrodz. That solution is probably the best, but another option that should work would be something with globs:

{
  "scripts": {
    "postinstall": "wiredep -s views/**/*.html"
  }
}

I haven't tested though, so forgive me if you try and it doesn't work.

Thanks for coming back to post your solution!

Ricecoder commented 9 years ago

Passing files with different filetypes is also a little wonky:

wiredep --src 'src/index.html,src/scss/main.scss'

Does not wire anything. Instead:

wiredep --src src/index.html --src src/scss/main.scss

Uh, sure. That makes sense. Thanks, @al-the-x.