The team is now working on the WordPress Interactivity API. This unblocks the same UX Frontity framework enabled but directly in WordPress Core, fully compatible with the new Site Editor.
The --dont-open-browser flag in npx frontity dev is very long to type out. Using commands should be as short and efficient as possible.
Possible solution
Add a -d, or similar terse version, as an alternative to the --dont-open-browser flag.
SantosGuillamot2
I agree --dont-open-browser could be a bit long. However, @luisherranz just merged a Pull Request to get rid of all the short flags in the CLI because they weren’t consistent, so I wouldn’t use -d until we agree on a standardize way to create them. Do you know how other tools are doing it? I guess this is a typical flag.
luisherranz3
We have --no-prompt. Maybe this could be renamed to --no-browser?
SantosGuillamot4
Would it makes sense to use --browser none? I mean, if you don’t use that flag it would use the default browser, but maybe it’s also interesting in the future to be able to use this same flag to open different browsers if wanted.
I’ve seen that Create React App has an environment variable for something similar, and I thought it could be interesting.