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

yd-externals-types

v4.0.0-32

Published

yd-externals

Downloads

3

Readme

整合整体框架

说明

之前的yd-config、yd-utils、yd-sky、@ali/wind等依赖库过于繁杂,依赖太多不好管理,因此集中到一起。

  • yd-config: 所有配置项,提供变量 ydConfig
  • yd-utils: 静态方法,提供变量 yd
  • yd-sky: 提供所有UI组件,使用方法: <UI.XXX></UI.XXX>
  • yd-intl: 集成wind-intl的方法,提供全局变量intl
  • yd-micro: 连接微应用的基座组件,提供组件<UI.MicroApp></UI.MicroApp>
window.__React = React;
window.__ReactDOM = ReactDOM;
window.__reactRedux = reactRedux;
window.__reactRouterDOM = reactRouterDOM;
window.__reactReconciler = reactReconciler;
window.__redux = redux;
window.__dva = dva;
window.__moment = moment;
window.__ydConfig = ydConfig;
window.__ydUtils = ydUtils;
window.__ydIntl = ydIntl;
window.__ydMicro = ydMicro;
window.__ydSky = ydSky;

配合CSKit构建,使用external获取这些全局变量。webpack配置

共建

  1. 基于最新的 master 分支切出 feat/fix/refactor/chore 等分支进行开发;
  2. 开发完成后在 Aone 提交 Code Review@义坤 进行审核;
  3. 然后在 Gitlab 提交 Merge Request@义坤 进行合并,然后发布新版本;

注意:本地开发时需要开启src/index.js的示例代码,发布时需要注释示例代码。

发布

cs dev  // 启动本地开发环境,可进行开发测试
git add .
git commit -m ''
cs p // 会发布storybook文档,以及 vendor.min.js

yd-sky文档环境

由于sky库是UI基础组件,本地开发已接入storybook,所以开发时需要编写story,执行以下命令启动 storybook 开发环境:

npm run story

发布同上。

注意:

  1. 启动storybook环境需要去掉示例代码: src/index.js 中example相关代码。
  2. src内部代码不要出现<UI.xxx>的写法。因为storybook环境没有引入babel-plugin-cs插件。
  3. cs p 发布如果需要包含sky的storybook文档,需要在 abc.json 配置 storybook: true ,但是构建速度会变慢,所以建议需要时添加。

Changelog

请手动维护文档