scivey / bower-copy

Copy main script files of bower components to an arbitrary destination directory.
MIT License
1 stars 2 forks source link

Issue with angular-cache package #2

Open thany opened 9 years ago

thany commented 9 years ago

If I install angular-cache:

bower install angular-cache

It'll install angular as well, so all good. Then if I copy the things to a test directory:

bower-copy --dest ./test

The test directory ends up containing angular.js (non-minified) and angular-cache.js (minified).

The problem is that all files ending up i the dest directory are non-minified except angular-cache. Perhaps angular-cache isn't configured correctly, but I have no idea. In any case it'd be nice to either have all dest files always non-minified, or always minified (with an option perhaps, and appending .min to the filename), or append .min to files that are going to end up minified instead of non-minified.

So it's inconsistent. Which in my particular case means that my deployment chain cannot determine which files are already minified and which ones still need minification.

thany commented 9 years ago

Actually, there's another package that doesn't work well with bower-copy:

bower install markdown-js

Doesn't get copied at all.

dotnetCarpenter commented 8 years ago

@thany This probably due to the 2 bower.json files in angular-cache and angular respectively. You'll get whatever they have marked as main in bower.json.