From ffc1c8329388c13ca9d07aceec2dba73b9b45822 Mon Sep 17 00:00:00 2001 From: haad Date: Wed, 13 Dec 2017 16:24:59 +0100 Subject: [PATCH] Clean up npm package and git repo directory structures --- .gitignore | 14 ++++++++++---- .npmignore | 16 ++++++++++++++++ 2 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 .npmignore diff --git a/.gitignore b/.gitignore index 50c9cf9..ed009aa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,14 @@ -*sublime* +# Make sure to exclude test data directory +orbitdb/ + +# Don't distribute the dependencies node_modules/ + +# Don't track examples' dependencies (libs) in git examples/browser/browser-webpack-example/bundle.js examples/browser/browser-webpack-example/*.map examples/browser/lib -dist/*.map -dist/orbitdb.js -orbitdb/ + +# Don't track builds in git +# Distribution builds are available via npm +dist/ diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..1f9efef --- /dev/null +++ b/.npmignore @@ -0,0 +1,16 @@ +# Make sure to exclude test data directory +orbitdb/ + +# Don't distribute the dependencies +node_modules/ + +# Don't distribute examples with the module +# See examples at https://github.com/orbitdb/orbit-db +examples/ + +# Don't distribute source maps +dist/*.map + +# Don't distribute screenshot +# See examples at https://github.com/orbitdb/orbit-db +screenshots/