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

Replace Bower with import #200

Open
hkdobrev opened this issue Oct 12, 2017 · 10 comments
Open

Replace Bower with import #200

hkdobrev opened this issue Oct 12, 2017 · 10 comments

Comments

@hkdobrev
Copy link

Bower is already suggesting not to use it on the command line.

I think a good and popular suggestion is to use Gulp with Browserify.

I'd like to use https://github.com/mozilla/webextension-polyfill in my extensions and I think the best way to install it so far would be using Browserify.

What do you think?

@ragingwind
Copy link
Owner

Nice polyfill. I prefer to using the platform as much as we can use. I consider that remove gulp and using import supported by chrome recently.

@hkdobrev
Copy link
Author

With a few more changes we might end up with a generator which is quite generic and creates a WebExtensions compatible extension working in Chrome, Firefox, Edge, Opera etc.

@ragingwind
Copy link
Owner

Right but this generator completely dedicated to Chrome.

@mischah
Copy link
Contributor

mischah commented Oct 27, 2017

Back to the topic: Yes, migrating from Bower to npm should be done. The sooner the better.

I’ve done the groundwork by migrating generator-jasmine and generator-mocha from Bower to npm:

So there is only some work left within this generator after updating the dependencies.

@sangimed
Copy link

@hkdobrev hkdobrev changed the title Replace Bower with Browserify Replace Bower with import May 3, 2018
@hkdobrev
Copy link
Author

hkdobrev commented May 3, 2018

Renamed the PR to reflect we could use imports rather than Browserify.

@ranbuch
Copy link

ranbuch commented May 24, 2018

Until you'll support import how can I use an npm package on my scripts.babel/background.js file?

@hkdobrev
Copy link
Author

@ranbuch I've set it up with Browserify initially, but the setup is not straightforward. We've just migrated our extension bootstrapped with this generator to Webpack 4 replacing Bower, Browserify and Gulp. Would try to send a pull request.

@ranbuch
Copy link

ranbuch commented May 25, 2018

Send a pull request with what?

@MarkOSullivan94
Copy link

@hkdobrev could you show how you've done that migration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants