monstar-lab-oss / ml-frontend

A monorepo created to provide a starter kit for front-end projects at Monstar Lab, Inc.
https://www.npmjs.com/package/start-frontend
Mozilla Public License 2.0
14 stars 1 forks source link

[FEATURE] Use plop and Handlebars to generate project code #1262

Open ptrkdan opened 5 months ago

ptrkdan commented 5 months ago

Is your feature request related to a problem? Please describe.

The current solution to generating the code is simply copying and pasting from the "templates" found in the code folder. While it works for the current implementation, it will become cumbersome when we begin implementing more modules and more frameworks. If a module requires a shared file to be modified, it becomes cumbersome to develop and maintain.

Describe the solution you'd like

We aim to have a more flexible way to generate project code. Rather than copying and pasting whole files, utilizing plop and Handlebars would allow us to fine-tuning the contents of each file during code generation.

This would ideally allow us to implement modules and frameworks more easily in the future.

Related issues: