Home

Awesome

eros-cli

A simple CLI for scaffolding weex projects, we provide eros-template to quickly build small and medium sized app.

Installation

Prerequisites: Node.js (>=4.x, 6.x preferred), npm version 3+ and Git.

$ npm install -g eros-cli

If you were in China, we recommand you install cnpm before.

$ cnpm install -g eros-cli

Usage

You can code eros -h to show a profile.

eros-cli:
The following instructions are provided to help you build app !

 build      | build for eros project.
 dev        | start dev server.
 init       | generate eros template.
 install    | install eros platform and components' librarys.
 pack       | pack full dose zip and send to eros platform project.
 update     | update eros-template file by path.
 mock       | start a mock server.

Command

build:

eros cli build prod's full zip, contain js bundle, assets/images and iconfont.

$ eros build

build full zip and copy to specified path, post full zip info to your server, you can use eros-publish for collocation.

$ eros build -s url

build full zip and copy to specified path, generate full zip and diff zip in eros-template's dist folder.

$ eros build -d

build full zip and copy to specified path, generate full zip and diff zip in eros-template's dist folder, post full zip info to your server at same time.

$ eros build -s url -d

dev:

start dev server, you can change default server.path and server.port in eros-template/config/eros.dev.js, eros' app can refresh current view when your local code is changed and saved, You can debug by forward agent software in real machine.

forward agent software recommand:

$ eros dev

init:

generate eros-template in current execution directory, you can quickly build your app through it.

$ eros init

install (abandon)

eros developed many functions based on weex (self-module), you don't have to worry about the version of the weex update, we will update weex in time, every time we have a change ( new module / bugfix / weex update and so on), you can install them to use it.

$ eros install

install eros ios sdk.

$ eros install ios

install eros android sdk.

$ eros install android

install both sdk.

$ eros install all

pack

build prod's full zip and send it to platforms's ios/android built-in package storage path.

$ eros pack

pack eros ios inner js bundle.

$ eros pack ios

pack eros android inner js bundle.

$ eros pack android 

pack eros ios && android inner js bundle.

$ eros pack all

update

you can update eros-template's every file/path when eros-template has updated, but your must use it be careful, when the file/path has be changed by yourself that you want to update.

$ eros update

update eros ios sdk.

$ eros update ios

update eros android sdk.

$ eros update android 

update template by path.

$ eros update template path

mock

start mock server, you can change default proxy and mockServer in eros-template/config/eros.dev.js.

$ eros mock

Develop & Test

Change Log

2.0.8-beta

2.0.7

2.0.6-beta.4

2.0.6-beta.2/3

2.0.6-beta.1

2.0.6

2.0.5

2.0.4

2.0.3

2.0.2

2.0.1

2.0.0-beta.14-16

2.0.0-beta.13

2.0.0-beta.12

2.0.0-beta.11

2.0.0-beta.10

2.0.0-beta.9

2.0.0-beta.8

2.0.0-beta.7

2.0.0-beta.6

2.0.0-beta.5

2.0.0-beta.4

2.0.0-beta.2

2.0.0-beta.1