Skip to content

JHipster blueprint to perform upgrades and config changes.

Notifications You must be signed in to change notification settings

jhipster/generator-jhipster-migrate

Repository files navigation

JHipster Migrate Blueprint

A JHipster blueprint that helps you upgrade between JHipster versions.

NPM version Generator Integration Test

Introduction

This is a JHipster blueprint, that is meant to be used in a JHipster application.

Prerequisites

For this JHipster blueprint, we expect you have an JHipster generated application.

Installation

To install or update this blueprint:

npm install -g generator-jhipster-migrate

Usage

To use this blueprint, run the command:

jhipster-migrate

A wizard/advanced mode is available running the command below:

jhipster-migrate --verbose

Customize generation by providing custom CLI arguments

Custom CLI argments is allowed using CLI or prompts (using --verbose).

jhipster-migrate --target-cli-options "--db postgresql"

Configuration changes

The upgrade process can be paused in the middle to allow you to change configurations like updating the database type. Usage:

jhipster-migrate --verbose

3-way merge diff

3-way merge diff is supported differently from jhipster upgrade. It can be optionally enable using:

jhipster-migrate --verbose

Package.json merge

A tool that merges package.json files can be optionally enabled using:

jhipster-migrate --verbose