Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove import node_modules from videojs.scss #2789

Closed
Vaporizd opened this issue Nov 7, 2015 · 5 comments
Closed

Remove import node_modules from videojs.scss #2789

Vaporizd opened this issue Nov 7, 2015 · 5 comments

Comments

@Vaporizd
Copy link

Vaporizd commented Nov 7, 2015

Hi,

Why are these icons being imported yet ignored by bower?

If you try to use something like rails-assets to include this into a rails app it will be unable to find those icons because they are being ignored by bower.json. Either unignore them or remove them please.

Thanks.

@Vaporizd Vaporizd changed the title Remove node_modules from video.scss Remove import node_modules from video.js.scss Nov 7, 2015
@Vaporizd Vaporizd changed the title Remove import node_modules from video.js.scss Remove import node_modules from videojs.scss Nov 7, 2015
@misteroneill
Copy link
Member

This is because Bower is not a real package manager. Bower only clones Git repositories and lacks a registry or any support for scripting. Video.js currently does a fair amount of extra work done to support these limitations of Bower.

The icons cannot be unignored because they are an external dependency and, therefore, also ignored by Git and should remain that way.

They cannot be removed because the UI needs those icons!

The solution is either to use npm instead of Bower or - if Bower must be used - reference only the built assets in dist/ rather than src/.

...

One thought that I have now is should bower.json's "main" property be changed to the following?

  "main": [
    "dist/video.js",
    "dist/video-js.css"
  ],

Also, maybe it makes sense to ignore src/ entirely in bower.json so it's clear that only the dist/ dir should be used by Bower?

@Vaporizd
Copy link
Author

Vaporizd commented Nov 7, 2015

That seems like a reasonable solution and should solve the problem with the icons not being found.

Because as of right now if u tried to use something like rails-assets.org which creates a gem based on bower, you won't be able to use videojs, unless you download those icons and put them alongside the gem.

@misteroneill
Copy link
Member

This actually looks like a dupe of #2611

@Vaporizd
Copy link
Author

There seems to be a PR for this already. Maybe get it merged for the next version or something?

@gkatsev
Copy link
Member

gkatsev commented Nov 17, 2015

Closing as duplicate of #2611.

@gkatsev gkatsev closed this as completed Nov 17, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants