From ff8b197f6716d49b0c514c07f798a5b9789004ad Mon Sep 17 00:00:00 2001 From: Adam Magaluk Date: Sat, 8 Dec 2018 15:54:08 -0500 Subject: [PATCH] Added npmignore to cut down on package size. (#371) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From around 600KB to 147KB ``` npm notice npm notice 📦 zetta@1.5.1 npm notice === Tarball Contents === npm notice 1.6kB package.json npm notice 1.1kB LICENSE npm notice 2.3kB README.md npm notice 364B zetta_runtime.js npm notice 11.5kB zetta.js npm notice 2.6kB lib/api_formats/siren/device.siren.js npm notice 1.0kB lib/api_formats/siren/devices.siren.js npm notice 1.1kB lib/api_formats/siren/metadata.siren.js npm notice 2.3kB lib/api_formats/siren/server.siren.js npm notice 733B lib/api_formats/siren/type.siren.js npm notice 820B lib/api_resources/devices.js npm notice 10.3kB lib/api_resources/peer_management.js npm notice 9.6kB lib/api_resources/root.js npm notice 14.6kB lib/api_resources/servers.js npm notice 554B lib/device_registry.js npm notice 11.3kB lib/event_broker.js npm notice 7.2kB lib/event_socket.js npm notice 683B lib/http_scout.js npm notice 16.6kB lib/http_server.js npm notice 2.6kB lib/logger.js npm notice 5.7kB lib/peer_client.js npm notice 1.5kB lib/peer_registry.js npm notice 10.4kB lib/peer_socket.js npm notice 5.2kB lib/pubsub_service.js npm notice 771B lib/query_topic.js npm notice 392B lib/query.js npm notice 1.9kB lib/registration_resource.js npm notice 3.5kB lib/registry.js npm notice 10.2kB lib/runtime.js npm notice 358B lib/spdy_agent.js npm notice 5.3kB lib/virtual_device.js npm notice 2.8kB lib/web_socket.js npm notice === Tarball Details === npm notice name: zetta npm notice version: 1.5.1 npm notice package size: 34.8 kB npm notice unpacked size: 146.7 kB npm notice shasum: 0cc2f0d39ea371a3cf57bd652904b90df674046c npm notice integrity: sha512-Xk4m5/rKH9Fk0[...]hGsCFx7zw8sOA== npm notice total files: 32 npm notice ``` --- .gitignore | 1 + .npmignore | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .npmignore diff --git a/.gitignore b/.gitignore index 6e8ed5f..63518da 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ zetta-runtime-jscoverage .registry .peers .devices +.vscode \ No newline at end of file diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..23c7e86 --- /dev/null +++ b/.npmignore @@ -0,0 +1,21 @@ +*.swo +*.swp +.DS_Store +.tern-port +argo-HEAD +argo-jscoverage +registry.json +*~ +*.log +*.heapsnapshot +zetta-runtime-HEAD +zetta-runtime-jscoverage +.registry +.peers +.devices +.travis.yml +.vscode + +test/ +bin/ +example/ \ No newline at end of file