scivey / bower-copy Goto Github PK
View Code? Open in Web Editor NEWCopy main script files of bower components to an arbitrary destination directory.
License: MIT License
Copy main script files of bower components to an arbitrary destination directory.
License: MIT License
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.
When used with polymer I get:
path.js:7
throw new TypeError('Path must be a string. Received ' + inspect(path));
^
TypeError: Path must be a string. Received [ 'polymer.html', 'polymer-mini.html', 'polymer-micro.html' ]
at assertPath (path.js:7:11)
at Object.join (path.js:466:7)
at extractMain (C:\Users\dotnet\Projects\firefund\styleguide\node_modules\bower-copy\index.js:50:21)
bower-copy clearly doesn't support main as array
I'm not sure why but I suddenly have a .bower-git
in my bower_components
. This issue is not about that. But the fact thatbower-copy
breaks on such a dir. I think it's safe to regard hidden directories as something bower-copy
should ignore.
https://github.com/scivey/bower-copy/blob/master/bin/cmd.js#L1
leading to "no such file or directory" error under linux
$> node_modules/.bin/bower-copy -d static/js/components
No such file or directory
$> strace node_modules/.bin/bower-copy
(...)
execve("/usr/local/bin/node\r", ["node\r", "node_modules/.bin/bower-copy", (...) = -1 ENOENT (No such file or directory)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.