Last active
October 16, 2018 14:56
-
-
Save dtopuzov/8be6b2665a21e8dfb40b1b49f5b32a9a to your computer and use it in GitHub Desktop.
Upgrade to {N} RC
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
# Install {N} CLI | |
npm un -g nativescript | |
npm i -g nativescript@rc | |
# Navigate to your app | |
cd <your-app> | |
# Cleanup before upgrade | |
rm -rf node_modules | |
rm -rf platforms | |
rm -rf hooks | |
tns platform remove android | |
tns platform remove ios | |
# Update {N} core packages | |
tns platform add ios@rc | |
tns platform add android@rc | |
npm un tns-core-modules --save | |
npm i tns-core-modules@rc --save | |
# Update {N} angular (only for Angular projects) | |
npm un nativescript-angular --save | |
npm i nativescript-angular@next --save | |
./node_modules/.bin/update-app-ng-deps | |
npm i | |
# Update {N} webpack (only if used in your project) | |
npm un nativescript-dev-webpack --save-dev | |
npm i nativescript-dev-webpack@next --save-dev | |
./node_modules/.bin/update-ns-webpack --configs --deps | |
npm i | |
# Update nativescript-ui-listview and nativescript-ui-sidedrawer (only if used in your project) | |
npm un nativescript-ui-listview --save | |
npm i nativescript-ui-listview@latest --save | |
npm un nativescript-ui-sidedrawer --save | |
npm i nativescript-ui-sidedrawer@rc --save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment