Closed teomaragakis closed 8 years ago
Additionally:
invalid-meta The "name" is recommended to be lowercase, can contain digits, dots, dashes
wonder if it'd be easier for people to grab this off npm and we could specify the jquery dependencies there.
any thoughts @davatron5000? how are you handling client side deps these days?
Well bower is meant for front-end packages, and given that this is a package that will mainly be used in websites, grabbing it off bower makes more sense.
To quote from this great Stackoverflow answer:
So, the common usage is Bower for the packages that you want to publish on your webpages (e.g. runtime, where you avoid duplication), and use npm for other stuff, like testing, building, optimizing, checking, etc. (e.g. development time, where duplication is of less concern).
The full answer is a very interesting read if you're interested.
yes that's true but it's just as easy to grab it from npm, especially if you want to bundle and minify it and references it in your code. and it's becoming way more common place to do that.
this is also worth considering https://github.com/bower/bower/issues/2298
Bower has been nothing but trouble to support. I'm looking moving FitVids over to npm
as well https://github.com/davatron5000/FitVids.js/pull/211
But we probably need to support both for the meanwhile. I don't use Bower so it's a lot of mental energy to jump in a figure it out. Does anyone know how to fix this? Like are there bullet points? Update main
, ignore
, and name
attributes? To what?
@davatron5000 will put some energy on it this after right now big guy, no worries.
try running bower cache clean && bower install jquery-fittext.js --save
That stack overflow post about how bower is "the" front end choice is now very outdated. A modern build process now involves all dependencies (front end or otherwise) being pulled from NPM then built using module loaders such as webpack and browserify. The latest changes also make NPM work similar to bower in terms of conflict resolution.
Its also not a choice of one or the other. Alls thats needs to be done is:
npm init
)main
declaration points to the main fittext js file.npm publish
npm is for JavaScript. There is no front-end or backend JavaScript, only code highly coupled to the DOM.
Please remove bower from this project as soon as possible
@graingert why?
@charlespeters why what?
@teomaragakis really sorry about that; tagged the wrong person
@graingert why do we need to remove bower? if you want to use npm you totally can.
@charlespeters if bower has packages, people might use it
@graingert it's just a chance we'll have to take