NativeScript CLI to Telerik Platform- There and Back Again
Learn how to take a NativeScript project created with the NativeScript CLI and migrate it to Telerik Platform to take advantage of cloud builds and app store deployment.
Join the DZone community and get the full member experience.Join For Free
however, we regularly hear from many of these same people that they want to take a project started with the nativescript cli and move it to telerik appbuilder (part of telerik platform ). why? well, with appbuilder you get access to:
- cloud builds (no need for a mac and no need to manage sdks).
- app store deployment.
- icon and splash screen creation.
- plugins management.
- configuration/settings management.
...the list goes on and on. so clearly there is value in moving a project from the nativescript cli to appbuilder, but how do you do it? that's what this guide is all about.
migrating project from nativescript cli
if you have an existing nativescript project created with the nativescript cli, let's go through the steps to move this project to appbuilder.
note that these instructions work equally well on mac and windows!
locate your nativescript project in your file system and compress/zip the
next, log into your telerik platform account . create a brand new nativescript app by choosing advanced > nativescript > blank template:
once your project is created in appbuilder, use the code menu option to navigate to the code editor.
you'll now need to
directory and the
file in the
next, right click on the project name and choose add > from archive . choose the archive that you created from your existing nativescript app directory:
finally, right click again on the project name and choose
add > existing files
. choose the
file from the root directory of your existing nativescript project:
and you are done!
migrating project from appbuilder
if you have an existing telerik appbuilder project, you can also export it and continue development with the nativescript cli!
it's incredibly easy to take your appbuilder project and open it up with the nativescript cli. simply right click on your project and choose export :
unzip the downloaded archive, open up a terminal window, navigate to the project directory, and run:
tns platform add ios|android
tns run ios|android
...to see your app running in a simulator/emulator.
alternatively, you can use appbuilder's built-in github integration to maintain one repository that can be edited via appbuilder or your local file system!
you've seen how incredibly easy it can be to move back and forth between the nativescript cli and telerik platform. if you haven't already, set up your free 30 day trial of telerik platform today!
Published at DZone with permission of Rob Lauer, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.