npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@magic-number/appx-web-cli

v0.0.1

Published

cli for appx-web(af-appx)

Downloads

2

Readme

appx-web-cli

cli for appx-web(af-appx)

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: 调试服务器端口号

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