position-calculator icon indicating copy to clipboard operation
position-calculator copied to clipboard

Publish on npm

Open SlyNet opened this issue 7 years ago • 4 comments

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

SlyNet avatar Sep 28 '17 09:09 SlyNet

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?

tlindig avatar Sep 28 '17 14:09 tlindig

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

alfeg avatar Sep 28 '17 15:09 alfeg

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.

knod avatar Sep 28 '17 17:09 knod

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.

tlindig avatar Sep 29 '17 07:09 tlindig