markdown 离子4 cli

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 离子4 cli相关的知识,希望对你有一定的参考价值。

### Preparing the platforms :
####    1: install node with npm
####    2: install ionic 
```
npm i -g ionic

```

####    3: install cordova and jdk
```
npm i -g cordova
```

### Show List of ionic project template available
```
ionic start --list
```

### start ionic project 
```
ionic start project_name --type=Type_name

EX:  ionic start ionic4Test --type=angular

```

### Run app using browser
```
ionic serve
```

### Run app in ionic lab
```
ionic serve -l
```

### Integrate  cordova with ionic app
```
inside project 

For Android:
ionic cordova platform add android

For Ios:
ionic cordova platform add ios

For Browser:
ionic cordova platform add browser
```
### Remove platform Integration from project
```
ionic cordova platform rm ios
```


### Generate apk file using cordova
```
ionic cordova build android
```

## To run it on android devices [emulator + real]
```
ionic cordova run android
```
###  To run it on android real devices
```
ionic cordova run android --device
```

### Run or Emulate app on Browser
```
ionic cordova emulate browser
```

### Emulate app On Real android emulator

#### First show the list of emulator available for andoid
```
ionic cordova emulate android --list
```
#### Run the app on Any android emulator

```
ionic cordova emulate android --target=emulator_Name
```

### Ionic generate page, module ,service etc
```
ionic g
```

### Ionic generate files in test mode
```
ionic g page Page_Name --dry-run
```
### Quick generate a module along with routing
```
ionic g module --routing
```

以上是关于markdown 离子4 cli的主要内容,如果未能解决你的问题,请参考以下文章

如何处理离子无限重新加载ios应用程序

markdown 调试离子

markdown 建立离子3

离子:console.log 未显示在带有cordova 4.1.1 的xcode 中

离子应用程序:发生未处理的异常:找不到模块“@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/uti

有没有办法可以将 Paystack 支付集成到 ionic 3 App 中