Skip to content

Add snake_case filename option#857

Merged
gregberge merged 2 commits into
gregberge:mainfrom
evernowinc:snake_case_option
Apr 20, 2023
Merged

Add snake_case filename option#857
gregberge merged 2 commits into
gregberge:mainfrom
evernowinc:snake_case_option

Conversation

@greeze

@greeze greeze commented Apr 17, 2023

Copy link
Copy Markdown
Contributor

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

vercel Bot commented Apr 17, 2023

Copy link
Copy Markdown

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

codecov Bot commented Apr 17, 2023

Copy link
Copy Markdown

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

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