You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a PR to add create-waku to Cloudflare's C3 CLI tool.
I'm trying to figure out if there is a way to run create-waku so that it doesn't require any interactive prompts.
I'm not sure if there is a way to pre-fill the project name. I think it would be expected to use the first positional argument for that. Or a --project-name option would be fine too. It was looking at the code and at the prompts npm package and I'm not seeing it.
The create-remix cli has a block of code that attempts to detect if it should run in a non-interactive mode. They also look for a custom environment variable (CREATE_REMIX_FORCE_INTERACTIVE).
// Adapted from https://github.com/sindresorhus/is-interactivereturnBoolean(process.stdout.isTTY&&process.env.TERM!=="dumb"&&!("CI"inprocess.env));
I could potentially help and create a PR for create-waku. Thanks!
The text was updated successfully, but these errors were encountered:
Hm, I think adding --project-name option sounds good. It might be useful for the normal usage. The question is if we could fallback to interactive mode if the provided --project-name value is invalid.
I'm working on a PR to add create-waku to Cloudflare's C3 CLI tool.
I'm trying to figure out if there is a way to run create-waku so that it doesn't require any interactive prompts.
I'm not sure if there is a way to pre-fill the project name. I think it would be expected to use the first positional argument for that. Or a
--project-name
option would be fine too. It was looking at the code and at theprompts
npm package and I'm not seeing it.In the create-cloudflare implementation for Remix - https://github.com/cloudflare/workers-sdk/blob/main/packages/create-cloudflare/templates-experimental/remix/c3.ts#L13 - the project name is passed as the first positional argument to the
npm create remix
command.The create-remix cli has a block of code that attempts to detect if it should run in a non-interactive mode. They also look for a custom environment variable (CREATE_REMIX_FORCE_INTERACTIVE).
I could potentially help and create a PR for create-waku. Thanks!
The text was updated successfully, but these errors were encountered: