Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

feat: migrate assets related to initial setup and configuration from @wdio/cli#855

Closed
mato533 wants to merge 13 commits intowebdriverio:mainfrom
mato533:ta/feat/cli
Closed

feat: migrate assets related to initial setup and configuration from @wdio/cli#855
mato533 wants to merge 13 commits intowebdriverio:mainfrom
mato533:ta/feat/cli

Conversation

@mato533
Copy link
Member

@mato533 mato533 commented Jul 2, 2025

Description

Review the functional configuration between @wdio/cli and create-wdio.
In particular, transfer functions such as initial settings, services, and framework installation to this package.

The goal is to facilitate integration with interfaces other than cli (such as vscode).

In this PR, we will not make any major modifications, but rather aim to establish integration with @wdio/cli by porting the assets of the current @wdio/cli as-is as much as possible.

Remarks

We plan to perform maintenance such as improvements for integration with interfaces other than CLI and improvements to unit tests in a separate PR.

@mato533 mato533 marked this pull request as ready for review July 2, 2025 16:16
Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

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

Let's introduce a proper bundler for this. It may also be helpful to have independent exports for the vscode environment

scripts/copy.ts Outdated
@@ -0,0 +1,50 @@
import fg from 'fast-glob'
Copy link
Member

Choose a reason for hiding this comment

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

Let's not use a script for that, instead use a Vite plugin

Copy link
Member

Choose a reason for hiding this comment

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

Oh I see, we don't have this here, then it makes sense to have it. Let's use https://rolldown.rs/ for bundling instead of raw TS and include this as part of the build step.

Copy link
Member Author

Choose a reason for hiding this comment

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

@christian-bromann

I agree with bundling by rolldown! I think leveraging the rollup ecosystem and esbuild's speed will open up new possibilities.

I will push the update later.

Copy link
Member Author

Choose a reason for hiding this comment

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

@christian-bromann
I have pushed some changes which introduce rolldown configurations.

Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

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

LGTM 👍

We should make sure that we update our documentation at some point.

@mato533
Copy link
Member Author

mato533 commented Jul 3, 2025

finding the point of wrote down...

BTW, there is no confirmation, moving resources to the create-wdio side seems to pose a potential risk of incompatibility with the webdriverio side version.

Specifically, when running the slightly older @wdio/cli and when create-wdio is installed in a new version, services that are not supported by the old webdriverio will be displayed as options.

As a countermeasure, I think it would be best to incorporate create-wdio as a subpackage of the webdriverio repository so that version management can be performed as a single unit.

What do you think about this idea?

@christian-bromann
Copy link
Member

What do you think about this idea?

Makes totally sense, good call! Let's do that!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants