We are currently initializing the component library. In order to be flexible, we need a quick initialization directory structure. The currently used angular2
directory structure configuration file may be as follows
grid
-
col
-
grid
-
row
This way we hope to generate
grid.config.ts
grid.module.ts
index.ts
STATION.md
col.component.ts,
col.component .html,
col.component.scss,
grid.component.ts,
...
I also looked for filemap and baya on github.
Filemap was tested and can no longer be used.
The baya folder can be generated, but the file cannot be generated
I may plan to make the template file into json and use gulp to read it,
but it is not as intuitive as a tree
Does anyone have a solution or any suggestions for my solution
I made a simple version, but I haven’t considered the structure of multi-layered file directories yet, and I haven’t used recursion yet
Write a Node helper function yourself, read the configuration file step by step, and generate the required files and folders. Just recurse.
Write one yourself using the fs module, don’t be lazy