-
-
Notifications
You must be signed in to change notification settings - Fork 447
Quick setup #238
Quick setup #238
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ previous_url: /setup/ns-cli-setup/ns-setup-os-x | |
|
|
||
| # Set Up the NativeScript CLI on OS X | ||
|
|
||
| With the open-source [NativeScript Command-Line Interface](https://github.com/NativeScript/nativescript-cli) and an IDE or text editor of your choice, you can create, develop, store and build your apps entirely locally, free of charge, without an Internet connection and anonymously. | ||
| With the open-source [NativeScript Command-Line Interface](https://github.com/NativeScript/nativescript-cli) and an IDE or text editor of your choice, you can create, develop, store and build your apps entirely locally, free of charge and anonymously. | ||
|
|
||
| On OS X systems, you can use the NativeScript CLI to develop Android and iOS apps. | ||
|
|
||
|
|
@@ -20,7 +20,7 @@ On OS X systems, you can use the NativeScript CLI to develop Android and iOS app | |
| ## System Requirements | ||
|
|
||
| * OS X Mavericks or later | ||
| * The latest Node.js 0.10.x, 0.12.x, 4.2.x, or 5.1.x stable official release | ||
| * The latest Node.js 0.10.x, 0.12.x, 4.x, or 5.x stable official release | ||
| * (Optional) Homebrew to simplify the installation of dependencies | ||
| * For iOS development | ||
| * Latest Xcode | ||
|
|
@@ -32,6 +32,17 @@ On OS X systems, you can use the NativeScript CLI to develop Android and iOS app | |
| * Android SDK Build-tools 22.0.0 or a later stable official release | ||
| * (Optional) Genymotion to expand your testing options | ||
|
|
||
| ### Quick setup | ||
|
|
||
| If this is your first time developing a mobile project, consider using the one-liner scripts in this section to effortlessly setup your machine. | ||
| If you have experience developing mobile apps, you may skip to the [Environment Requirements](#environment-requirements) section below. | ||
|
|
||
| Using Spotlight, search `Terminal` and start it. This opens a console window. Copy and paste this script: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. search for |
||
|
|
||
| > ruby -e "$(curl -fsSL https://raw.githubusercontent.com/NativeScript/nativescript-cli/production/setup/native-script.rb)" | ||
|
|
||
| The script calls some of the commands using `sudo` and you may need to provide your password several times. Note that the script downloads and installs some big dependencies and may take some time to complete. | ||
|
|
||
| ## Environment Requirements | ||
|
|
||
| For Android development | ||
|
|
@@ -46,10 +57,10 @@ For Android development | |
| ```Shell | ||
| ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | ||
| ``` | ||
| 1. Install the latest Node.js [0.10.x](https://nodejs.org/dist/latest-v0.10.x/), or [0.12.x](https://nodejs.org/dist/latest-v0.12.x/), or [4.2.x](https://nodejs.org/dist/latest-v4.x/) stable official release. | ||
| 1. Install the latest Node.js stable official release. We recommend using Node.js v4.x | ||
|
|
||
| ```Shell | ||
| brew install homebrew/versions/node012 | ||
| brew install homebrew/versions/node4-lts | ||
| ``` | ||
| 1. Install the dependencies for iOS development. | ||
| 1. Run the App Store and download and install Xcode 5 or later. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,10 +21,33 @@ When you develop with NativeScript, you can choose between a local tool set ([Na | |
|
|
||
| > **TIP:** If you are familiar with the Apache Cordova CLI, you might want to try the NativeScript CLI. It provides a similar set of commands and an identical experience. | ||
|
|
||
| With the open-source [NativeScript Command-Line Interface][NativeScript CLI] and an IDE or text editor of your choice, you can create, develop, store and build your apps entirely locally, free of charge, without an Internet connection and anonymously. | ||
| With the open-source [NativeScript Command-Line Interface][NativeScript CLI] and an IDE or text editor of your choice, you can create, develop, store and build your apps entirely locally, free of charge and anonymously. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just as an fyi this wording is duplicated on the Windows / OS X / Linux pages too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reworded there too, thanks for the tip |
||
|
|
||
| To take advantage of this autonomy, you need to configure your system with the tools and SDKs for native development of the platforms for which you want to develop. The NativeScript CLI uses them to produce truly native builds of your cross-platform projects. | ||
|
|
||
| ### Quick setup | ||
|
|
||
| If this is your first time developing a mobile project, consider using the one-liner scripts in this section to effortlessly setup your machine. | ||
| If you have experience developing mobile apps, you may skip to the [advanced setup](#advanced-setup) section below. | ||
|
|
||
| * On Windows: | ||
|
|
||
| Open Start Menu, search for `Command Prompt` and start it. This opens a console window. Copy and paste this script: | ||
|
|
||
| > @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/NativeScript/nativescript-cli/production/setup/native-script.ps1'))" | ||
|
|
||
| You may need to accept an User Account Control prompt to grant the script administrative privileges. Note that the script downloads and installs some big dependencies and may take some time to complete. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. a User Account not an User account, because English has exceptions for everything. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment applies above obviously since this text is duplicated. |
||
|
|
||
| * On Mac: | ||
|
|
||
| Using Spotlight, search `Terminal` and start it. This opens a console window. Copy and paste this script: | ||
|
|
||
| > ruby -e "$(curl -fsSL https://raw.githubusercontent.com/NativeScript/nativescript-cli/production/setup/native-script.rb)" | ||
|
|
||
| The script calls some of the commands using `sudo` and you may need to provide your password several times. Note that the script downloads and installs some big dependencies and may take some time to complete. | ||
|
|
||
| ### Advanced setup | ||
|
|
||
| * [Set Up on Windows]({% slug windows %}) | ||
| * [Set Up on OS X]({% slug osx %}) | ||
| * [Set Up on Linux]({% slug linux %}) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super nit picky, but this should probably be an h2 and not an h3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So after looking this over more, “Quick setup” should be an h2 on the OS X and Windows pages, but an h3 on the installation page.