msurdi / frontend-dependencies

Copies node packages to a directory where your frontend tools will be able to find them
24 stars 5 forks source link

Add multiple and more explicit target paths #1

Closed iturgeon closed 6 years ago

iturgeon commented 7 years ago

Adds ability to set package values to objects that allow each item to have a different destination.

In addition to that, it allows you to skip the default behavior of placing each package in a subdirectory of the target that matches the source package.

iturgeon commented 7 years ago

Found a bug already - {"src":"path/from/", "target":"path/target/", "exact":true}, will work correctly the first time, but create path/target/target/ if the directory already exists

iturgeon commented 7 years ago

There, I think that takes care of it

msurdi commented 6 years ago

Hey! Sorry for my late response. I just realized I had messed up my gh settings so didn't get an email for this.

This looks really usefull, thanks a lot for submitting the PR.

iturgeon commented 6 years ago

np @msurdi, thanks for checking in