Chart.js: Bower

Created on 27 Sep 2016  Â·  7Comments  Â·  Source: chartjs/Chart.js

Why is there a gulp task to generate a bower file?

The point of a bower file is:
A: determine the front end dependencies of a project and make it easy to download and place them in the correct location on deployment.
B: allow the project with the bower file to be used easily as a dependency for another project
for ether of these to work the file needs to be present in the root of the project at all times and for B. there needs to be a 'dist'/'build' (or similar) existant in the codebase.

For a front end dev to use Chart.js they would have to download the code and manually compile it, this it far from ideal for most sites.

support

Most helpful comment

cleared cache, restarted, bower install chart.js, dist folder magically appears.
Sorry for wasting your time ;)

All 7 comments

to summarize my issue, I cannot install chart.js with bower as all it does it download the source code without a 'dist' or 'build' for me to use.

We do not want to keep dist files in the repository because they caused unnecessary changes in PRs. The current solution allows us to publish dist files to bower without keeping them in the repo. You can discuss more about this with @simonbrunel

What version are you installing with bower that does not have the dist files? Version 2.2.x will not work with a normal bower install.

I am trying to install the latest chart.js release with bower bower install chart.js (as written in the docs), all it pulls down the code in
the master repo with no dist/build folder

On Tue, 27 Sep 2016, 16:50 Zach Panzarino, [email protected] wrote:

We do not want to keep dist files in the repository because they caused
unnecessary changes in PRs. The current solution allows us to publish dist
files to bower without keeping them in the repo. You can discuss more about
this with @simonbrunel https://github.com/simonbrunel

What version are you installing with bower that does not have the dist
files? Version 2.2.x will not work with a normal bower install.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/chartjs/Chart.js/issues/3371#issuecomment-249907337,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAbODAaTnw4GAePMTO2WJ-fQ3sJmzn8Pks5quTswgaJpZM4KHzo4
.

I'm not sure what your issue is, I am able to install v2.3.0 (the most recent release) with the dist folder. Are you sure that it is v2.3.0?

for me it is pulling it without dist

Let me clear my cache, restart, etc and see if it comes back _one minute_

cleared cache, restarted, bower install chart.js, dist folder magically appears.
Sorry for wasting your time ;)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akashrajkn picture akashrajkn  Â·  3Comments

benmccann picture benmccann  Â·  3Comments

adriantombu picture adriantombu  Â·  3Comments

lizbanach picture lizbanach  Â·  3Comments

frlinw picture frlinw  Â·  3Comments