-
-
Notifications
You must be signed in to change notification settings - Fork 174
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 wrangler plugin #572
Add wrangler plugin #572
Conversation
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.
Thanks! Seems like some smooth sailing, just a few minor notes and I'll be happy to merge it
cwd, | ||
}); | ||
|
||
// console.log(issues); |
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 remove commented out code
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.
Fixed in the latest commit
packages/knip/src/plugins/index.ts
Outdated
@@ -54,3 +54,4 @@ export { default as vue } from './vue/index.js'; | |||
export { default as webpack } from './webpack/index.js'; | |||
export { default as wireit } from './wireit/index.js'; | |||
export { default as yorkie } from './yorkie/index.js'; | |||
export { default as wrangler } from './wrangler/index.js'; |
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 move it up so it's ordered alphabetically
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.
Fixed in the latest commit
@@ -77,6 +77,7 @@ export const pluginSchema = z.union([ | |||
]); | |||
|
|||
const pluginsSchema = z.object({ | |||
wrangler: pluginSchema, |
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 move it down so it's ordered alphabetically
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.
Fixed in the latest commit
Please also make sure the tests pass |
Hi, Thanks for the quick review! I'm actually not sure why the test is failing, at first it didn't fail locally, but now it is so I'm not sure why that was. I'm not sure what the right way to fix the test is, actually, shouldn't |
Usually it's best to have it close to a real-world scenario, so both sounds good :) |
Well I gave it a go 😅, now it's complaining about wrangler being unused and unlisted at the same time, I'm quite tired so I'll probably fix it tomorrow:
|
Knip checks the |
🚀 This pull request is included in v5.6.0. See Release 5.6.0 for release notes. |
Thanks again, Dániel! |
Makes sense, thank you! |
Hi 👋,
This PR aims to implement a plugin for Cloudflare Workers, or more specifically their
wrangler
cli. The config file iswrangler.toml
with json config in experimental status (has been for quite a while), and contains one relevant entry, the main entrypoint of the worker.I think I managed to add a correctly minimal fixture this time, the new config api made it even simpler compared to the Astro one 🎉, great work!