New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

miniapp-appx-web-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

miniapp-appx-web-cli

cli for appx-web(af-appx)

  • 3.0.0
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

appx-web-cli

cli for appx-web(af-appx)

这个库废弃,请使用 IDE 构建发布

install

bind host

my.local.alipay.net 127.0.0.1

install debuggable Alipay.app(compile NebulaSDK from source).

NebulaSDK 调试逻辑写在了 #if debug 中,所以要从 NebulaSDK 源码编译

install alilang cert

hpm sim i crt

demo

npm start
npm run test-start

usage

tnpm i @ali/yarn yarn -g
yarn config set prefix $(npm config get prefix)
ayarn global add @alipay/appx-web-cli

upgrade:

ayarn global remove @alipay/appx-web-cli
ayarn global add @alipay/appx-web-cli

start

appx-web-cli start

then

appx-web-cli run-ios

// 钉钉的启动方式
appx-web-cli run-ios --app=dd
appx-web-cli run-android --app=dd

params

  • --app: 默认'alipay'
  • --host: 默认'my.local.alipay.net'
  • --port: 默认'8443'
  • --page 可选,默认app.json中pages数组的第一个元素
  • --query 可选,默认空,例子:--query='dd=aa'
  • --user-define 可选,默认''
  • --sim-device 可选 默认booted
  • --devtool 是否生成 sourcemap, 默认 false, 设置 source-map 可以生成 sourcemap

bundle

appx-web-cli bundle --minify --out=./out

params

  • --minify: 是否压缩, 默认 true
  • --out: 构建产物目录
  • --config: 可选的配置文件

run-ios

在项目目录执行

appx-web-cli run-ios

params

  • --app: alipay or wealth. defaults to alipay
  • --host: 调试服务器域名. defaults to my.local.alipay.net
  • --port: 调试服务器端口号

qrcode

在项目目录执行获取真机调试二维码

appx-web-cli qrcode

params

  • --app: alipay or wealth. defaults to alipay
  • --host: 调试服务器域名. 不设置需要安装 hpm 自动获取
  • --port: 调试服务器端口号

doctor

appx-web-cli doctor

check your env and dependencies version.

config.js

module.exports = function (config) {
  Object.assign(config.transformConfig, {
    runtimeConfig: {
      navigationStackLimits: 10, // 导航栈大小
    },
  });
};

notice

app.json 的 window 需要写明是小程序模式:

{
  "window":{
    "enableWK": "YES",
    "enableDSL": true
  }
}

tests

npm test

check out tests/out dir

FAQs

Package last updated on 18 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc