I'm currently setting up a new JSS project using the JSS React boilerplate and I ran into an issue regarding the scaffolding of components. When using the scaffolding script I can use
jss scaffold Foo to scaffold a Foo component in the
src/components folder as well as the needed sitecore files.
I'm trying to achieve scaffolding nested components in the
src/components folder a React.js front-end SPA. With the current way of scaffolding, I'm not able to do this. Placing the scaffolded component in a subfolder in
src/components/Bar/Foo won't work. Even when I keep the same folder structure in
sitecore/definitions/components. I suspect this is due to some paths being used while scaffolding in seperate files.
Is there a way to have nested components in
src/components to build a structured project?