Forked from PierreBesson/Set the node version for a JHipster project
Created
December 16, 2019 03:37
-
-
Save matiasiglesias/518649a64979a1e9dd926db658dbab73 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Setup JHipster to use the latest LTS version of NodeJS | |
nvm use --lts && node -v > .nvmrc | |
mvn versions:set-property -Dproperty=node.version -DnewVersion=$(cat .nvmrc) | |
# Setup JHipster to use your local version of yarn for prod builds | |
mvn versions:set-property -Dproperty=yarn.version -DnewVersion="v$(yarn -v)" | |
# Or Setup JHipster to use your local version of npm for prod builds | |
mvn versions:set-property -Dproperty=npm.version -DnewVersion="v$(npm -v)" | |
# Upgrading versions | |
## for yarn | |
yarn upgrade-interactive | |
## for maven | |
mvn versions:update-properties |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment