Open ALysogorsky opened 8 years ago
Right now, the css and min.js files are build artifacts. They therefore do not belong in source control.
I just read this solution. I'll implement jquery's approach here soon. It's the best we can probably hope for until Bower's devs realize deploying direct from source control is a bad idea.
What's the status on this?
@mrhota Any news on this ?
@JohnMacAslan @pedroresende @ALysogorsky I need help in this regard. It is not good practice (even if it's common practice) to keep build artifacts in source repos. If you know how to make bower build css on install, that might be the easiest solution. Alternatively, I'd be willing to ditch bower for something else that lets us build-on-install or otherwise keep build artifacts out of the repo.
@mrhota Why do you say it's not a good practice to keep built js and css in source repos?
;-)
I'm trying to use this plugin from a Rails app with scss/sass templates. I don't want to use another css preprocessor!
So of course now I've an unmaintained, online-converted file in my own stylesheets folder. Not cool.
very true @mrhota, here's to hoping Bower team fix up this issue. However, probably still a good idea for you to include it - as not everyone is compiling their dependencies, and if they are, those people will ignore your minified artifact anyway. better to meet the demands of all of your customers ;) @ public in the mean time, use online tools like https://jscompress.com/ , http://less2css.org/ , https://cssminifier.com/ , to get your file.
I install bootstrap-timepicker as bower package
bower install bootstrap-timepicker
But css folder contains only timepicker.lessHow can linked to bootstrap-timepicker.css without compiling less to css in client? I think it's a good practice to include in bower package all files that ready for deploy