Closed CarsonF closed 4 years ago
Nice, ya this seems like it will give more consistent result. Right now it relies on the casing of the API name itself being standardized and consistent.
I would suggest that we don't include the entire lodash library as it's actually quite large ~(75kb), and the build process doesn't currently use any type of tree-shaking.
I believe we can install just a single lodash function:
npm install --save lodash.camelCase
I didn't think size mattered. That was the point of moving the generator into a separate library. It's only ran server side. Right?
Also those packages are deprecated and will be removed in v5
duh!
lol, sorry I wasn't using my brain. Ya, we can add pretty much whatever to the generator.
Previously the wrong first letter was being used because it was pulling from the raw, uncleaned API name.
It doesn't handle all cases as noted with difference between now and best, but I think it gets closer.