-
Notifications
You must be signed in to change notification settings - Fork 982
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
add esbuild config to CLI build and dev #2564
add esbuild config to CLI build and dev #2564
Conversation
LGTM, do you want to add it to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a suggestion to make it evaluate the default value when the command is executed.
There are also some formatting warnings.
@thedavidprice probably would help updating the documentation on the feature https://github.com/redwoodjs/redwoodjs.com/pull/703 |
1. Add to CRWA Template redwood.tomlYes, I think that's a good idea.
2. Use option.default()I spent some time fiddling with this. Functionally it does work. However, it doesn't execute and display the value with the
Yargs docs don't offer much help other than that "the function name will be used...". However, I tried changing the function name and it wouldn't build. I'm assuming the priority is performance — avoid adding init time to Yargs — it was hard to determine the cost of not using the function. In several tests, the command execution time was identical. And we do already use something similar to I feel like the correct ? |
@thedavidprice Ok, if that doesn't work then let's just add it by default. I need to make those functions lazy. |
…s-ts # By David Price (6) and others # Via GitHub * 'main' of github.com:redwoodjs/redwood: build(deps): bump ts-morph from 10.1.0 to 11.0.0 (redwoodjs#2656) build(deps): bump core-js from 3.12.1 to 3.13.1 (redwoodjs#2680) bump react types and eslint packages patch version (redwoodjs#2695) build(deps): bump esbuild from 0.12.1 to 0.12.5 (redwoodjs#2654) upgrade misc packages with patch (redwoodjs#2694) Fix lerna canary publishing; use default --canary versioning with `git describe` (redwoodjs#2693) Upgrade axios due to security alert. (redwoodjs#2688) add esbuild config to CLI build and dev (redwoodjs#2564) set up yarn offline cache (redwoodjs#2669) Create file watch for type def generation (redwoodjs#2614) Pin package dependencies, remove CRWA template yarn.lock, set up Yarn offline cache (redwoodjs#2637) Fix serve tests (redwoodjs#2668) # Conflicts: # packages/cli/src/commands/generate/types/types.js # packages/internal/src/generate/generate-project-typedefs.js # packages/internal/src/generate/helpers.js # packages/internal/src/generate/templates/scenarios.d.ts.template
…ter-tests * 'main' of github.com:redwoodjs/redwood: downgrade jest-watch-typeahead 0.6.3 (redwoodjs#2699) Exclude yarn packages cache. (redwoodjs#2697) build(deps): bump ts-morph from 10.1.0 to 11.0.0 (redwoodjs#2656) build(deps): bump core-js from 3.12.1 to 3.13.1 (redwoodjs#2680) bump react types and eslint packages patch version (redwoodjs#2695) build(deps): bump esbuild from 0.12.1 to 0.12.5 (redwoodjs#2654) upgrade misc packages with patch (redwoodjs#2694) Fix lerna canary publishing; use default --canary versioning with `git describe` (redwoodjs#2693) Upgrade axios due to security alert. (redwoodjs#2688) add esbuild config to CLI build and dev (redwoodjs#2564) set up yarn offline cache (redwoodjs#2669) Create file watch for type def generation (redwoodjs#2614) Pin package dependencies, remove CRWA template yarn.lock, set up Yarn offline cache (redwoodjs#2637) Fix serve tests (redwoodjs#2668) Add script to create a functional test project using the latest CRWA template (redwoodjs#2324) build(deps): bump @typescript-eslint/eslint-plugin from 4.24.0 to 4.25.0 (redwoodjs#2627) Manage history state length exploding if clicking on a link with with the current route location (redwoodjs#2616) [forms] Fix number validation msg (redwoodjs#2552)
Closes #2069
@peterp decided to keep it simple for this one and go with:
What say you?