-
Notifications
You must be signed in to change notification settings - Fork 143
feat(cli): Optional dev enhancements (mprocs)#84
Open
jcodog wants to merge 4 commits intoupstash:main from
Open
feat(cli): Optional dev enhancements (mprocs) #84jcodog wants to merge 4 commits intoupstash:main from
jcodog wants to merge 4 commits intoupstash:main from
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds first-class support for Cloudflare Workers (Wrangler) to the CLI project scaffolding process. It introduces a new CLI prompt to ask users if their API will run on Cloudflare Workers, and, if so, configures the generated project with appropriate scripts, dependencies, and a
wrangler.jsonconfiguration file. It also updates several package versions and resolves some dependency version conflicts.Cloudflare Workers integration:
runCli) asking if the API will run on Cloudflare Workers, and passes this choice through the scaffolding process (cli/src/cli/index.ts,cli/src/helpers/scaffold-project.ts,cli/src/index.ts). [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]configureWranglerDev) that updatespackage.jsonscripts and devDependencies, creates anmprocs.yamlfor concurrent development, and is invoked if Cloudflare Workers is selected (cli/src/helpers/configure-wrangler-dev.ts).wrangler.jsonconfiguration file for Cloudflare Workers to the project template (cli/template/base/wrangler.json).Dependency and template updates:
base-package.json, including@tailwindcss/postcss,@tanstack/react-query,superjson,tailwind-merge,zod, and others. Also resolves merge conflicts in dependency versions. [1] [2]These changes streamline the process for users who want to deploy their API on Cloudflare Workers, ensuring the generated project is ready to use with Wrangler out of the box.