All Projects → bmfe → eros-cli

bmfe / eros-cli

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

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to eros-cli

eros-widget
eros widget is the two encapsulation for eros module.
Stars: ✭ 13 (-68.29%)
Mutual labels:  weex, weex-eros, eros
Eros
📱 一套 Vue 代码,两端原生应用 ,或许可以叫我 weex-native。
Stars: ✭ 2,007 (+4795.12%)
Mutual labels:  weex, weex-eros, eros
eros-plugin-ios-TencentCaptcha
腾讯防水墙、滑动验证、类似bilibili滑动验证码
Stars: ✭ 21 (-48.78%)
Mutual labels:  weex, weex-eros
Weex Start Kit
A weex + vue template to build web/Android/iOS project
Stars: ✭ 155 (+278.05%)
Mutual labels:  weex
Gsygithubapp
超完整的React Native项目,功能丰富,适合学习和日常使用。GSYGithubApp系列的优势:我们目前已经拥有Flutter、Weex、ReactNative、kotlin 四个版本。 功能齐全,项目框架内技术涉及面广,完成度高,配套文章,适合全面学习,对比参考。开源Github客户端App,更好的体验,更丰富的功能,旨在更好的日常管理和维护个人Github,提供更好更方便的驾车体验Σ( ̄。 ̄ノ)ノ。同款Weex版本 : https://github.com/CarGuo/GSYGithubAppWeex 、同款Flutter版本 : https://github.com/CarGuo/GSYGithubAppFlutter 、原生 kotlin 版本 https://git…
Stars: ✭ 2,168 (+5187.8%)
Mutual labels:  weex
Incubator Weex
Apache Weex (Incubating)
Stars: ✭ 13,990 (+34021.95%)
Mutual labels:  weex
Mypui
基于uniapp/weex,快速开发小程序和原生APP的组件库与工具集
Stars: ✭ 139 (+239.02%)
Mutual labels:  weex
shop-native
基于weex(vuejs),同时使用了vuex, vue-router, axios,包含异步(async)语法糖在安卓端不兼容的解决方案
Stars: ✭ 15 (-63.41%)
Mutual labels:  weex
Weex Vue Examples
Examples of using Weex and Vue.js
Stars: ✭ 211 (+414.63%)
Mutual labels:  weex
Frontend Series
📚 大前端的工程实践:iOS 篇 | Android 篇 | 混合式开发篇 - ReactNative、Weex、Weapp
Stars: ✭ 197 (+380.49%)
Mutual labels:  weex
weex componets
this library is no longer maintained. For the latest gameplay, please refer to: https://github.com/fengwuxp/wuxp_common_ts_module
Stars: ✭ 16 (-60.98%)
Mutual labels:  weex
Hello Weex
hello-weex包括一个Weex App(GitHub第三方App),和自己扩展的WeexiOSKit(iOS上的常用组件与模块)。
Stars: ✭ 193 (+370.73%)
Mutual labels:  weex
JustDo8-weex-game
🎲 a game developed using weex|使用 Weex 开发的益智类小游戏
Stars: ✭ 25 (-39.02%)
Mutual labels:  weex
Weex Todo List
A demo To-do app built with Weex and Vue2.0
Stars: ✭ 159 (+287.8%)
Mutual labels:  weex
weex-template
A weex-template support ios android and web. dev hot-reload & can generate html & px2rem & autoprefixer.
Stars: ✭ 15 (-63.41%)
Mutual labels:  weex
Eros Template
🔧 eros app 开发模板。
Stars: ✭ 143 (+248.78%)
Mutual labels:  weex
Weex Vue Starter Kit
weex starter kit in vue to use weexpack & weex both.(support hot-reload)
Stars: ✭ 182 (+343.9%)
Mutual labels:  weex
Reactnativerollingexamples
react-native的一些example,目前支持iOS。另外收集了一份react-native学习列表
Stars: ✭ 214 (+421.95%)
Mutual labels:  weex
weexbox-android-library
Weex Android SDK
Stars: ✭ 22 (-46.34%)
Mutual labels:  weex
incubator-weex-playground
Playground for Apache Weex, demo purpose only
Stars: ✭ 43 (+4.88%)
Mutual labels:  weex

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:

  • windows: fidder
  • ios: charles
$ 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

  • cd eros-template or eros init project parent directory.
  • git clone https://github.com/bmfe/eros-cli
  • cd eros-cli && git checkout dev
  • npm/cnpm i
  • cd eros-template or eros init project
  • node ../eros-cli/bin/eros.js + command

Change Log

2.0.8-beta

  • [bugfix] remove eros pack android umeng appid.
  • [bugfix] jsServer undefined when packing inner zip.

2.0.7

  • [remove] eros install.
  • [remove] eros update ios/android (eros update tempate still in there).
  • [bugfix] ip.txt send to template.
  • [bugfix] newPack.config.js -> newpack.config.js.
  • [bugfix] gulp in not deined.
  • [bugfix] cannot find module.
  • [bugfix] sass less stylus not effect.
  • [feature] add socketServer.
  • [feature] add $ eros config reload.
  • [feature] eros init support choose pure template.
  • [optimize] change babel to happypack.
  • [optimize] make process.env.NODE_ENV customizable.

2.0.6-beta.4

  • [bugfix] weex-loader down to 0.5.2.

2.0.6-beta.2/3

  • [feature] update weex-loader to newest,support recyle-list.
  • [feature] add socket server, start to develop save auto refresh.
  • [bugfix] eros build -d report wrong info.

2.0.6-beta.1

  • [bugfix] eros pack and eros build generate different zip.
  • [bugfix] eros dev not add app board file.

2.0.6

  • [optimize] support weex debug.
  • [feature] add eros run ios.

2.0.5

  • cli[add]: eros install all 可同时下载两端的 eros-sdk
  • cli[add]: 支持在 init 的时候输入安卓的包名
  • cli[fix]: eros mock 报错问题
  • cli[mod]: eros cli 的帮助日志更新
  • cli[del]: 由于 widget 已提交到 npm 上,目录下不在存在 widget,所以去掉 eros update widget 指令

2.0.4

  • fix: eros pack all 失效问题
  • fix: eros pack ios 失效问题
  • fix: eros pack android 失效问题

2.0.3

  • add: eros pack all
  • add: eros pack ios
  • add: eros pack android

2.0.2

  • add: eros install ios
  • add: eros install android
  • add: eros update ios
  • add: eros update android
  • add: eros update template your_path
  • add: eros update widget

2.0.1

  • fix: eros build 会打内置包的情况
  • add: eros pack --all 同时打两端的内置包

2.0.0-beta.14-16

  • 添加 eslint 编译

2.0.0-beta.13

  • 修复 windows 上报打包解析错误的bug

2.0.0-beta.12

  • eros pack 没有打包本地静态资源

2.0.0-beta.11

  • eros pack 没有打包本地静态资源

2.0.0-beta.10

  • eros pack 没有打包本地静态资源

2.0.0-beta.9

  • fix 脚手架 dev 报错的问题

2.0.0-beta.8

  • 删除组件更新

2.0.0-beta.7

  • bugfix: 修复 eros init 报错的问题

2.0.0-beta.6

  • 脚手架更新: 加密算法
  • 脚手架更新: 添加tree-shaking
  • 脚手架更新: 精简体积,删除无用代码
  • 脚手架更新: eros update 可选择不再覆盖

2.0.0-beta.5

  • pack 动态给安卓添加配置信息。

2.0.0-beta.4

  • 优化差分包逻辑,增加webpack输出提示。

2.0.0-beta.2

  • 新增eros update

2.0.0-beta.1

  • add eros init
  • add eros build
  • add eros dev
  • add eros pack (--ios/android)
  • add eros install (--ios/android)
  • 兼容 windows
  • minWeex 打包问题
  • 打包js的时候 混淆会顺便删除map文件减少体积
  • iconfont 打包路径问题
  • 修改 eros NODE_env 搭配修复eros debug问题
  • fix diff bug
  • build assets 时候多调用了打 iconfont md5 方法
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].