drioemgaoin / GulpMainNpmFiles

MIT License
9 stars 9 forks source link

overrides option #3

Open flyfishMT opened 7 years ago

flyfishMT commented 7 years ago

Adds a new option - "overrides" that is an object used like a hash table. The "key" of the hash table is the package name and thus the folder name under node_modules. The "value" of the hash table is an array of file paths to add to the result set rather than the main file. The path is expected to be relative within the node package sub-directory (as if the present working directory is /node_modules/packageName/). Kind of modeled after main-bower-files overrides, but took one level of object out of the mix. I kind of need this functionality to use this in my build process, hope the implementation is Ok, let me know if you would like changes or your thoughts. Thanks for the great work.

flaviorocks commented 7 years ago

I would like to see this functionality added as well.

deKaantje commented 7 years ago

Any news about this option? Will it be reviewed?