{"id":20103285,"url":"https://github.com/bmfe/eros-cli","last_synced_at":"2025-05-06T08:31:15.708Z","repository":{"id":90567720,"uuid":"110490426","full_name":"bmfe/eros-cli","owner":"bmfe","description":"🛠️ A simple CLI for scaffolding weex projects, we provide eros-template to quickly build small and medium sized app.","archived":false,"fork":false,"pushed_at":"2018-10-11T08:07:19.000Z","size":282,"stargazers_count":41,"open_issues_count":1,"forks_count":17,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-09T10:27:44.065Z","etag":null,"topics":["cli","eros","eros-cli","hybird-mobile","vue","weex","weex-eros"],"latest_commit_sha":null,"homepage":"https://github.com/bmfe/eros-template","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bmfe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-13T02:29:02.000Z","updated_at":"2022-02-18T09:11:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c32b959-708a-4c0e-9274-db379c4b07af","html_url":"https://github.com/bmfe/eros-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmfe%2Feros-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmfe%2Feros-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmfe%2Feros-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmfe%2Feros-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bmfe","download_url":"https://codeload.github.com/bmfe/eros-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252648582,"owners_count":21782409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","eros","eros-cli","hybird-mobile","vue","weex","weex-eros"],"created_at":"2024-11-13T17:35:36.130Z","updated_at":"2025-05-06T08:31:15.695Z","avatar_url":"https://github.com/bmfe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eros-cli\nA simple CLI for scaffolding [weex](http://weex.apache.org/cn/) projects, we provide [eros-template](https://github.com/bmfe/eros-template) to quickly build small and medium sized app.\n\n## Installation\nPrerequisites: Node.js (\u003e=4.x, 6.x preferred), npm version 3+ and Git.\n\n```\n$ npm install -g eros-cli\n```\n\nIf you were in China, we recommand you install [cnpm](https://npm.taobao.org/) before.\n\n```\n$ cnpm install -g eros-cli\n```\n\n## Usage\nYou can code `eros -h` to show a profile.\n```\neros-cli:\nThe following instructions are provided to help you build app !\n\n build      | build for eros project.\n dev        | start dev server.\n init       | generate eros template.\n install    | install eros platform and components' librarys.\n pack       | pack full dose zip and send to eros platform project.\n update     | update eros-template file by path.\n mock       | start a mock server.\n```\n\n## Command\n#### **build**: \n\neros cli build prod's full zip, contain js bundle, assets/images and iconfont. \n```\n$ eros build\n```\nbuild full zip and copy to specified path, post full zip info to your server, you can use [eros-publish](https://github.com/bmfe/eros-publish) for collocation.\n```\n$ eros build -s url\n```\nbuild full zip and copy to specified path, generate full zip and diff zip in  [eros-template](https://github.com/bmfe/eros-template)'s dist folder.\n```\n$ eros build -d\n```\nbuild full zip and copy to specified path, generate full zip and diff zip in  [eros-template](https://github.com/bmfe/eros-template)'s dist folder， post full zip info to your server at same time.\n```\n$ eros build -s url -d\n```\n#### **dev**:\n\nstart 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.**\n\nforward agent software recommand:\n\n* windows: fidder\n* ios: charles\n\n```\n$ eros dev\n```\n#### **init**:\n\ngenerate [eros-template](https://github.com/bmfe/eros-template) in current execution directory, you can quickly build your app through\n it.\n```\n$ eros init\n```\n#### **~install~** (abandon)\n\neros 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.\n```\n$ eros install\n```\n\ninstall eros ios sdk.\n```\n$ eros install ios\n```\ninstall eros android sdk.\n```\n$ eros install android\n```\ninstall both sdk.\n```\n$ eros install all\n```\n#### **pack**\nbuild prod's full zip and send it to platforms's ios/android built-in package storage path.\n```\n$ eros pack\n```\n\npack eros ios inner js bundle.\n```\n$ eros pack ios\n```\npack eros android inner js bundle.\n```\n$ eros pack android \n```\npack eros ios \u0026\u0026 android inner js bundle.\n```\n$ eros pack all\n```\n#### **update**\nyou can update [eros-template](https://github.com/bmfe/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`**. \n```\n$ eros update\n```\n\nupdate eros ios sdk.\n```\n$ eros update ios\n```\nupdate eros android sdk.\n```\n$ eros update android \n```\nupdate template by path.\n```\n$ eros update template path\n```\n#### **mock**\nstart mock server, you can change default `proxy` and `mockServer` in `eros-template/config/eros.dev.js`.\n```\n$ eros mock\n```\n\n## Develop \u0026 Test\n\n* cd eros-template or eros init project `parent directory`.\n* git clone https://github.com/bmfe/eros-cli\n* cd eros-cli \u0026\u0026 git checkout dev\n* npm/cnpm i\n* cd eros-template or eros init project\n* node ../eros-cli/bin/eros.js + command\n\n## Change Log\n\n### 2.0.8-beta\n* [bugfix] remove eros pack android umeng appid.\n* [bugfix] jsServer undefined when packing inner zip.\n\n### 2.0.7\n* [remove] eros install.\n* [remove] eros update ios/android (eros update tempate still in there).\n* [bugfix] ip.txt send to template.\n* [bugfix] newPack.config.js -\u003e newpack.config.js.\n* [bugfix] gulp in not deined.\n* [bugfix] cannot find module.\n* [bugfix] sass less stylus not effect.\n* [feature] add socketServer.\n* [feature] add `$ eros config reload`.\n* [feature] eros init support choose pure template.\n* [optimize] change babel to happypack.\n* [optimize] make process.env.NODE_ENV customizable.\n\n### 2.0.6-beta.4\n* [bugfix] weex-loader down to 0.5.2.\n\n### 2.0.6-beta.2/3\n* [feature] update `weex-loader` to newest，support `recyle-list`.\n* [feature] add socket server, start to develop save auto refresh.\n* [bugfix] eros build -d report wrong info.\n\n### 2.0.6-beta.1\n* [bugfix] eros pack and eros build generate different zip.\n* [bugfix] eros dev not add app board file.\n\n### 2.0.6\n* [optimize] support weex debug.\n* [feature] add eros run ios.\n\n\n### 2.0.5\n* cli[add]: eros install all 可同时下载两端的 eros-sdk\n* cli[add]: 支持在 init 的时候输入安卓的包名\n* cli[fix]: eros mock 报错问题\n* cli[mod]: eros cli 的帮助日志更新\n* cli[del]: 由于 widget 已提交到 npm 上，目录下不在存在 widget，所以去掉 eros update widget 指令\n\n### 2.0.4\n* fix: eros pack all 失效问题\n* fix: eros pack ios 失效问题\n* fix: eros pack android 失效问题\n\n### 2.0.3\n* add: eros pack all\n* add: eros pack ios\n* add: eros pack android\n\n### 2.0.2\n* add: eros install ios\n* add: eros install android\n* add: eros update ios\n* add: eros update android\n* add: eros update template your_path\n* add: eros update widget\n\n### 2.0.1\n* fix: eros build 会打内置包的情况\n* add: eros pack --all 同时打两端的内置包\n\n### 2.0.0-beta.14-16\n* 添加 eslint 编译\n\n### 2.0.0-beta.13\n* 修复 windows 上报打包解析错误的bug\n\n### 2.0.0-beta.12\n* eros pack 没有打包本地静态资源\n\n### 2.0.0-beta.11\n* eros pack 没有打包本地静态资源\n\n### 2.0.0-beta.10\n* eros pack 没有打包本地静态资源\n\n### 2.0.0-beta.9\n* fix 脚手架 dev 报错的问题\n\n### 2.0.0-beta.8\n* 删除组件更新\n\n### 2.0.0-beta.7\n* bugfix: 修复 eros init 报错的问题\n\n### 2.0.0-beta.6\n* 脚手架更新： 加密算法\n* 脚手架更新： 添加tree-shaking\n* 脚手架更新： 精简体积，删除无用代码\n* 脚手架更新： eros update 可选择不再覆盖\n\n\n### 2.0.0-beta.5\n* pack 动态给安卓添加配置信息。\n\n### 2.0.0-beta.4\n* 优化差分包逻辑，增加webpack输出提示。\n\n### 2.0.0-beta.2\n* 新增eros update\n\n### 2.0.0-beta.1\n* add eros init\n* add eros build\n* add eros dev\n* add eros pack (--ios/android)\n* add eros install (--ios/android)\n* 兼容 windows\n* minWeex 打包问题\n* 打包js的时候 混淆会顺便删除map文件减少体积\n* iconfont 打包路径问题\n* 修改 eros NODE_env 搭配修复eros debug问题\n* fix diff bug\n* build assets 时候多调用了打 iconfont md5 方法\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmfe%2Feros-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbmfe%2Feros-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmfe%2Feros-cli/lists"}