-
Notifications
You must be signed in to change notification settings - Fork 187
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
feat(cli): Support TS for zapier scaffold
[IQQ-1831]
#884
Conversation
zapier scaffold
[IQQ-1831]zapier scaffold
[IQQ-1831]
Thanks @tkcranny. Left some comments mostly on naming and refactoring. Note that there's conflict in the docs. |
This allows for more settings to be added (i.e. isTypeScript)
This will help with TS AST transformations
d6b2a96
to
a3a003f
Compare
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.
There are some generated/copied docs that should no longe be there.
// useful if your `searches` and `creates` return sparse objects | ||
// get: { | ||
// display: { | ||
// label: 'Get <%= NOUN %>', | ||
// description: 'Gets a <%= LOWER_NOUN %>.' | ||
// }, | ||
// operation: { | ||
// inputFields: [ | ||
// {key: 'id', required: true} | ||
// ], | ||
// perform: defineMe | ||
// } | ||
// }, |
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.
You want to uncomment this?
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.
This is standard in the JS Resource template, generated when --no-help
is not provided for extra docs.
This upgrades
zapier scaffold
to support TypeScript applicationsIt will automatically detect TS and JS projects if the
--entry
flag isn't provided, so that it can generate and edit the right files in the right places, given TS projects tend to keep their files in./src
.A lot of refactoring was done to provide clean ways to distinguish TS vs JS operations.