Skip to content

chore: add ability to generate components outside of base dir

Paul Gascou-Vaillancourt requested to merge plop-select-directory into master

Currently, the generate:component let's us generate new components in the src/components/base directory. In some cases, we might want to put new components in other folders, like some subdirectory in base/ or in a completely different directory (src/components/regions for example).

This MR makes this possible by adding the inquirer-select-directory package and tweaking our Plop config.

image

Edited by Paul Gascou-Vaillancourt

Merge request reports