-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25203 from mshima/upgrade
simplify upgrade generator
- Loading branch information
Showing
9 changed files
with
321 additions
and
423 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# upgrade sub-generador | ||
|
||
Upgrades the application the a newer generator-jhipster version. | ||
|
||
The upgrade process generates 4 commits. | ||
|
||
- the reference application | ||
- a merge commit with unrelated histories | ||
- the upgrade application | ||
- a merge commit to apply the upgrade commit to the existing application | ||
|
||
## Upgrading from v7 | ||
|
||
To upgrade to v8 you need to upgrade to v7.9.4 before due to node v18/v20 compatibility. | ||
If you use blueprint that uses jhipster v7, you need to use [jhipster-migrate](https://github.com/jhipster/generator-jhipster-migrate/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
Description: | ||
Updates JHipster version, and upgrades generated application | ||
Upgrades generated application | ||
|
||
Example: | ||
|
||
jhipster upgrade | ||
|
||
Assuming you have Git installed, and you run this command in the Git branch you are using for development, JHipster Upgrader will : | ||
- checkout a "jhipster_upgrade" branch | ||
- update generator-jhipster via npm | ||
- regenerate your whole application | ||
- switch back to your development branch, and start the merge | ||
- generate a application upgrade reference | ||
- apply the reference point to your application | ||
- generate the upgraded application | ||
- switch back to your original branch and merge the upgrade branch into it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,16 +20,6 @@ import { JHipsterCommandDefinition } from '../base/api.js'; | |
|
||
const command: JHipsterCommandDefinition = { | ||
options: { | ||
targetJhipsterVersion: { | ||
name: 'targetVersion', | ||
description: 'Upgrade to a specific version instead of the latest', | ||
type: String, | ||
scope: 'generator', | ||
}, | ||
targetBlueprintVersions: { | ||
description: 'Upgrade to specific blueprint versions instead of the latest, e.g. --target-blueprint-versions [email protected],[email protected]', | ||
type: String, | ||
}, | ||
silent: { | ||
description: 'Hides output of the generation process', | ||
type: Boolean, | ||
|
Oops, something went wrong.