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

fix(cli): fixed frontmatter clean up in generate cmd #2328

Merged
merged 4 commits into from Jan 3, 2023

Conversation

frankcalise
Copy link
Contributor

@frankcalise frankcalise commented Dec 5, 2022

Please verify the following:

  • yarn test jest tests pass with new tests, if relevant
  • README.md has been updated with your changes, if relevant

Describe your PR

@frankcalise
Copy link
Contributor Author

@joshuayoes if you could review and test win/mac via npm link it would be appreciated :)

I ran through it but to double check

@frankcalise frankcalise marked this pull request as ready for review December 19, 2022 18:41
@joshuayoes
Copy link
Contributor

@joshuayoes if you could review and test win/mac via npm link it would be appreciated :)

I ran through it but to double check

Yeah I can take a look at this tomorrow!

Copy link
Contributor

@joshuayoes joshuayoes left a comment

Choose a reason for hiding this comment

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

I tried it on Windows, and it still had the same issue. Gluegun has a utility for end-of-line that I added, which I tested on Windows and Mac and seems to be working

@frankcalise
Copy link
Contributor Author

I tried it on Windows, and it still had the same issue. Gluegun has a utility for end-of-line that I added, which I tested on Windows and Mac and seems to be working

Nice! yeah it looks like I committed a typo even, not sure why "n" was there, should have been empty quotes. I like your EOL fix though. Thanks!

@frankcalise
Copy link
Contributor Author

@joshuayoes actually I still see the same issue, what shell are you running in Windows?

This is the only thing that I've seen working:
const NEW_LINE = process.platform === "win32" ? "" : "\n"

@joshuayoes
Copy link
Contributor

I was running bash on windows, which may be giving me a false positive. I'll try again with powershell and cmd

@joshuayoes
Copy link
Contributor

To link the CLI, I ran

yarn install
yarn build
npx link

And then to test, I ran

cd boilerplate
npx ignite-cli generate component Checkbox

On bash, powershell, and cmd on windows. I'm seeing the EOL fix working in all those shells on my machine

@frankcalise frankcalise merged commit f4788f9 into master Jan 3, 2023
@frankcalise frankcalise deleted the fix/frontmatter-cleanup branch January 3, 2023 19:19
infinitered-circleci pushed a commit that referenced this pull request Jan 3, 2023
## [8.4.5](v8.4.4...v8.4.5) (2023-01-03)

### Bug Fixes

* **cli:** fixed frontmatter clean up in generate cmd ([#2328](#2328) by [@joshuayoes](https://github.com/joshuayoes) and [@frankcalise](https://github.com/frankcalise)) ([f4788f9](f4788f9))
* list item component to take children and add const assertion to colors ([#2337](#2337) by [@kateinkim](https://github.com/kateinkim)) ([7bdcec3](7bdcec3))
* **boilerplate:** updated web drawer layout width ([#2342](#2342) by [@frankcalise](https://github.com/frankcalise)) ([58de713](58de713))
* **screens:** ErrorBoundary invalid should update ([#2323](#2323) by [@tschai-yim](https://github.com/tschai-yim)) ([3952b69](3952b69))
@infinitered-circleci
Copy link

🎉 This PR is included in version 8.4.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ignite-cli generate command leaves some unnecessary lines
3 participants