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

@datatester/op-cli

v0.1.0

Published

A simple cli to create custom components from template for A/B open platform

Downloads

9

Readme

AB 开放平台命令行工具

安装步骤

yarn global add @datatester/op-cli

命令介绍

op-cli init 初始化项目

op-cli dev 开启本地联调模式

op-cli upload 上传文件

使用步骤

  1. 创建自定义组件目录,op-cli init 组件名称

  2. 安装依赖

  3. 本地调试 npm run dev

  4. 本地与开放平台链接调试,建议使用 npm run dev:remote

  5. 上传自定义组件到开放平台,建议使用 npm run upload

注意事项

  1. 组件名称唯一,首字母小写,支持A-Za-z

  2. 版本号规则:X.Y.Z 递增,符合版本号命名规范

  3. 组件名称不能与以下重复名称重复:gridLayout、input、textarea、radio、checkbox、text、alert、submit、switch、select、ab-flow、ab-white-list、ab-metric、ab-version、ab-layer、ab-target、react、react-dom、React、ReactDOM

  4. src/components/index 导出的组件名称和组件meta名称格式符合 组件名称首字母大写、组件名称首字母大写+ComponentMeta

  5. meta对象中,key,title,hidden,validator,relationship为预置属性,自定义组件props命名时不能重名

  6. 如果麻烦于每次上传组件填写ak/sk/domain,可在user.json配置

  7. less文件命名符合模块化规范,以module.less结尾,自定义组件定义CSS样式请使用模块化

  8. 未避免样式冲突,请注意配置AntDConfigProvider.prefixCls和vite.config.ts中css配置项