adapter icon indicating copy to clipboard operation
adapter copied to clipboard

adapter.js bower setup

Open s-silva opened this issue 10 years ago • 15 comments

Guys,

bower install adapter.js stopped working today and I tried changing it to bower install webrtc-adapter and including src/js/adapter_core.js but it fails without require.js.

And http://webrtc.github.io/adapter/adapter-latest.js is no longer working.

I got everything working with an older version or adapter.js, please close this issue if the changes were intentional.

s-silva avatar Feb 23 '16 15:02 s-silva

Hi,

In addition, if you execute that command, the adapter.js browserify isn't in the folder.

When will it be?

Thanks

rbenitez avatar Feb 24 '16 07:02 rbenitez

Yes sorry for this, I've fixed the adapter-latest link.

I will look into adding browserified versions to the bower releases without adding it to the source.

In the meanwhile I suggest that you install an older version of adapter (0.2.9).

KaptenJansson avatar Feb 24 '16 07:02 KaptenJansson

If anyone has a suggestion on how to publish a bower package with browserified artifacts not part of the source please let me know. I do not want to have two repos/branches for this. npm is a lot easier since it uploads the package to npmjs where we can include browserified artifacts without having them stored in github while bower downloads directly from github.

KaptenJansson avatar Feb 24 '16 10:02 KaptenJansson

@KaptenJansson thanks!

Isn't adding browserify into bower dependencies an option?

s-silva avatar Feb 24 '16 16:02 s-silva

I'm not that familiar with bower but AFAIK browserify does not exist in bower registry. Also how would it install and execute it? If it uses node, you might as well just use NPM.

KaptenJansson avatar Feb 25 '16 19:02 KaptenJansson

I have a suggestion, what about using gh-pages for bower instead of master? To me it seems that most people using adapter as a module uses node while the people using bower wants precompiled versions.

To boil it down, do you require a bower setup with both a AMD module and a precompiled version or will just the precompiled version do?

cc @laurent-le-graverend

KaptenJansson avatar Mar 01 '16 08:03 KaptenJansson

I guess the precompiled version should be enough, not minified.

Most of project's build process are handling the vendors libraries concatenation and minification.

I guess most people would expect to have bower file indexing the non-minified precompiled version in a folder like like /dist/adapter.js

laurent-le-graverend avatar Mar 01 '16 09:03 laurent-le-graverend

I agree with @laurent-le-graverend, before the re-factory, this library was in adapter.js/adaper.js. It was like for bower and node.

rbenitez avatar Mar 02 '16 07:03 rbenitez

current workaround in your bower.json is to alter entry to

"webrtc-adapter": "gh-pages"

and then include bower_components/webrtc-adapter/adapter-1.0.4.js

don't forget to revert, once this is fixed ;)

maxwellium avatar Mar 09 '16 09:03 maxwellium

Hitting this as well.

xdumaine avatar Mar 12 '16 21:03 xdumaine

Also seeing this using NPM, in addition attempting to use the "gh-pages" branch results in a Permission denied error

dansullivan86 avatar Mar 14 '16 10:03 dansullivan86

Sorry I've been traveling, will look into this later this week.

KaptenJansson avatar Mar 14 '16 16:03 KaptenJansson

@dansullivan86 could you elaborate what issue you see using NPM? This is a bower workaround. It should work on NPM, if not could you file a new issue with the details.

KaptenJansson avatar Mar 17 '16 12:03 KaptenJansson

I've now added the workaround as an official way of doing it for now.

Instructions here.

Please let me know how it works out for you.

KaptenJansson avatar Mar 17 '16 16:03 KaptenJansson

Fixed

KaptenJansson avatar Mar 31 '16 14:03 KaptenJansson