-
-
Notifications
You must be signed in to change notification settings - Fork 943
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
chore(tooling): install knip and remove unused files / dependencies #3106
Conversation
✅ Deploy Preview for fakerjs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #3106 +/- ##
==========================================
+ Coverage 99.96% 99.97% +0.01%
==========================================
Files 2776 2776
Lines 226260 226260
Branches 945 592 -353
==========================================
+ Hits 226183 226206 +23
+ Misses 77 54 -23 |
@@ -94,12 +95,6 @@ | |||
], | |||
"devDependencies": { | |||
"@actions/github": "6.0.0", | |||
"@algolia/client-search": "5.2.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this dependency is now, optional. It would be good if somebody could test that as well.
Thinking: I wonder when that change happened.
@@ -30,7 +30,8 @@ | |||
"docs:test:e2e:open": "run-p --race docs:serve \"cypress open\"", | |||
"release": "commit-and-tag-version", | |||
"prepublishOnly": "pnpm run clean && pnpm install && pnpm run build", | |||
"preflight": "pnpm install && run-s generate format lint build test:update-snapshots ts-check" | |||
"preflight": "pnpm install && run-s generate format lint build test:update-snapshots ts-check", | |||
"knip": "knip" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this something we should run as part of preflight? Or in our CI to find these as early as possible?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preflight is already slow enough 😀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just ran the preflight and yes, it's painful ahhahahah Do we need to do this preflight like that? Why the process is not splited using git hooks e.g and run, only if needed. We can perform some tasks only in the files in stage, using lint-staged e.g, WDYT? I can draw a proposal and explain my pov better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it would be good to open a separate discussion on ways to speed up preflight
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed! I will create that discussion and add my thought there 🙏🏻
Team Decision For now, we don't see a need to keep knip permanently in the project. Do you know how good the github ci integration of knip is? We will discuss this some more in the next team-meeting with other team members. |
@@ -94,12 +95,6 @@ | |||
], | |||
"devDependencies": { | |||
"@actions/github": "6.0.0", | |||
"@algolia/client-search": "5.2.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please create a separate PR that remove this dependency. That way it is easier to test for breaking changes.
@@ -132,7 +127,6 @@ | |||
"typescript": "5.5.4", | |||
"typescript-eslint": "8.3.0", | |||
"validator": "13.12.0", | |||
"vite": "5.4.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please create a separate PR that remove this dependency. That way it is easier to test for breaking changes.
Team Decision
Thanks for bringing this to our attention anyway. |
chore(tooling): install knip and remove unused files / dependencies
Changes Made:
Details of Changes:
Additional Details:
What is next?