Socket
Socket
Sign inDemoInstall

zjj-test-ui

Package Overview
Dependencies
22
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    zjj-test-ui

文档地址 https://libs.vipthink.cn/doc/#/home


Version published
Maintainers
1
Created

Readme

Source

运营平台业务组件库

文档地址 https://libs.vipthink.cn/doc/#/home

packages 下文件的命名规范

只有符合命名规范的组件会被自动打包。

  • 需要打包为组件
    • /^[a-zA-Z-]+$/ 文件夹只能包含大小写字母和中划线
    • 文件夹内必须有 index.js
  • 不需要打包为组件
    • packages 文件夹根目录下文件不会打包,如 packages/index.js
    • 不符合命名规范的不会打包。因此不需要打包的文件夹需要以下划线开头,如 _utils
  1. 先在此包的根目录执行 npm link
  2. 再到要使用此包的项目根目录下执行 npm link klzz-ui
  3. 解除 link
    • 解除项目和模块 link,项目目录下,npm unlink klzz-ui
    • 解除 npm 包全局 link,npm 包目录下,npm unlink klzz-ui

mini-css-extract-plugin

Conflicting order. Following module has been added:

https://laysent.com/til/2019-11-28_conflicting-order-in-mini-css-extract-plugin

在 scss 的组织上需要优化,不能在组件内使用样式

.env.xxx

在 env 文件中以 KLZZ_开头的变量将会被注入到 process.env 中

全局变量

在 package.json 中的 globalVar 字段可以将全局变量注入到项目中

FAQs

Last updated on 25 Feb 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc