Code Monkey home page Code Monkey logo

a-pack-tool-for-apache-weex's Introduction

weexpack

image | left image | left GitHub release GitHub issues Node Version Build Status

中文版文档 | How to devloping weex plugin | Changelog

Usage

Currently, [weex-toolkit] (https://github.com/weexteam/weex-toolkit) integrates with the weexpack command invocation support. We recommend using weex-toolkit to use the functionality in weexpack. See [weex-toolkit] (https://github.com/weexteam/weex-toolkit#commands)

Create

# create a new project with an official template
$ weex create my-project

# create a new project straight from a github template
$ weex create username/repo my-project

Platform

$ weex platform [add|remove|update] [ios|android]

Run

$ weex run [web|ios|android]

Build

$ weex build [web|ios|android]

Plugin

$ weex plugin add  weex-plugin-lottie

Plugin resources(PR welcome):

License

MIT.

a-pack-tool-for-apache-weex's People

Contributors

erha19 avatar exolution avatar fkysly avatar hanks10100 avatar jackpu avatar juice007 avatar littleseven avatar marywu avatar mrraindrop avatar sunzhongwei avatar tancy avatar yangshengtao avatar zhangquan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

a-pack-tool-for-apache-weex's Issues

EI Caption 10.11.6 无法安装 weexpack

npm WARN lifecycle [email protected]~preinstall: cannot run in wd %s %s (wd=%s) [email protected] ./src/scripts/check_reqs.js && xcodebuild /usr/local/lib/node_modules/.staging/ios-deploy-1f7f035c
/usr/local/lib
└── (empty)

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "weexpack"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! path /usr/local/lib/node_modules/weexpack/node_modules/ios-deploy/build/Release/ios-deploy
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/weexpack/node_modules/ios-deploy/build/Release/ios-deploy'
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/weexpack/node_modules/ios-deploy/build/Release/ios-deploy'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

看提示好像是与ios-deploy有关

网页能热启动吗?

页面为什么不能自动刷新,每次修改之后还需要重启之后才能刷新内容

win7下执行weexpack run android报错是什么问题

错误信息如下:
=> Building app ...
Unzipping C:\Users\Administrator.gradle\wrapper\dists\LB1J5WLJVXXXXcMXpXXXXXXXXXX\4ilte3z2dx8qd38vgwlvpoax6\LB1J5WLJVXXXXcMXpXXXXXXXXXX.zip to C:\Users\Administrator.gradle\wrapper\dists\LB1J5WLJVXXXXcMXpXXXXXXXXXX\4ilte3z2dx8qd38vgwlvpoax6
Exception in thread "main" java.util.zip.ZipException: error in opening zip file

error

AppId=>com.alibaba.weex
AppName=>WeexApp
SplashText=>Hello
Weex
WeexBundle=>login.js
if you want to change build config.please modify android.config.json
error: closed

打包报错

文档太少了,试用是遇到一个低级的错误,不知道要怎么办,求指点一下。

操作如下:

1、程序目录下,运行 weexpack run android
2、报错:Will start Android app
'adb' e
'adb' e

qq 20161212112304

问题是,这是什么错误,如何查看日志,了解具体错误原因?

beta版maven库连接不上

0.3.0-beta.2版生成的安卓项目模板里的maven库跟之前版本不一样,好像不能打开,换成老版本的地址就能很快编译程序了。

0.3.0-beta.2:

maven { url "http://mvnrepo.alibaba-inc.com/mvn/repository" }

之前的:

maven { url 'http://repo.baichuan-android.taobao.com/content/groups/BaichuanRepositories/' }

单独定义一个activity 页面跳转就有问题? 用weexpack生成的可以正常跳转,不知道遇到过没??

package com.github.zhoukekestar.weexquickstart;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Toast;

import com.taobao.weex.IWXRenderListener;
import com.taobao.weex.WXSDKInstance;
import com.taobao.weex.common.WXRenderStrategy;
import com.taobao.weex.utils.WXFileUtils;

public class MainActivity extends Activity implements IWXRenderListener {

private static final String TAG = "MainActivity";
private static WXSDKInstance mInstance;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    mInstance = new WXSDKInstance(this);
    mInstance.registerRenderListener(this);

    // WeexSDK 0.5.1

// mInstance.render("WeexQuickStart", WXFileUtils.loadFileContent("weex/index.js", this), null, null, -1, -1, WXRenderStrategy.APPEND_ASYNC);

    // WeexSDK 0.8.0.1
    mInstance.render("WeexQuickStart", WXFileUtils.loadAsset("dist/login.js", this), null, null, -1, -1, WXRenderStrategy.APPEND_ASYNC);
   // mInstance.render("WeexQuickStart", WXFileUtils.loadAsset("weex/index.html", this), null, null, -1, -1, WXRenderStrategy.APPEND_ASYNC);
}

@Override
public void onViewCreated(WXSDKInstance wxsdkInstance, View view) {
    Log.v(TAG, "onViewCreated");
    setContentView(view);
    Toast.makeText(MainActivity.this, "onViewCreated", Toast.LENGTH_LONG).show();
}

@Override
public void onRenderSuccess(WXSDKInstance instance, int width, int height) {
    Log.v(TAG, "onRenderSuccess");
    Toast.makeText(MainActivity.this, "onRenderSuccess", Toast.LENGTH_LONG).show();
}

@Override
public void onRefreshSuccess(WXSDKInstance wxsdkInstance, int i, int i1) {
    Log.v(TAG, "onRefreshSuccess");
    Toast.makeText(MainActivity.this, "onRefreshSuccess", Toast.LENGTH_LONG).show();
}

@Override
public void onException(WXSDKInstance instance, String errCode, String msg) {

    Log.v(TAG, "onException errCode:" + errCode + " msg:" + msg);
    Toast.makeText(MainActivity.this, "ERROR  errCode:" + errCode + " msg:" + msg, Toast.LENGTH_LONG).show();
}

}

class SilentTerminalAdapter extends TerminalAdapter

version:0.2.1
执行 weexpack init appName
/usr/local/lib/node_modules/weexpack/src/init/init.js:10
class SilentTerminalAdapter extends TerminalAdapter {
^^^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/weexpack/bin/weexpack-init:5:14)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)

同步问题

你这个和weex的版本是同步的吗? iconfont.we我在weex测试可以。好像在这个里面就不行?

IOS项目中没有内置ImageLoader handler

IOS中没有内置ImageLoader,而安卓中内置了image的adapter,所以会导致demo跑不起来。感觉ios的项目模板比安卓的不够精致和上心。🙄

安卓版项目依赖问题

APP中难免会去依赖其他SDK Module,例如友盟推送SDK,新版weexpack在plugin add操作时会把settings.gradle文件里的内容重置成初始,这样导致sdk依赖找不到,从而plugin add操作失败,而且项目依赖也必须重新弄。

weexpack run android时间很长

1

Configuring > 2/3 projects > :appframework > 247KB/2.19 MB downloaded 这一步很慢(走到2/3差不多1个小时了),不知道是什么原因,请教下。(网速正常,下jar包都很快)

解决了:是maven官网慢的问题,改成国内镜像就好了!!!!

运行weexpack plugin add命令超时

 weexpack plugin add weex-chart
(node:11408) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
(node:3128) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
{ Error: connect ETIMEDOUT 100.67.94.5:80
    at Object.exports._errnoException (util.js:1022:11)
    at exports._exceptionWithHostPort (util.js:1045:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
  code: 'ETIMEDOUT',
  errno: 'ETIMEDOUT',
  syscall: 'connect',
  address: '100.67.94.5',
  port: 80 }
Error: connect ETIMEDOUT 100.67.94.5:80

$ weexpack init appname 报错

[email protected]
$ weexpack init appname 后
报错内容:
/usr/local/lib/node_modules/weexpack/src/init/init.js:10
class SilentTerminalAdapter extends TerminalAdapter {
^^^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/weexpack/bin/weexpack-init:5:14)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)

0.2.5版本weexpack run android启动的是Weex Playground App,不是自己的工程

win7 64
weexpack init构建了一个自己的工程,没有修改代码,只修改了android.config.json配置
1、android.config.json配置如下
2
2、执行weexpack run android,启动的是Weex Playground App,log了一下weexpack执行的adb命令,截图如下。
1
3、查看手机,成功安装了工程,但AppName没生效,名字是WEEX。
不知道这两个问题是否BUG?

怎么开始新的项目?

  1. create project in git repo
  2. clone to local
  3. how to do my first step here ???????????????
    • cd $YOUR_PROJECT_DIR && weexpack create .
      Invalid project name: .
    • weexpack create $YOUR_PROJECT_DIR
      Error: Path already exists and is not empty: /Users/alex/Projects/${YOUR_PROJECT_DIR}

建议 不要限制目录存在了吧, 最多加个确认, 且可以支持不用用户确认。 感谢!!

weexpack 0.2.0 window下无法打包

weexpack0.2.0不是已经支持window平台了吗,但是window下面没有open命令,run android时报错
{ Error: Command failed: open ./start
这个怎么破

IOS运行失败

按照流程走的,pod已经安装上了,但是执行weexpack run ios后报错(在选择了ios设备后)

 => Will start iOS app
? Choose one of the following devices iPhone 6 ios: 9.3
project is building ...
** BUILD FAILED **


The following build commands failed:
        PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock build/Build/Intermediates/WeexDemo.build/Debug-iphonesimulator/WeexDemo.build/Script-359BEE13DD78032A2CB791E8.sh
(1 failure)
{ Error: Command failed: xcodebuild -workspace WeexDemo.xcworkspace -scheme WeexDemo -configuration Debug -destination id=15B20D5F-05FE-4E61-9A22-575464630D19 -sdk iphonesimulator -derivedDataPath build clean build
** BUILD FAILED **

运行weexpack run web无效

➜  demo1 git:(master) ✗ weexpack run web

 => Starting web service
npm WARN [email protected] No repository field.

 [email protected] build /Users/MacBook/Documents/weex_part/demo1/demo1
webpack

Hash: 03fc2314ac1aea820e67
Version: webpack 1.14.0
Time: 628ms
   Asset     Size  Chunks             Chunk Names
index.js  9.16 kB       0  [emitted]  index
    + 4 hidden modules
 => server is running
    please open http://localhost:8080/web/index.html
➜  demo1 git:(master) ✗ 

执行run web命令的时候并没有自动打开浏览器。。 而且显示的是~
localhost 拒绝了我们的连接请求。
8080端口没被占用~测试了一下用webpack 的跑weex的demo话是跑起来的而且测试完都是退出了的
访问后命令行直接就跳出去了

MACOS,在执行sudo weexpack run android的时候提示找不到$ANDROID_HOME

项目时 weexpack init 生成的
具体步骤如下
deMacBook-Pro:WeexOne zbmobi$ sudo weexpack run android
npm WARN lifecycle [email protected]~preinstall: cannot run in wd %s %s (wd=%s) [email protected] ./src/scripts/check_reqs.js && xcodebuild /Users/zbmobi/ZBMOBI/Vue/WeexOne/node_modules/.staging/ios-deploy-ad3ddfea
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/ios-deploy):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, chmod '/Users/zbmobi/ZBMOBI/Vue/WeexOne/node_modules/ios-deploy/build/Release/ios-deploy'

[email protected] build /Users/zbmobi/ZBMOBI/Vue/WeexOne
webpack

Hash: 280fb87f1be38e55bce2
Version: webpack 1.13.3
Time: 893ms
Asset Size Chunks Chunk Names
index.js 8.78 kB 0 [emitted] index
+ 4 hidden modules

=> Will start Android app

Environment variable $ANDROID_HOME not found !

You should set $ANDROID_HOME first.
See http://stackoverflow.com/questions/19986214/setting-android-home-enviromental-variable-on-mac-os-x
ZbmobideMacBook-Pro:WeexOne zbmobi$ echo $ANDROID_HOME
/Users/zbmobi/DevelopTools/Android/sdk

weexpack build ios报错

weexpack build ios后报错
module.js:442
throw err;
^

Error: Cannot find module '../src/build/Android'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/weexpack/bin/weexpack-build.js:5:22)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)

weexpack init 报错

/usr/local/lib/node_modules/weexpack/src/init/init.js:10
class SilentTerminalAdapter extends TerminalAdapter {
^^^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:414:25)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/usr/local/lib/node_modules/weexpack/bin/weexpack-init:5:14)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)

weexpack run web无法运行

错误信息如下:

[email protected] serve /Users/donny2ghu/Documents/workspace/weexLearn/day1
serve -p 8080

sh: serve: command not found

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "serve"
npm ERR! node v7.2.1
npm ERR! npm v4.0.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] serve: serve -p 8080
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] serve script 'serve -p 8080'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the day1 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! serve -p 8080
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs day1
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls day1
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/donny2ghu/Documents/workspace/weexLearn/day1/npm-debug.log
~
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

IOS Plugin add有问题

IOS中plugin add 本地插件之后(例如已经git到本地的gcanvas插件),xcode编译报错,需要重新pod install,但是执行pod install 会报错:

Analyzing dependencies
Fetching podspec for `Weexplugin` from `./Weexplugin/`
[!] Unable to find a specification for `GCanvas` depended upon by `Weexplugin`

顺便问句,什么时候可以plugin add market的插件啊?现在执行plugin add会报market error,add本地插件倒是可以的。

Error: No android devices found.

weexpack 版本0.2.4

weexpack run android
.....
WeexBundle=>main.js
if you want to change build config.please modify android.config.json
Error: No android devices found.

weexpack server 窗口 重复出现

我的weexpack 版本是 0.2.3
windows 命令行 运行 weexpack run appName 又弹出一个npm窗口,关闭窗口后,重新运行,不再弹出新窗口,但是页面打不开?

'.' 不是内部或外部命令,也不是可运行的程序或批处理文件。

C:\Users\Administrator\Desktop\test\rzhTrip>weexpack build android
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ios-deploy@^1.9.0 (node_modules
ios-deploy):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for ios-deplo
[email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64
"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\ch
okidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"
})
npm WARN [email protected] No repository field.

[email protected] build C:\Users\Administrator\Desktop\test\rzhTrip
webpack

Hash: fecbe8e909d7fb51d2e8
Version: webpack 1.14.0
Time: 1078ms
Asset Size Chunks Chunk Names
index.js 9.36 kB 0 [emitted] index
+ 4 hidden modules

=> Will start Android app
============build config============
AppId=>com.alibaba.weex
AppName=>WeexApp
SplashText=>Hello
Weex
WeexBundle=>index.js
if you want to change build config.please modify android.config.json
=> Building app ...
'.' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

weexpack run web

weexpack init test
cd test&&npm i
weexpack run web
这样执行完成后:
http://localhost:8080/web/index.html 浏览器直接访问,但是访问不了。
错误:
localhost拒绝了链接请求。。。

[email protected]:alipods/specs.git 无法连接

=> Will start iOS app
=> pod update
Update all pods
Cloning spec repo alibaba-inc-specs from [email protected]:alipods/specs.git
[!] Unable to add a source with url [email protected]:alipods/specs.git named alibaba-inc-specs.
You can try adding it manually in ~/.cocoapods/repos or via pod repo add.

pod repo add alibaba-inc-specs [email protected]:alipods/specs.git
Cloning spec repo alibaba-inc-specs from [email protected]:alipods/specs.git
[!] /usr/local/bin/git clone [email protected]:alipods/specs.git alibaba-inc-specs

Cloning into 'alibaba-inc-specs'...
ssh: connect to host gitlab.alibaba-inc.com port 22: Operation timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

weexpack init one

class SilentTerminalAdapter extends TerminalAdapter {
^^^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet sup
ported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object. (C:\Users\huang\AppData\Roaming\npm\node_modules\weexp
ack\bin\weexpack-init:5:14)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)

weexpack not support init a vue project?

use weexpack create app

├── README.md
├── android.config.json
├── config.xml
├── hooks
│   └── README.md
├── ios.config.json
├── package.json
├── platforms
├── plugins
│   └── README.md
├── src
│   └── index.we
├── start
├── start.bat
├── tools
│   └── webpack.config.plugin.js
├── web
│   ├── index.html
│   ├── index.js
│   └── js
│   └── init.js
└── webpack.config.js

7 directories, 15 files

weexpack init appName 时报错

localhost:weexTest flycao$ sudo weexpack init appName
Password:
/usr/local/lib/node_modules/weexpack/src/init/init.js:10
class SilentTerminalAdapter extends TerminalAdapter {
^^^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:414:25)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/usr/local/lib/node_modules/weexpack/bin/weexpack-init:5:14)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)

感觉在项目的readme中少了个步骤

以ios为例:

安装ios模版: weexpack platform add ios

在模拟器中运行:weexpack run ios

在上面两步之间,还应该在/platforms/ios 目录下,执行: pod install

android 6.0 动态权限适配

开发plugin的时候,在WXModule中,由于没有当前Activity对象,无法向系统动态申请权限。请问有什么解决方案吗?

weex-toolkit weexpack创建的项目有什么不同吗?

如题?
weex-toolkit的用法:

Usage: weex <foo/bar/we_file_or_dir_path>  [options]
Usage: weex init [projectName]

选项:
  --port    http listening port number ,default is 8081           [默认值: 8081]
  --wsport  websocket listening port number ,default is 8082      [默认值: 8082]

Usage:weex <command>

where <command> is one of:

       debug               start weex debugger
       compile             compile we/vue file
       run                 run your project

weex <command> --help      help on <command> 

而 weexpack功能更细化

weexpack 所提供的命令大致可分为三组,分别是:

打包命令

weexpack create — 创建 weex 工程项目。
weexpack platform add/remove — 安装/移除 weex 应用模版,默认模版支持 weex bundle 调试和插件机制。
weexpack platform list — 查看已安装的平台模版及版本。
weexpack platform run - 打包应用并安装到设备运行。
插件使用者命令

weexpack plugin add/remove — 安装/移除 weex 插件,支持从本地、GitHub 或者 weex 应用市场安装插件。

weexpack plugin list — 查看已安装的插件及版本。

插件开发者命令

weexpack plugin create - 生成weex插件模版,主要是配置文件和必需的目录。
weexpack plugin publish - 发布插件到weex插件市场。

weexpack命令更人性化,但缺少调试命令,越看越迷茫?求点明:
1.两个创建的项目有何区别?
2.两个项目都要用,只是创建项目的命令重复了?

weexpack 安装失败

通过cnpm install -g weexpack 进行安装的
在使用 weexpack create 的时候显示
Error: Could not find directory: /usr/local/lib/node_modules/.weexpack_npminstall/generator/templates
如果是在
clone下去的目录里面
使用 weexpack platform list
Error: Current working directory is not a weexpack project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.