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

Whitelist files to include when publishing #158

Merged
merged 3 commits into from
Jan 17, 2022

Conversation

MrChocolatine
Copy link
Member

@MrChocolatine MrChocolatine commented Nov 11, 2021

Build

Whitelist files to include when publishing (#158)

To reduce the final bundle size.

Before

➜ npm publish --dry-run

npm notice === Tarball Contents ===
npm notice 22B   .github/CODEOWNERS
npm notice 87B   config/environment.js
npm notice 527B  addon/index.js
npm notice 98B   app/index.js
npm notice 70B   index.js
npm notice 268B  addon/helpers/remove-diacritics.js
npm notice 66B   app/helpers/remove-diacritics.js
npm notice 221B  addon/helpers/slugify.js
npm notice 56B   app/helpers/slugify.js
npm notice 2.8kB package.json
npm notice 1.1kB LICENSE.md
npm notice 3.3kB README.md
npm notice 313B  .github/workflows/ci.yml
npm notice 375B  .github/workflows/contributors.yml
npm notice 691B  .github/dependabot.yml
npm notice 547B  .github/workflows/tag-release-publish.yml
npm notice === Tarball Details ===
npm notice name:          ember-slugify
npm notice version:       2.0.0
npm notice package size:  4.4 kB
npm notice unpacked size: 10.6 kB
npm notice total files:   16

After

➜ npm publish --dry-run

npm notice === Tarball Contents ===
npm notice 87B   config/environment.js
npm notice 527B  addon/index.js
npm notice 98B   app/index.js
npm notice 70B   index.js
npm notice 268B  addon/helpers/remove-diacritics.js
npm notice 66B   app/helpers/remove-diacritics.js
npm notice 221B  addon/helpers/slugify.js
npm notice 56B   app/helpers/slugify.js
npm notice 2.9kB package.json
npm notice 1.1kB LICENSE.md
npm notice 3.3kB README.md
npm notice === Tarball Details ===
npm notice name:          ember-slugify
npm notice version:       2.0.0
npm notice package size:  3.5 kB
npm notice unpacked size: 8.7 kB
npm notice total files:   11

@MrChocolatine MrChocolatine changed the title reduce publish build size Whitelist files to include when publishing Nov 11, 2021
@MrChocolatine MrChocolatine marked this pull request as ready for review November 11, 2021 15:24
@MrChocolatine MrChocolatine requested a review from a team as a code owner November 11, 2021 15:24
@GreatWizard GreatWizard merged commit 2b9fcac into master Jan 17, 2022
@GreatWizard GreatWizard deleted the reduce-publish-build-size branch January 17, 2022 14:31
@GreatWizard GreatWizard mentioned this pull request Jan 19, 2022
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.

2 participants