agrippa icon indicating copy to clipboard operation
agrippa copied to clipboard

Create tsx/jsx file at destination without child folder

Open k4linx opened this issue 1 year ago • 1 comments

Hi In my company we are working with nextjs, react and storyblok as cms.

I would like to create only a .tsx file at /base/dir/FileName.tsx. Curently i am only able to create the File like this: /base/dir/FileName/FileName.tsx. I also dont need the index.ts file that is generated every time.

I would love to see this be configurable in the configfile

best regards k4linx let me know if you need any more information

k4linx avatar Apr 03 '24 13:04 k4linx

Hi k4linx, Sorry for the delayed response!

Agrippa v1 used to have a "flat" flag that would generate only the component file, without a dedicated directory or styling/index files. Sounds like what you need.

I guess I never got around to implementing it in v2 - I'll try to get something out when I have some time. Will update.

nitzanhen avatar Apr 10 '24 01:04 nitzanhen