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

Add snake_case filename option #857

Merged
merged 2 commits into from Apr 20, 2023

Conversation

greeze
Copy link
Contributor

@greeze greeze commented Apr 17, 2023

Summary

We are using this to convert svgs into an icon library and our company has a snake_case filename policy. Since snake_case wasn't one of the existing options, we felt a need to add it.

  • Adds snake case option for cli and core.
  • Adds snake case option to website docs.
  • Adds snake case option to cli tests.
  • Adds snake case option to cli readme.

Test plan

pnpm run test

image

pnpm run test -t "should transform filename" packages/cli/src/util.test.ts

image

Joe Gores added 2 commits April 17, 2023 07:53
* Adds `snake` case option for cli and core.
* Adds `snake` case option to website docs.
* Adds `snake` case option to cli tests.
* Adds `snake` case option to cli readme.
@vercel
Copy link

vercel bot commented Apr 17, 2023

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

Name Status Preview Comments Updated (UTC)
svgr ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 17, 2023 3:22pm

@codecov
Copy link

codecov bot commented Apr 17, 2023

Codecov Report

Merging #857 (428cf01) into main (22a5a93) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #857      +/-   ##
==========================================
+ Coverage   92.80%   92.82%   +0.01%     
==========================================
  Files          32       32              
  Lines         751      753       +2     
  Branches      249      250       +1     
==========================================
+ Hits          697      699       +2     
  Misses         53       53              
  Partials        1        1              
Impacted Files Coverage Δ
packages/cli/src/util.ts 81.25% <100.00%> (+1.25%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@gregberge gregberge merged commit 428b0c7 into gregberge:main Apr 20, 2023
13 checks passed
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.

None yet

2 participants