anvaka / ngraph.graph

Graph data structure in JavaScript
BSD 3-Clause "New" or "Revised" License
520 stars 66 forks source link

Add files to package.json #10

Closed styfle closed 5 years ago

styfle commented 5 years ago

This prevents publishing unnecessary files to npm.

See the docs here: https://docs.npmjs.com/files/package.json#files

anvaka commented 5 years ago

To be honest, I don't see much value in stripping npm packages - I've been caught exploring node_modules while on airplaine (with limited internet access) and having ability to read the entire source code was very helpful..

styfle commented 5 years ago

This isn't going to remove the source code, you can still explorer node_modules.

It will remove files like:

perf/
test/
.travis.yml

These are not useful unless you are developing ngraph.graph in which case, you would clone the repo.

anvaka commented 5 years ago

Sorry, I'd like to keep the file in the repository, so that developers who install the library can have full access to the source code when they are coding on an airplane, North Pole, space or anywhere else where there is no great internet connection