Comments (8)
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.
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.
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.
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.
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.
@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.
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.
bower.json added in v2.0.6
from bignumber.js.
Related Issues (20)
- Strangeness in "minimum" method HOT 2
- Using version 9.1.1, run new BigNumber(0).exponentiatedBy('-12345678901234567890123456789012345678901234567890').valueOf() Is return to infinity normal? HOT 1
- Issue toNumber() function round up when number is too big (v9.1.1) HOT 2
- Division on exponential values leads to infinite loop HOT 3
- 负数加减乘除不好用 HOT 1
- [Feature Request]: Can we support `toBigInt`?
- Type error HOT 2
- Big Number (toFixed,dp,decimalPlaces,toFormat) - Chrome Update Issue 115.0.5790.102 HOT 24
- Minus sign in formatted strings HOT 2
- wrong calculation result on multipliedBy/times methods HOT 1
- toNumber does not respect ROUNDING_MODE HOT 11
- Calculation error HOT 1
- Is there any other way to handle new BigNumber(999999999999999999999) without using strings? HOT 2
- Difference between multipliedBy and dividedBy behaviors HOT 2
- Different result between toFixed and toNumber HOT 1
- Can't convert to Base64 HOT 1
- Tree shake commonjs version from mjs version HOT 1
- toFixed error
- [Bug] Return Type of Methods HOT 1
- Logarithms (I know there is another issue about this)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bignumber.js.