-
Notifications
You must be signed in to change notification settings - Fork 63
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
Convert Oauth, Polling, and Projects to TS #1306
Conversation
types/projects.ts
Outdated
@@ -0,0 +1,51 @@ | |||
import { Build, SubbuildStatus } from '@hubspot/local-dev-lib/types/Build'; |
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.
Nit, but in LDL we capitalize the filenames for everything in the types/
folder
Up to you, but if you wanted you could probably cut |
lib/projects/index.ts
Outdated
console.log(error); | ||
uploadResult = { uploadError: error }; | ||
} else if (callbackFunc) { | ||
console.log('callbackfunc'); |
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.
Looks like a console log snuck in
I changed the casing of |
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.
tested locally and everything still seems to work well! 👌
Description and Context
This converts the following
lib
files to TSoauth
polling
projects
It also restructures the projects lib files, since
lib/projects
was over 1200 lines long. All projects related lib files have been moved into the/projects
dir.lib/projects.ts
has been split into two files - all functionality related to builds and deploys has been moved tolib/projects/buildAndDeploy.ts
. The remaining functionality is not inlib/projects/index.ts
Need to merge and release this LDL PR before type checks will pass
HubSpot/hubspot-local-dev-lib#221
Who to Notify
@brandenrodgers @joe-yeager @kemmerle