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

chore(cli-storybook): improve types, style changes #8555

Merged
merged 3 commits into from
Jun 7, 2023
Merged

Conversation

jtoar
Copy link
Contributor

@jtoar jtoar commented Jun 7, 2023

@Josh-Walker-GM here's a small set of changes to the cli-storybook package after our discussion earlier. I think the types could still be better, or at least I could be more confident in them, but what's in this PR is probably better than before. Most of this PR is just style changes though, and I thought I'd get those out of the way before we start moving other commands over.

I took a small crack at adding dependency cruiser, and adding it to every package.json seems like overkill, so I'm going to try making that into a script in tasks/.

Style changes:

  • spaces between related config options in build.mjs
  • functions over arrow functions in command module
  • sorted the package.json

- add some types
- add type dev dep
- style for build.mjs file and command module
@jtoar jtoar added the release:chore This PR is a chore (means nothing for users) label Jun 7, 2023
@jtoar jtoar requested a review from Josh-Walker-GM June 7, 2023 21:54
Copy link
Collaborator

@Josh-Walker-GM Josh-Walker-GM left a comment

Choose a reason for hiding this comment

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

Nice. Happy with all these and thanks for the types! I just wasn't sure how to approach them with yargs specifically.

I prefer functions over arrow functions in most cases too! I was just following the existing pre split out styling where they're all arrow functions.

Good idea about putting it in as a task.

@jtoar jtoar merged commit f1e8a50 into main Jun 7, 2023
9 of 10 checks passed
@jtoar jtoar deleted the ds-cli-plugins/wip branch June 7, 2023 22:21
@redwoodjs-bot redwoodjs-bot bot added this to the next-release milestone Jun 7, 2023
@jtoar jtoar modified the milestones: next-release, v6.0.0 Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:chore This PR is a chore (means nothing for users)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants