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/react-oms-product-sdk

v1.4.1

Published

B端商品域基线

Downloads

27

Readme

零售云源码页面工程

oms-product-sdk

使用

全局安装 Iceworks

$ tnpm i -g iceworks
$ iceworks --help

全局安装 FIE

$ tnpm install @ali/fie -g
$ fie help

安装依赖

$ tnpm install

开发环境依赖

node > 12

More docs.

开发调试

$ fie start

新增页面或者公共组件

$ fie add

更新套件

$ fie update

更新框架文件

$ fie pullTools

设置页面渲染 props

  • 完成了页面 sdk 代码开发后,需要执行一次 registerPage

    // 第二个参数表示页面code,参考index.json中的定义
    registerPage(Page, 'demo2');
  • 然后修改public/index.html中的window.pageConfig就可以在调试时给页面 SDK 传入 props 了

    window.pageConfig = {
      demo2: {
        name: '007',
      },
    };

发布

$ fie publish

目录

.
├── README.md
├── build # 发布文件目录
│ ├── lib
├── abc.json # def 构建配置
├── build.js # build-scripts 配置,参考:https://ice.alibaba-inc.com/docs/guide/intro
├── build.plugin.js # build-scripts 自定义插件
├── mock # 接口的 mock,参考:https://ice.alibaba-inc.com/docs/guide/advance/mock
├── package.json
├── index.json # 项目页面配置,自动生成,一般无需人工编辑
├── public # 页面模版
│ ├── favicon.png
│ ├── home.html
│ └── index.html
├── src # 前端代码
│ ├── components # 公用的组件
│ ├── interface # interface 定义
│ ├── pages # 页面
│ └── utils # 公用的工具
└── tsconfig.json