使用nativescript的初始准备(1)

官网使用教程
https://docs.nativescript.org/start/quick-setup#step-1-install-nodejs
1.安装node
2.安装nativescript
sudo npm install -g nativescript

安装成功如下:在这里插入图片描述
3.nativescript相关命令
在这里插入图片描述
│ Usage │ Synopsis │
│ General │ $ tns [Command Parameters] [–command ] │
│ Alias │ $ nativescript [Command Parameters] [–command ] │

!在这里插入图片描述

General Commands

│ Command │ Description │
│ help │ Shows additional information about the commands in this list in the browser. │
│ autocomplete │ Configures your current command-line completion settings. │
│ usage-reporting │ Configures anonymous usage reporting for the NativeScript CLI. │
│ error-reporting │ Configures anonymous error reporting for the NativeScript CLI. │
│ doctor │ Checks your system for configuration problems which might prevent the NativeScript CLI from working properly. │
│ info │ Displays version information about the NativeScript CLI, core modules, and runtimes. │
│ proxy │ Displays proxy settings. │
│ update │ Updates the project with the latest versions of iOS/Android runtimes and cross-platform modules. │
在这里插入图片描述

Project Development Commands

│ Command │ Description │
│ create │ Creates a new project for native development with NativeScript. │
│ preview │ Generates a QR code that can be scanned by the NativeScript PlayGround app. │
│ init │ Initializes an existing project for native development with NativeScript. │
│ platform add │ Configures the current project to target the selected platform. │
│ platform list │ Lists all platforms that the project currently targets. │
│ platform remove │ Removes the selected platform from the platforms that the project currently targets. This operation deletes all platform-specific files and subdirectories from your project. │
│ platform update │ Updates the NativeScript runtime for the specified platform. │
│ resources update │ Updates the App_Resources/'s internal folder structure to conform to that of an Android Studio project. │
│ resources generate splashes │ Generates all splashscreens for Android and iOS platforms and places the generated images in the correct directories under App_Resources/ directory. │
│ resources generate icons │ Generates all icons for Android and iOS platforms and places the generated images in the correct directories under App_Resources/ directory. │
│ prepare │ Copies relevant content from the app directory to the subdirectory for the selected target platform to let you build the project. │
│ build │ Builds the project for the selected target platform and produces an application package or an emulator package. │
│ deploy │ Deploys the project to a connected physical or virtual device. │
│ run │ Runs your project on a connected device or in the native emulator, if configured. │
│ run │ Runs your project on a connected device or in the native emulator for the specified platform, if configured. │
│ debug │ Debugs your project on a connected physical or virtual device. │
│ test init │ Configures your project for unit testing with a selected framework. │
│ test │ Runs the unit tests in your project on a connected physical or virtual device. │
│ install │ Installs all platforms and dependencies described in the package.json file in the current directory. │
│ plugin │ Lets you manage the plugins for your project.
在这里插入图片描述

Publishing Commands

│ Command │ Description │
│ appstore │ Lists applications registered in iTunes Connect. │
│ appstore upload │ Uploads project to iTunes Connect. │
在这里插入图片描述

Device Commands

│ Command │ Description │
│ device │ Lists all recognized connected physical or virtual devices. │
│ device log │ Opens the log stream for the selected device. │
│ device run │ Runs the selected application on a connected device. │
│ device list-applications │ Lists the installed applications on all connected devices. │
在这里插入图片描述

Environment Configuration Commands

│ Command │ Description │
│ setup │ Run the setup script to try to automatically configure your environment for local builds. │
│ setup cloud │ Install the nativescript-cloud extension to configure your environment for cloud builds. │
在这里插入图片描述

Global Options

│ Option │ Description │
│ --help, -h, /? │ Prints help about the selected command in the console. │
│ --path │ Specifies the directory that contains the project. If not set, the project is searched for in the current directory and all directories above it. │
│ --version │ Prints the client version. │
│ --log trace │ Prints a detailed diagnostic log for the execution of the current command.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值