Efficient Modern Scaffolding
English | 简体中文
- ⚡ Local hot-reload template debugging
- 🎨 Free combination of modules within templates
- ♻️ Templates can call each other
- 🚀 Assemble templates in memory and write to disk at once
npm create @e.fe/app@latest
# OR
npx @e.fe/create-app@latest
# From Repo
npm create @e.fe/app@latest from-repo <url>
# From Template
npm create @e.fe/app@latest -T <template>
Popular scaffolding tools have various issues, with the most important ones being:
-
Most cannot hot-reload debug templates, making template testing time-consuming
-
Some don't allow free combination of templates, only creating from fixed templates or downloading from repositories, making it difficult to maintain when we have multiple templates
At work, I needed to develop a better scaffolding tool for the team, which was the initial motivation for writing this code.
I often need to quickly create various types of projects, so I developed this project with the following goals:
-
Maintain commonly used project templates and workflows
-
Converge standard code specifications with
@e.fe/template-standard
-
Support direct calls to excellent community scaffolding tools like React, Vue, etc.
Maintaining our own work templates is the basic goal, but excellent community tools are also in our arsenal
-
Support creating new projects from any project repository
Inherited from tiged, with additional features
# Create a new project from the repository (<url>) npm create @e.fe/app@latest from-repo <url>
-
create-app
has capabilities similar to yeomantemplate-xxx is equivalent to yeoman generator, they both rely on capabilities provided by the upper layer
Templates can be created and published independently, maintained in separate repositories
# Create my-app from the generator yo <generator> my-app # They work in a similar way # Create my-app from external template npm create @e.fe/app@latest -T <template>