question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove .gitignore from bower package

See original GitHub issue

Expected Behavior

It should not ignore the dist directory when chartjs is installed using bower.

Context

We check-in the dependencies into our source control, because we don’t mirror bower packages locally on our servers. When we add Chart.js as bower dependency, the dist folder got ignored from the source control, because of the .gitignore in the bower package. Is it possible to remove the file in the bower package, or is it needed?

Environment

  • Chart.js version: 2.4.0

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
etimbergcommented, Jan 17, 2017

@simonbrunel I don’t have a problem with trying it. I don’t think it will break anything, but a quick google couldn’t confirm that.

1reaction
simonbrunelcommented, Jan 17, 2017

I don’t think we want to deal with a different repository and change our automated build process for this specific bower use case. Having .gitignore in bower.json looks like the way to go, so we can definitely try this for 2.5. @chartjs/maintainers do you see any (compatibility) issue with that approach?

Still, git add --force would solve your issue immediately.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Should bower_components be gitignored? - Stack Overflow
The advice on the official Bower page to check installed packages in to source control was removed in 2014: github.com/bower/bower.github.io/ ...
Read more >
Bower, an assets package manager - Synbioz
Uninstall packages. To uninstall packages, use the following command line : bower uninstall my_package_name. If you use the bower.json file, remove the package...
Read more >
How to drop Bower support? · Bower blog
Don't remove your component from Bower registry (via bower unregister ). To understand why these steps are necessary you need to know how...
Read more >
Remove Bower from your build script - ThoughtWorkshop
When the Knockout maintainer released the v3.1 bower package, they made a mistake in bower.json config file, which packaged the spec folder ...
Read more >
Remove bower and add yarn support · f442646269 - OpenDev
1 .eslintignore · 1 .gitignore · 12. Gruntfile.js · 2. bin/bootstrap.sh · 4. bin/build.sh · 30. bower.json · 2. karma.conf.js · 58. package.json....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found