官术网_书友最值得收藏!

Getting started

We are going to assume that you have NativeScript installed properly on your computer. If you do not, please follow the install instructions at https://nativescript.org. Once installed, we need to create our app framework using a shell prompt:

tns create TNSStudio --ng

The tns stands for Telerik NativeScript. It is the primary command-line user interface (CLI) tool you will use to create, build, deploy, and test any NativeScript app.

This command will create a new folder called TNSStudio. Inside is your primary project folder including everything required to build an app. It will contain everything relating to this project. After the project folder has been created, you need to do one more thing to have a fully runnable app. That's, adds the runtimes for Android and/or iOS:

cd TNSStudio
tns platform add ios
tns platform add android

If you are on a Macintosh, you can build for both iOS and Android. If you are running on a Linux or Windows device, Android is the only platform you can compile for on your local machine.

主站蜘蛛池模板: 新宁县| 沙坪坝区| 龙南县| 南阳市| 合江县| 河池市| 谢通门县| 武安市| 平定县| 乌拉特中旗| 瑞安市| 汾阳市| 平远县| 胶州市| 兰溪市| 收藏| 延长县| 桂东县| 杨浦区| 黄骅市| 东方市| 湖北省| 盐城市| 尼勒克县| 尼玛县| 宣化县| 桃源县| 汶上县| 治多县| 广丰县| 平湖市| 新干县| 张家川| 保靖县| 鄂温| 福安市| 毕节市| 科技| 曲阜市| 耿马| 格尔木市|