Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 2.6 KB

BLUEPRINTS.md

File metadata and controls

48 lines (33 loc) · 2.6 KB

JHipster Blueprints

Blueprints allow adding new features or changing current features.

Creating a Blueprint

jhipster generate-blueprint

When creating blueprints it's cleaner to have the blueprint forwarding to a custom generator and keep main generators like client/common/server with customizations. Example jOOQ Blueprint

Maintaining a Blueprint

Upgrading to a new JHipster version

Upgrading and syncing the generated blueprint

Each JHipster version brings updated dependencies. You should regenerate the blueprint to update dependencies.

npx --package generator-jhipster@latest jhipster generate-blueprint

When updating from a minor JHipster version, you probably will want to ignore (press s) to every generator and test conflict. Ignore (i option instead of s) will store the file at .yo-resolve so that following generate-blueprint executions will ignore those files by default.

From time to time generate-blueprint may generate different code. So regenerate every file ignoring .yo-resolve executing jhipster generate-blueprint --skip-yo-resolve and check the differences.

Blueprint dependencies

generator-jhipster have every dependency using an exact version. If the blueprint uses exact versions too, duplicated dependencies with different versions will be added to node_modules. For this reason try to avoid exact version at blueprint dependencies and disable auto updates since dependencies will be updated every time the blueprint is regenerated using generate-blueprint.

Upgrading from v7 to v8