Skip to content

chore: remove netlify-cli from devDependencies#7216

Merged
Josh-Cena merged 1 commit into
mainfrom
jc/remove-netlify-cli
Apr 20, 2022
Merged

chore: remove netlify-cli from devDependencies#7216
Josh-Cena merged 1 commit into
mainfrom
jc/remove-netlify-cli

Conversation

@Josh-Cena
Copy link
Copy Markdown
Collaborator

Motivation

Netlify-cli has an incredible bundle size bloat: https://twitter.com/SidaChen63/status/1512969887274004482

Furthermore, it pulls in typescript@3.9 which under circumstances gets hoisted to the root and results in build errors. I hope this would fix it.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Ran the npx -p netlify-cli netlify dev script locally; still works

@Josh-Cena Josh-Cena added the pr: maintenance This PR does not produce any behavior differences to end users when upgrading. label Apr 20, 2022
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Apr 20, 2022
Comment thread yarn.lock
@@ -18378,12 +14879,7 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==

typescript@^3.9.10:
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the major motivation for this change.

The 3600 lines of lock file being removed is also a huge gain.

Copy link
Copy Markdown
Contributor

@RDIL RDIL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spectacular - let’s fast track this if possible!

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 20, 2022

[V2]

Name Link
🔨 Latest commit a4c0329
🔍 Latest deploy log https://app.netlify.com/sites/docusaurus-2/deploys/62601213fe4887000820c309
😎 Deploy Preview https://deploy-preview-7216--docusaurus-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link
Copy Markdown

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 51
🟢 Accessibility 100
🟢 Best practices 92
🟢 SEO 100
🟢 PWA 90

Lighthouse ran on https://deploy-preview-7216--docusaurus-2.netlify.app/

@github-actions
Copy link
Copy Markdown

Size Change: +5 B (0%)

Total Size: 799 kB

ℹ️ View Unchanged
Filename Size Change
website/.docusaurus/globalData.json 50 kB 0 B
website/build/assets/css/styles.********.css 106 kB 0 B
website/build/assets/js/main.********.js 604 kB +5 B (0%)
website/build/index.html 38.8 kB 0 B

compressed-size-action

@Josh-Cena Josh-Cena merged commit 42ca13f into main Apr 20, 2022
@Josh-Cena Josh-Cena deleted the jc/remove-netlify-cli branch April 20, 2022 14:14
@Josh-Cena
Copy link
Copy Markdown
Collaborator Author

For reference, the node_modules size decreased from 773M to 579M. I don't know what's up to netlify-cli but that's NOT a healthy dependency.

@Josh-Cena Josh-Cena changed the title chore: remove netlify-cli from dependencies chore: remove netlify-cli from devDependencies Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA pr: maintenance This PR does not produce any behavior differences to end users when upgrading.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants