-
Notifications
You must be signed in to change notification settings - Fork 66
Organize lib/projects and use lang objects #1465
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
Conversation
@@ -1122,8 +1128,8 @@ export const commands = { | |||
failedToFetchProjectDetails: | |||
'There was an error fetching project details', | |||
noFunctionsLinkText: 'Visit developer docs', | |||
noFunctionsInProject: link => | |||
`There aren't any functions in this project\n\t- Run ${chalk.orange('hs project logs --help')} to learn more about logs\n\t- ${link} to learn more about serverless functions`, |
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.
Haha you beat me to it, I saw that cursor made up the chalk.orange
function 🤦
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.
Haha cursor making things up was a common theme in this PR
@joe-yeager Just noticed you inlining |
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.
LGTM! Thanks for splitting that up and switching these over.
@camden11 yeah, I started out just converting the the function calls, and then I realized I can just move most of them to inline calls. I think we could start small as well, just start by leaving them as variables and then slowly move them over. Up to you if you want to do it as part of this PR. |
Yeah, I just went ahead and did it for |
Description and Context
The upcoming work to support the Local Dev UI will require a lot of additions to the
lib/projects
folder, so I figured now would be a good time to clean things up there a bit. This PR makes a variety of housekeeping changes/lib
into `lib/projects/localDev``localDev
renamed tohelpers
LocalDevManager
andLocalDevManagerV2
DevServerManager
andDevServerManagerV2
lib/projects/index
since it wasn't actually an index filelib/projects/config
ensureProjectExists
moved tolib/projects/ensureProjectExists
logFeedbackMessage
moved tolib/projects/ui
TODO
Due to file renaming, some files lang keys no longer match their file names. I didn't want to do even more in this PR, so we can update that at a later time if it ever becomes a problem
Who to Notify
@brandenrodgers @kemmerle @joe-yeager