代码改变世界

Ionic3 一些命令

2017-06-28 17:43  小猫爱吃清蒸鱼  阅读(1230)  评论(0编辑  收藏  举报

ionic start --help   

 

E:\Projects\ionic>ionic start --help

ionic start - Create a new project

This command creates a working Ionic app. It installs dependencies for you and sets up your project.

ionic start will create an app from a template. You can list all templates with the --list option.

If you want to create an Ionic/Cordova app, use the --cordova option.

Usage:

$ ionic start [<name>] [<template>]

Inputs:

name ..................... The name of your project directory
template ................. The starter template to use (e.g. blank, tabs; use --list to see all)

Options:

--type ................... Type of project to start (e.g. ionic-angular, ionic1) (default: ionic-angular)
--app-name, -n ........... Human-readable name (use quotes around the name)
--list, -l ............... List starter templates available
--skip-deps .............. Skip npm/yarn package installation of dependencies
--cordova ................ Include Cordova integration
--no-git ................. Do not initialize a git repo
--skip-link .............. Do not link app to an Ionic Account

Examples:

$ ionic start
$ ionic start --list
$ ionic start myApp blank
$ ionic start myApp tabs --cordova
$ ionic start myApp blank --type=ionic1

 

创建App时,如果想要快速创建App,可以跳过安装相关依赖包:ionic start myTabs tabs --skip-deps

最后:进入App所在目录,然后使用 npm install (cnpm install 淘宝镜像)