Skip to content
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

Move deploy and auth from generate to setup #1685

Merged

Conversation

dac09
Copy link
Collaborator

@dac09 dac09 commented Jan 28, 2021

As requested @thedavidprice

What it does

  • moves yarn rw g deploy xxx and yarn rw g auth yyy to yarn rw setup
  • adds a generic depracation handler, so we can reuse it

@github-actions
Copy link

github-actions bot commented Jan 28, 2021

@thedavidprice
Copy link
Contributor

@dac09 thanks again! I took a quick look. It seems like you are intending for the deprecated command to still run, correct? (Albeit by using the new setup version of the command.) This is my assumption at least.

I ran yarn rw g auth netlify and just got an error with the Deprecation warning, which wasn't expected based on my understanding.

The setup commands did run successfully when called directly.

@dac09
Copy link
Collaborator Author

dac09 commented Jan 28, 2021

Hey @thedavidprice, it should error out yes but tell you what the new command is, I haven't made it call the new command automatically - thought it'd be better to just tell the user what the right thing to do is.

At some point, we'll take these commands out, I guess, it made sense to me that this gives users the opportunity learn the new behaviour this way.

@dac09
Copy link
Collaborator Author

dac09 commented Jan 28, 2021

Happy to still call the command automatically if you prefer though

@thedavidprice
Copy link
Contributor

Got it and makes sense. Maybe two options:

  1. proceed as is, but make sure we've updated all docs and Tutorials accordingly
  2. go with a Deprecation Warning that still runs the command when using the old (and not worry about docs until closer to v1 and then fully deprecate)

I think option 1 is best, and that we should also go ahead and fully deprecate the rw g util tailwind to match behavior. Would you be ok to go this path and also update docs?

@dac09
Copy link
Collaborator Author

dac09 commented Jan 28, 2021

Yep already did the tailwind one! Will get the docs done too - added to list ✅

@dac09
Copy link
Collaborator Author

dac09 commented Jan 28, 2021

@thedavidprice updated docs also. Please do definitely check with your usual tests, as I only ran checks to see if the commands were being triggered (don't have verdaccio running)

@thedavidprice thedavidprice merged commit 2f97a0f into redwoodjs:main Feb 2, 2021
@thedavidprice thedavidprice added this to the next release milestone Feb 2, 2021
dac09 added a commit to dac09/redwood that referenced this pull request Feb 3, 2021
…ender-p1

* 'main' of github.com:redwoodjs/redwood:
  Fix obejct typo
  update all contrib (redwoodjs#1710)
  v0.24.0
  Move deploy and auth from generate to setup (redwoodjs#1685)
  codemod to pass e2e (redwoodjs#1708)
  Revise the CRWA package README (redwoodjs#1668)
  Router: Remove prop-types dep
  router.tsx: redirect spelling
  Router: Remove __REDWOOD__ global
  Router: TypeScript rewrite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants