tlindig / position-calculator

jQuery plugin, to calculate the position of an element relative to another element or event. Tries to find a collision free position within the viewport of a given container.
MIT License
101 stars 13 forks source link

Publish on npm #8

Open SlyNet opened 7 years ago

SlyNet commented 7 years ago

Bower is deprecated, is it possible to have npm package published?

tlindig commented 7 years ago

Well, this software need a browser, it will not work on nodejs. So make it sense to publish it as a node package? I don't know, what do you think?

alfeg commented 7 years ago

Bower officially propose to use yarn or webpack as a replacement for bower - https://github.com/bower/bower/issues/2298

There is even an old blog post from npmjs team - http://blog.npmjs.org/post/101775448305/npm-and-front-end-packaging

knod commented 7 years ago

Node can be used on the front end/in the browser too. It's a package manager. It can also do other stuff, but it can work just fine just to manage packages/modules/scripts. Instead of using require, you just reference the right script in the 'node_modules' folder. You're already using the umd pattern, and you don't require() anything in your package from what I can tell, so it should work.

You still don't have to make an npm package, but this is info to keep in mind.

tlindig commented 7 years ago

So thank for the hint. I think it is a good suggestion to make a npm package. I just have less time but hope can do it soon.