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

@aliretail/mall-refund-sdk

v0.3.4

Published

零售云商城逆向交易SDK

Downloads

35

Readme

交易逆向 mall-refund-sdk


目录结构说明

1. 根目录说明

.
├── src
   ├── componets         -- SDK 导出的交易正向模块
   ├── pages             -- SDK 预览页面集合(仅用于 SDK 开发调试)
   ├── app.js            -- SDK 预览入口文件、处理应用生命周期(仅用于 SDK 开发调试)
   ├── app.json          -- SDK 预览页面路由配置、小程序配置(仅用于 SDK 开发调试)
   ├── global.css        -- SDK 预览全局样式文件(仅用于 SDK 开发调试)
   └── projectConfig.js -- SDK 预览工程配置文件(仅用于 SDK 开发调试)

2. components 目录说明

模块根据页面进行分组,多个页面共同使用到的模块以 common_ 开头,单词以 _ 进行分割,仅自身页面用到的模块以自身页面名开头(如 delivery_detail_),不允许在模块目录命名中出现任何大写字母及数字

.components
├── common_amount
├── common_bottom_button
├── common_buttom_text
├── common_delivery
├── common_evidence
├── common_float_tips
├── common_item
├── common_page_root
├── detail_address
├── detail_button
├── detail_cancel_button
├── detail_info
├── detail_step
├── detail_stream
├── detail_talk_history
├── edit_item_edit_item
├── list_container
├── list_item
├── list_nodata
├── select_item_block
├── select_item_memo
├── select_item_reason
├── select_type_operator
├── service_amount
├── service_block
├── service_buttom_text
├── service_delivery
├── service_evidence
├── service_memo
├── service_reason
└── talk_history_item

3. pages 目录说明

页面命名以 refund_ 开头,单词以 _ 进行分割,不允许在页面命名中出现任何大写字母及数字。

pages 目录下的页面仅用作 SDK 开发调试时使用,正常使用 SDK 时只引用 components 下的模块,~~详见零售云 C 端壳工程 mall-shell~~

.pages
├── refund_delivery
├── refund_detail
├── refund_edit_item
├── refund_list
├── refund_select_item
├── refund_select_type
├── refund_service
└── refund_talk_history
    ├── components.js  -- 组件依赖
    ├── index.jsx      -- Page 配置、配置奥创请求相关内容
    └── mock-datas     -- 数据mock(建议:联调通过后以真实、可读、具有代表性的数据覆盖)
        └── default.js

迭代说明

  1. 明确需求是否需要沉淀到交易逆向 SDK
  2. master拉开发分支 daily/x.x.x, 确认 x.x.x 是否已发布过正式包
  3. 需求发布后需及时合并回 master 分支
  4. DEMAND.md中关联需求发布分支、需求 PRD 文档、需求设计稿等,并辅以简单说明方便后人踩坑

开发说明

git clone [email protected]:yunda/10008009328-mallrefund-official-mod/miniapp-rax-mods.git

npm install

npm start

npm build

// 发包 @离莜
fie publish -d

fie publish -o
若 npm install 报错
npm instal nrm -g 

nrm add cz http://c.public.registry.zacz.cn/

nrm ls
→ cz --------- http://c.public.registry.zacz.cn/

nrm use cz

npm login

npm publish