1.0.16 • Published 6 years ago

autohybrid-cli v1.0.16

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

autohybrid-cli

这是基于Cordova.js的移动App混合开发部署脚本,它可以自动帮你构建一个测试环境下的Cordova应用到你的手机上。这个测试环境和使用VueCli构建的测试环境一模一样。目前只完成了android,ios 马上就好

The following content is from Google Translate

This is a mobile app hybrid development deployment script based on Cordova.js that automatically builds a Cordova app from your test environment to your phone. This test environment is exactly the same as the one built using VueCli. Currently only android, ios is ready

Install

for npm:

npm i autohybrid-cli --save-dev

for yarn:

yarn add autohybrid-cli --dev

Usage

  1. Configure the vue.config.js file in the root directory, if not configured by default
    module.exports = {
    devServer: {
        port: //your port. If not, it will be set to 8080
    },
    
    // autohybrid config
    
    autoHybrid: {
        name: // your app name. If not, it will be set to the current project name.
    }
}
```
  1. For global installation environment

    cd [your project dirname]
    hybrid create

    For local installation environment

    cd [your project dirname]
    ./node_modules/.bin/hybrid create
  2. If you change the autoHybrid configuration item during development, you don’t need to rebuild the project, you just need to execute:

    hybrid dev
  3. Install JDK, download Android Studio, then install the Android SDK

  4. Open Android Studio , select Import project (Gradle, Eclipse ADT, etc.)

  5. Import directory src_cordova/platforms/android

  6. Compile apps to your phone using Android Studio

  7. Open Chrome and enter chrome://inspect/#devices in the address bar

  8. Find the device and click on inspect

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago