numbers / numbers.js

Advanced Mathematics Library for Node.js and JavaScript
Apache License 2.0
1.77k stars 167 forks source link

standalone components #139

Closed Dakkers closed 9 years ago

Dakkers commented 9 years ago

mentioned briefly in #113. it would be nice to be able to have each component of the repo be separate. not all users care about statistics and matrix operations. some questions arise:

  1. do we remove the dependencies of a component? e.g. statistics depends on basic. (solution to this is to copy and paste the functions required but don't expose them to exports)
  2. do we create a separate repository for each component?

the problem from 2) is that how do we merge all of this into one large module? I'm sure this isn't too difficult, I am just unaware of any library that does this.

KartikTalwar commented 9 years ago

I'm personally not in favor of this approach. I think it's already been solved by having individual files for each component and they all get compiled to numbers.js

sjkaliski commented 9 years ago

+1 @KartikTalwar

Dakkers commented 9 years ago

that's understandable. I was thinking simply for the client-side, so that the file size isn't as large.

KartikTalwar commented 9 years ago

numbers.min.js should solve that (25kb)

Dakkers commented 9 years ago

:hamburger: :+1: