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.

Using superagent with bower

See original GitHub issue

Hey I’m trying to use v1.8.0 with bower. After installing it with bower I don’t know which js file I am supposed to include in my project. Before in older versions there was the file /bower_components/superagent/superagent.min.js but that doesn’t exist no more. Please advise.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
chrisdchristocommented, Mar 11, 2016

Also in general with the releases here, where are the final production files? I would expect a superagent.js and a superagent.min.js file included in the artifacts in the github releases. But alas all I see is source code zips and tars. Seriously?

0reactions
kornelskicommented, Nov 22, 2016

git repository shouldn’t contain derived files, especially when they’re unmergeable. I’d prefer not to add such files just because Bower is confuses source code with a built product.

My suggestions:

  1. Consider abandoning Bower. NPM 3 has a flat directory structure. Yarn has --flat switch that enforces Bower-like version resolution.

  2. If you have to use Bower, use build tools like Gulp and Webpack that will build and minify superagent’s source for you.

  3. If you really have to use Bower and can’t have a build step, fork this repository and add and maintain the derived files yourself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using superagent with bower · Issue #936 - GitHub
Hey I'm trying to use v1.8.0 with bower. After installing it with bower I don't know which js file I am supposed to...
Read more >
angular-superagent on Bower - Libraries.io
Angular wrapper for Superagent - a JavaScript package on Bower ... Include release/angular-superagent.js and register the ngSuperagent module in your app.
Read more >
How do I use SuperAgent in a simple MVC 5 app?
I am trying to use SuperAgent.js in a simple HTML page in a MVC 5 app I ... I was able to create...
Read more >
org.webjars.bower:superagent vulnerabilities - Snyk
Known vulnerabilities in the org.webjars.bower:superagent package. This does not include vulnerabilities belonging to this package's dependencies.
Read more >
bright-superagent - npm
SuperAgent is a small progressive client-side and Node.js HTTP request library, sporting many high-level HTTP client features. View the docs.
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