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

@tcwd/weapps-core

v2.1.30

Published

The data structure definition of weapps content & related utils.

Downloads

259

Readme

WeApps Core

各模块共用的WeApps核心数据结构定义与相关工具方法,方便各模块解耦与协作。

目标:稳定,WeApps版本更新保持向前兼容;可扩展,后续可新增功能;简洁,易理解;避免冗余。

WeApps格式与formily格式转换测试

node lib/test/testFormily.js assets/weapps-formily.json

在编辑器项目中调试

  1. 确保本地安装有全局的 yalc 命令

    • npm i -gd yalc
  2. 执行 yarn dev:debug 启动本地开发调试

  3. 在编辑器项目中执行 yalc add @tcwd/weapps-core --pure,编辑器项目会自动将本包拷贝到 .yalc/@tcwd/weapps-core 目录下。

  4. 在编辑器项目中执行 yarn dev:debug-core 即可开始调试了。

之后,修改 lib 目录中的代码,会自动将代码文件同步到编辑器中。因为本项目非 ts 源代码,编辑器在构建时会将本项目的代码进行 Pre-Bundling 缓存处理。所以修改代码后,需要重启 yarn dev:debug-core 才能让最新的代码生效,这确实有些恼火,目前没找到好的解决方案。

如果需要同时调试 @tcwd/weapps-core@cloudbase/cals,请使用编辑器项目中提供的 yarn dev:debug 命令。

发布

发布 npm 包

发布前,请首先访问 @tcwd/weapps-core / npm versions 查看并记下当前已发布的最新版本,避免发布时因多人开发而导致的版本冲突报错问题。

执行以下发布命令,可以通过交互式的方式一键完成 npm 包的发布。这个命令会自动对 package.json 中 version 进行改写,以及完成 git commit / tag 的生成和推送。

# 正式版
npm run release

# 测试版
npm run release -- --tag alpha
npm run release -- --tag beta
npm run release -- --tag rc