Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .npmignore file to reduce npm package by 90% #45

Merged
merged 1 commit into from
Nov 26, 2023

Conversation

KaliedaRik
Copy link
Owner

This repo publishes a package to NPM manually (using npm publish on the local command line). As a result the publish step will generate and push a tarball which only excludes files determined by the .gitignore file, resulting in a package sized 33.0MB (56.7MB unpacked). The package includes all the files in the docs and demo folders:

Screenshot 2023-11-26 at 20 37 19

Developers do not need the documentation and demos when all they want to do is include Scrawl-canvas in their projects. This PR adds an .npmignore file to exclude these folders from the publish step. The resulting package size is 1.8MB (5.6MB unpacked):

Screenshot 2023-11-26 at 20 34 32

@KaliedaRik KaliedaRik changed the base branch from v8 to v8-dev November 26, 2023 20:45
@KaliedaRik KaliedaRik merged commit c3a4083 into v8-dev Nov 26, 2023
@KaliedaRik KaliedaRik deleted the rjr-add-npmignore branch November 26, 2023 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant