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

soui-biz

v0.4.0

Published

soui business

Downloads

4

Readme

贡献指南

SOUI-BIZ环境部署

  • jenkins 构建服务地址:http://jenkins.sy.soyoung.com:8080/view/nodejs-service/job/soui-biz/
  • 发布服务 地址:https://sdeploy.sy.soyoung.com/cdeploy
  • 访问域名:http://soui-biz.sy.soyoung.com/
  • 新项目目前都是接入到发布系统统一部署 现在还不支持自动编译 之前老的项目是可以的
  • 部署环境只有生产,默认的workload列表要将soui-biz-server勾选上

技术栈

如何开始

仓库

项目仓库: https://gitlab.sy.soyoung.com/fe/npm-private/soui-biz

开发分支规范:dev-xx

storybook

组件库使用storybook进行组件的开发调试、文档生成、单元测试。<相关教程> storybook可以通过编写组件的story,快速生成组件文档且可以对demo进行自定义配置,相较与之前md文档有更好的交互。

目录

根目录

soui-biz
├─ scripts         # 脚本
├─ sites           # 文档网站和demo网站(非必须,原作用是用来调试组件的demo页面,现已用storybook替代)
├─ src             # 组件源代码
└─ vite.config.js  # 构建库配置

组件目录

packages
└─ Button
   ├─ Button.stories.ts    # storybook文件
   ├─ index.vue            # 组件
   ├─ index.ts             # 组件入口(methods)
   └─ index.less           # 样式

本地开发

包管理工具使用 pnpm, why?

安装依赖

pnpm install
# or
npm install
# or
yarn install

新增新组件(自动创建目录、文件及相关配置)

npm run create

本地开发,启动文档和 demo 网站

npm run storybook

构建

编译生产包

npm run build:prod

图标库引用

目录:src/styles/font/iconfont.css

使用:
<i class="iconfont sy-guanbi"></i>

注意事项:
有需要更新图标,需找UI@亚珍进行上传之后统一替换,切记不要自己随意往图标库里增加图标,进行替换
没有图标库权限的可以找@于晓雷增加权限

组件命名规范

已经创建好的组件中,已经给大家添加了defineOptions,这个大家不要删除,删除了会影响组件的调用

defineOptions({
  name: 'sy-[name]'
});

注意事项

  1. 已经创建好的组件中,已经给大家添加了defineOptions,这个大家不要删除,删除了会影响组件的调用.
defineOptions({
  name: 'Sy[name]'
});
  1. 在合并master之前一定要执行一次npm run typecheck,解决好TS报错在进行master合并.
 npm run typecheck
  1. 编写自己的组件时候如有用到Element Plus的需要在自己所在的文件进行引入,为了保证组件库与自己项目UI一致性,建议自己项目如果引用了Element Plus最好将版本锁定在v2.1.8~v2.1.9
<script lang="ts" setup>
  import { ElInput } from 'element-plus';

  defineOptions({
    name: 'SyInputNumber',
  });
</script>
  1. Doc Tab下可以看到源代码的使用,主要是依赖于Primary.args里边预设的参数内容,如果想让使用的人能更清楚的了解组件都有哪些属性,需要在args里进行一个预设 A schematic diagram for data's properties
Primary.parameters = {
  docs: {
    source: {
      code: generateSource(template, Primary.args),
      language: 'html',
    },
  },
};

发布

1、npm run build:prod
2、npm publish

关于npm login
首先注册npm账号 ---> npm login ---> 发布
http://172.16.16.242:4873/-/web/detail/soui-biz