-
-
Notifications
You must be signed in to change notification settings - Fork 599
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
Plugin Migration #2
Comments
Would we want to mandate TypeScript for the Monorepo? I know this would severely slow down the migration, but in the end it would make the monorepo more consistent. Missing from the list IMO: rollup-pluginutils |
It would also mean that people can expect all @rollup/ plugins to have types. Alternatively we could say: Monorepo plugins should either be TS or at least have TS types, what do you think? |
I think we should mandate TypeScript for all plugins. I need to get look at some of these plugins in more detail to get a feel for it, but we should be able to infer a lot of the types. |
I don’t like the idea of adding on types as these quickly get stale as new features are built and it’s another set of technical debt that must be maintained. |
Definitely my preferred option as well. |
If we go for TypeScript, I would also throw in the suggestion to use TypeScript in tests as well. Just another safeguard that tests do not become stale. |
Agreed! I’ve used Jest and Jasmine in the past. I prefer Jest, but it looks like everyone is preferring Ava here. I am fine with that if you all think it works well. I do love how Jest has a lot of built in helpers like |
In the end, a lot of test are probably directory/sample based, meaning that the test file What I am saying is: I love Jest as well, but in the end, it will probably not matter too much. |
Cool, I’m good with that. I will trust your judgment on these things as I am newer to the rollup ecosystem. Looking forward to learning Ava to be honest. It looks nice and clean. |
I would go so far as to say that I don't want to take on so much as to slow down this re-organization. That being said, a lot of these tasks can be delegated as long as we have a few folks poking at this (which it looks like we will). Converting non-TS plugins to TS should be the final step. No reason why plugins that don't already have tests (e.g. auto-install) shouldn't have theirs written using TS either. Getting the ball rolling is more important than asserting TypeScript at every step imho, but I would not recommend we publish any new major versions until TS has been implemented. |
That's the great thing about TypeScript too, we can just rename the files to |
I would be interested in migrating rollup-plugin-babel (which I maintain) to the monorepo. I'm wondering if there is a plan to create a bot or smth that would ping "code owners" of the particular plugin? With many plugins inside a monorepo it might be harder to tackle all issues - I would like to focus mainly on babel-related ones but getting notifications about whole repo and filtering them on my own is rather a blocker for me. I'm just having too many notifications from GitHub already and I can't handle more than that. |
@Andarist wonderful. I'll add you to the Plugin Maintainers team shortly. Please follow the same pattern of opening a PR that we've been using so far. The process is still very manual at the moment. I and the other maintainers will be happy to pitch in on the effort. We're planning on tagging issues with plugin-specific tags, and all issues templates require the associated plugin's name, so hopefully it'll be easy to divine. A bot to manage notifications per plugin is a great idea. Alternatively, you could filter out any notification emails that didn't pertain to the plugin(s) you're interested in. That's relatively trivial to do with Gmail, not sure about other email providers. |
I'll get to migrating in the following weeks - need to wrap up some other OSS work now though and handle all issues/PRs in the |
@shellscape i can help with |
@btd that's great, thank you. I'll be adding you to the Plugin Maintainers shortly. Please follow the same patterns / procedures as the other Pull Requests for migrating. |
@shellscape I can help with
Also, it seems |
Anything I can help with? |
Thanks @shellscape , |
Great, I'll mark it down above. |
@shellscape will take rollup-plugin-commonjs next |
Hi, @shellscape As the earlier plugin is already deprecated will start working on rollup-plugin-commonjs please add it on my name. |
I'm interested in migrating node-resolve, PR incoming |
@thgh many thanks for that! |
I'd love to help migrate |
I can pick up |
I'm still processing this. |
@pnevares please do! @wuweiweiwu that would be wonderful, thank you. @TrySound no rush my friend 👍 |
@NotWoods perfect. The recent |
Can we add rollup-plugin-graphql to this repository? I know that it's not an official (I mean not maintened by Rollup team) Rollup plugin, but GraphQL is a well used language and this plugin is not compatible with Rollup ^1, an PR has been opened since more than 1 year (kamilkisiela/rollup-plugin-graphql#7) but it's not merged. So I've forked the package, applied @bennypowers's patch, added mutli-export support (Kocal/rollup-plugin-graphql@d699178), and published the package to @kocal/rollup-plugin-graphql. But that's not an ideal solution... GraphQL is well used and I think it would be nice to import it here. What do you think? Thanks! |
@Kocal (let's open new issues for questions like this in the future) this is tricky. We want to license all of the official plugins to the Rollup org, so to get any third party plugins into the org as an official, the author has to transfer it to the org and also update the LICENSE file. That's the only legit way to do it. Now, that doesn't preclude us from writing a new plugin with similar functionality and crediting the original author for ideas. But that has to be a completely new, from scratch, original piece of work, even including tests. Rewrites often fall into this category. So I would track down the author on twitter and/or open an issue asking about transferring to Rollup and relicensing, or start a new work. Given the age and lack of activity on the project, a new work might make more sense. |
@shellscape I can work on migrating the code for rollup-plugin-typescript |
That's great news. I'll ping you when it's prudent to start. We've got to get that repo tidy before we start. Lots of pending PRs that I'd like to give people time to respond to. I'll start closing them as abandoned later in the week. |
Are there any unclaimed plugins left? I'd like to help. |
@evanplaice awesome, thank you. yessir. |
I'm going to start working on babel migration soon - was occupied by some different stuff lately and also were iterating through a PR to the rollup-plugin-babel with Lukas, so it was not the right time to start preparing a migration. |
@shellscape Awesome work. This is great for ppl wants to contribute. Is there any pending plugins I can take ?. Happy to help 😃 |
@pajaydev thank you, it's a team effort! We pretty much have the migration down to the last few and in progress. We're migrating bugs and issues over from the old repos that are still relevant and would absolutely love some help with those! |
@shellscape Thanks. I will take a look. |
Hey 👋 In after moving todo list there is "Publish a patch version with the For example, take node-resolve plugin:
It would be really great to actually have patched versions with deprecation notice 🙏 |
@vladshcherbin we'll get there. Npm permissions for a lot of these plugins require author action, and it doesn't always happen fast. We ask for patience. |
@vladshcherbin would you be interested or open to moving rollup-plugin-copy here? |
@shellscape sure |
+1 for |
@matt3224 I think at this point that @TrySound prefers to keep that project under his personal account, and we respect that decision. That said, we'll always be open to hosting it here. |
@vladshcherbin I can help migrate |
There are any news about the |
@abdonrd use it at rollup-pugin-copy. |
Babel is migrated. We're done! Huge thank you to everyone that was involved in this effort! |
Below is the big-ass list of plugins that need migrating into this repo:
Done
Misc
In Progress
Pending
Skip
rollup-starter-pluginrollup-plugin-butternut(deprecated in favor of terser)rollup-plugin-node-builtins(was an empty repo, plugin owned by third party)rollup-plugin-ractive(Ractive is a dead project)rollup-plugin-svelte(will be transferred to @sveltejs)Before we move a plugin we should:
Give
n
number of days for response based on age of issue/PR, if there is a reproduction provided, etc.For each plugin we should:
After moving a plugin we should:
deprecated
property added to package.json.The text was updated successfully, but these errors were encountered: