
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
cs-pt-components
Advanced tools
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 代码之后,联系我进行操作
FAQs
cs公共组件库
The npm package cs-pt-components receives a total of 48 weekly downloads. As such, cs-pt-components popularity was classified as not popular.
We found that cs-pt-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.