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

feat(cli): Support TS for zapier scaffold [IQQ-1831] #884

Merged
merged 37 commits into from
Nov 5, 2024

Conversation

tkcranny
Copy link
Collaborator

@tkcranny tkcranny commented Oct 11, 2024

This upgrades zapier scaffold to support TypeScript applications

It 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.

@tkcranny tkcranny requested a review from a team as a code owner October 11, 2024 06:37
@tkcranny tkcranny changed the title Draft: feat(cli): Support TS for zapier scaffold [IQQ-1831] feat(cli): Support TS for zapier scaffold [IQQ-1831] Oct 24, 2024
@tkcranny tkcranny self-assigned this Oct 25, 2024
@kola-er
Copy link
Contributor

kola-er commented Oct 28, 2024

Thanks @tkcranny. Left some comments mostly on naming and refactoring. Note that there's conflict in the docs.

@tkcranny tkcranny force-pushed the IQQ-1831-ts-scaffold branch from d6b2a96 to a3a003f Compare November 1, 2024 05:26
Copy link
Contributor

@FokkeZB FokkeZB left a 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.

docs/cli.html Outdated Show resolved Hide resolved
packages/cli/docs/cli.html Outdated Show resolved Hide resolved
docs/cli.md Outdated Show resolved Hide resolved
Comment on lines +46 to +58
// 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
// }
// },
Copy link
Contributor

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?

Copy link
Collaborator Author

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.

packages/cli/docs/cli.html Outdated Show resolved Hide resolved
@kola-er kola-er merged commit 9fb0003 into main Nov 5, 2024
14 checks passed
@kola-er kola-er deleted the IQQ-1831-ts-scaffold branch November 5, 2024 13:56
@kola-er kola-er mentioned this pull request Nov 25, 2024
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.

3 participants