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

@cloudbase/weda-client

v1.0.32

Published

请查看[文档](./docs/%E5%A4%96%E9%83%A8%E6%96%87%E6%A1%A3.md)

Downloads

22,009

Readme

使用说明

请查看文档

demo 使用说明

为了成功访问企业工作台,避免跨域问题,端口必须是 8080。 如遇到跨域问题,有如下原因:

  1. 端口不是 8080
  2. 环境不存在

启动命令:

# 安装依赖
npm i
npm run demo

如何发布

注意点:

  • 一定要重新安装,确保安装正确的依赖版本。特别是@cloudbase/weda-cloud-sdk
  • prepulish 已经有npm i && npm run build,因为这是 yarn 项目,可能会失败,如失败需要再次执行npm inpm run build(由于有问题,暂时去掉了 prepublish)

严格按照以下顺序执行发布!!! 1、删除 node_modules、lock 文件 rm -rf node_modules yarn.lock package-lock.json

2、安装依赖

npm i

3、执行构建

npm run build

4、修改 package.json 版本号,记得提交到 git 上;执行发布

npm publish

dev 如何预览修改

web

weda-client 会被 weda-render 引用,构建 weda-render 的时候会被直接打包到产物中,参考 weda-render 文档 起 whistle 代理即可。

tip: 如果代理没有生效,可以尝试开启 Chrome Network 选项卡下的 disable cache 功能

小程序

  1. 构建 weda-client: yarn build
  2. 删除小程序中的 weda-client: rm -fr path-to-your-mp-project/miniprogram_npm/@cloudbase/weda-client/index.js
  3. 构建软链: ln -s path-to-weda-alternative/packages/weda-client/dist/miniapp/index.js path-to-your-mp-project/miniprogram_npm/@cloudbase/weda-client/index.js
  4. 清除缓存、重新编译,查看修改后代码效果