Coder Social home page Coder Social logo

Add missing bower.json about bignumber.js HOT 8 CLOSED

mikemcl avatar mikemcl commented on June 21, 2024
Add missing bower.json

from bignumber.js.

Comments (8)

MikeMcl avatar MikeMcl commented on June 21, 2024

I am reluctant to include more than one package metadata file. I don't want to have to add and maintain a package.json, bower.json and component.json etc. for my repos. It is a shame that bower does not fall back to the package.json 'main' property, but I don't want to get into all that...

from bignumber.js.

metaman avatar metaman commented on June 21, 2024

Shame. We could have done with one as well. Obviously we could fork and add it but keeping the fork in sync is not ideal for us.

from bignumber.js.

MikeMcl avatar MikeMcl commented on June 21, 2024

The library is registered with bower and if a user just wants to install the main file (should that be bignumber.js or bignumber.min.js?) they can just do e.g.

bower install --save https://raw.githubusercontent.com/MikeMcl/bignumber.js/master/bignumber.min.js

from bignumber.js.

metaman avatar metaman commented on June 21, 2024

Thanks for the reply Mike! Unfortunately the issue is that we have custom dependency/build scripts that reply on our third party libraries having bower.json files :(

Should I get time (?) I would like to investigate changing this (i'm fairly new to the project). Personally I don't want a hard dependency on bower (useful that it is).

from bignumber.js.

nicolaes avatar nicolaes commented on June 21, 2024

Had the same problem with bower.json's "main" property. Our scripts rely on that property to build the project - similar with what @metaman described.
Unfortunately we had to rely on big.js but the development is hindered due to it's reduced feature set.
Would love to see an update on this.

from bignumber.js.

MikeMcl avatar MikeMcl commented on June 21, 2024

@nicolaes Okay, I'll add a bower.json tomorrow.
Do you think the "main" file should be bignumber.js or bignumber.min.js?

from bignumber.js.

nicolaes avatar nicolaes commented on June 21, 2024

Thanks @MikeMcl .
As bower automatic dependencies are almost always used with build scripts that include minification I suggest going with "main": "bignumber.js" - as you did in the big.js library :)
If there is need I can also lend a hand with the development around, by the way.

from bignumber.js.

MikeMcl avatar MikeMcl commented on June 21, 2024

bower.json added in v2.0.6

from bignumber.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.