Skip to content

Improve create-y-sweet-app#340

Merged
jakelazaroff merged 6 commits into
mainfrom
create-y-sweet-app-2
Nov 25, 2024
Merged

Improve create-y-sweet-app#340
jakelazaroff merged 6 commits into
mainfrom
create-y-sweet-app-2

Conversation

@jakelazaroff

Copy link
Copy Markdown
Contributor
  • Fix npm's bin settings and add shebang
  • Fix argument parsing
  • Add interactive menu for choosing framework when used with no command line options
  • Add README.md for create-y-sweet-app package and framework templates.

@vercel

vercel Bot commented Nov 25, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
y-sweet-debugger ⬜️ Ignored (Inspect) Visit Preview Nov 25, 2024 8:40pm
y-sweet-demos ⬜️ Ignored (Inspect) Visit Preview Nov 25, 2024 8:40pm
y-sweet-gendocs ⬜️ Ignored (Inspect) Visit Preview Nov 25, 2024 8:40pm

Comment thread js-pkg/create-y-sweet-app/src/cli.js
Comment thread js-pkg/create-y-sweet-app/src/cli.js

@ellipsis-dev ellipsis-dev Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Reviewed everything up to ee502a1 in 1 minute and 8 seconds

More details
  • Looked at 513 lines of code in 40 files
  • Skipped 10 files when reviewing.
  • Skipped posting 3 drafted comments based on config settings.
1. js-pkg/create-y-sweet-app/src/run.js:22
  • Draft comment:
    Catching all errors and logging them before calling help() might not be the best approach. Consider handling specific errors more gracefully.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The error handling in the try-catch block is not specific enough. It logs the error and then calls the help function, which might not be the best way to handle all errors. It would be better to handle specific errors more gracefully.
2. js-pkg/create-y-sweet-app/src/run.js:8
  • Draft comment:
    The question function is duplicated in cli.js and run.js. Consider removing the duplicate in run.js and using the one from cli.js.
  • Reason this comment was not posted:
    Comment looked like it was already resolved.
3. js-pkg/create-y-sweet-app/src/run.js:11
  • Draft comment:
    The FRAMEWORKS constant is defined as a Set, but it is only used for membership checks and listing. Consider using an array instead.
  • Reason this comment was not posted:
    Confidence changes required: 30%
    The FRAMEWORKS constant is defined as a Set, but it is only used for checking membership and listing available frameworks. A Set is not necessary for these operations, and an array would suffice.

Workflow ID: wflow_ZHD5p4y18TbVGXSQ


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@ellipsis-dev ellipsis-dev Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on ce52c7a in 5 seconds

More details
  • Looked at 25 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. js-pkg/create-y-sweet-app/src/cli.js:104
  • Draft comment:
    Fix the typo in the comment.
      // store number of lines we just rendered
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The comment on line 99 has a typo that should be corrected for clarity.

Workflow ID: wflow_ene7w3KgnvdNz6Hn


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@rolyatmax rolyatmax left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Love the select() function!

@jakelazaroff jakelazaroff merged commit 0e4f649 into main Nov 25, 2024
@jakelazaroff jakelazaroff deleted the create-y-sweet-app-2 branch November 25, 2024 21:01
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.

2 participants