jhipster - JHipster 子生成器阶段有什么作用?

标签 jhipster yeoman yeoman-generator

最近,我一直在尝试为 JHipster 实现一个蓝图。我决定覆盖实体和实体服务器子生成器。每个子生成器都有多个阶段,我可以选择/完全覆盖/部分覆盖/不覆盖/。这些阶段是:

/initializing()/prompting()/configuring()/default()/writing()/install()/end()/

因为这个名字,我对几个阶段的作用有一个模糊的理解,但即便如此仍然不够清楚。我没有在任何地方找到任何关于子发电机阶段的文件。谁能告诉我每个阶段的确切目的是什么?

如果我没有找到有关该主题的文档,请将其链接给我!

最佳答案

Jhipster 遵循 Yeoman 的优先级

链接:https://yeoman.io/authoring/running-context.html#the-run-loop

可用的优先级是(按运行顺序):

initializing - Your initialization methods (checking current project state, getting configs, etc)
prompting - Where you prompt users for options (where you’d call this.prompt())
configuring - Saving configurations and configure the project (creating .editorconfig files and other metadata files)
default - If the method name doesn’t match a priority, it will be pushed to this group.
writing - Where you write the generator specific files (routes, controllers, etc)
install - Where installations are run (npm, bower)
end - Called last, cleanup, say good bye, etc

关于jhipster - JHipster 子生成器阶段有什么作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72635182/

相关文章:

node.js - 哟 Angular 误差?

javascript - 从另一个网站加载 Ember.js 应用程序

docker - Neo4J凭证不适用于JHipster生成的Spring Boot应用程序

hibernate - JHipster:如何更改生成的默认表名称?

java - 升级JUNIT 5后无单元测试

spring - org.springframework :springloaded:jar:1. 2.0.BUILD-SNAPSHOT 的 POM 丢失

node.js - 如何使用适用于 Visual Studio 的 Node JS 工具在 Visual Studio 中调试 Yeoman 生成器 KO(使用 TypeScript 和 Gulp)Node JS 项目

java - jhipster不缓存查询结果

yeoman - Yeoman:为Angularjs运行 karma 单元测试时发生EACCES错误

node.js - grunt bower-install 填充的 bower 依赖项