deps-new

agorgl 2023-03-03T20:36:10.337629Z

Hello! I'm using a monorepo structure in my projects with subdirs for each different component of the project e.g. <project>/{web,service,deploy,scripts}. I recently decided I wanted to make a deps-new template for it! I know that I can add custom mappings in the :transform keyword of template.edn , but I think I'm missing something. Isn't there an easy way to copy the <template-root>/web folder to <target-project>/web but excluding <template-root>/web/src folder that needs to be mapped to <target-project/web/src/{{raw-name/file}} ? It seems that there is an :only functionality but not an :excluding one. I suppose the only way to achive this is by specifying in one transform rule the mappings for ALL the files / folders in the web source directory?

seancorfield 2023-03-03T20:46:26.071899Z

The easiest approach is probably to have /web and /web-src as separate folders in the template that have separate mappings.

agorgl 2023-03-03T21:03:18.218109Z

Yeah in the end I used separate web/{root,src,test} directories with separate mapping for each one

👍🏻 1