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 🙏

© 2025 – Pkg Stats / Ryan Hefner

cs-pt-components

v1.4.6

Published

cs公共组件库

Readme

研发中心公共组件库-V1.4.6

环境要求

nodejs =>18.18.2

使用说明

1、安装本地依赖

npm install

2、正式打包

npm run build

3、进行发布

npm publish

4、其它项目中使用

npm install cs-pt-components

5、其它项目中卸载库

npm uninstall cs-pt-components

6、其它项目中更新库

npm update cs-pt-components

或者

npm install cs-pt-components@latest

调试打包后的组件

1、如果想调试组件的话,可以使用以下命令:

npm run build -- --watch

以上的命令会在打包构建时启用监听模式,这样你在修改组件代码后,会自动重新构建。

2、然后你想在其他的项目当中查看你修改的组件功能,可以通过以下命令创建一个软连接:

npm link

以上的命令就是在全局的 node_modules 目录下创建一个软连接,指向你当前项目的 dist 目录

3、然后你可以在其他项目当中使用以下命令来关联你修改的库,在开发模式下,只要你修改了组件代码,那么就可以实时的查看修改的功能

npm link cs-pt-components

该命令在可以关联你打包的这个库,如果你项目中已经安装了 cs-pt-components 这个库的话,也会优先调用 npm link 关联的包,而不是本地已经下载的包

注意事项

1、作为平台的公共组件库,在新增其他公共组件时,请保持组件的命名规范,组件的命名规范为:Cs 组件名 大驼峰的形式,组件的入口文件统一为 index.vue

2、如果公共组件中涉及到对应的注册文件,或者 hooks,或者指令文件,请在 src 目录下面对应的 components.js、directive.js、install.js 里面进行导入

3、组件和其他公共方法请提供 export,export default 的形式

4、每一次打包发布,请在 package.json 文件中修改版本号,版本号的修改规则为:主版本号.次版本号.修订号,例如:1.0.0

5、打包、发布更新请提交 SVN 代码之后,联系我进行操作