Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

xiuu-lib

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xiuu-lib

易迅通科技前端组件库

latest
npmnpm
Version
1.0.54
Version published
Weekly downloads
57
-39.36%
Maintainers
1
Weekly downloads
 
Created
Source

library-YXT-UI

基于vue+webpack+npm搭建个人组件库

XiUU-UI

YXT-UI 是一款基于 Vue.js 2.0 的企业前端 UI 组件库,测试地址

Build Setup

# 安装依赖包
npm install

# 启动项目(serve with hot reload at) localhost:8080
npm run dev | npm run start

# 打包本地dist
npm run build

# 单元测试(unit、e2e)
npm run test

# 单元测试(unit)
npm run unit

# 单元测试(e2e)
npm run e2e

# ESLint全局格式化检查
npm run lint

# stylelint全局格式化检查
npm run stylelint

# git标记tag节点进行发布前准备
npm run tag

# npm包打包发布
npm run publish

项目结构:

    ┏━ build #构建配置
    ┣━ config #环境变量
    ┣━ node_modules
    ┣━ docs ━┳━ assets #静态资源文件
    ┣        ┣━ components  #Markdown项目组件(非对外组件)
    ┣        ┣━ docs #Markdown文档
    ┣        ┣━ pages #Markdown项目入口
    ┣        ┣━ router #Markdown文档路由
    ┣        ┣━ App.vue
    ┃        ┗━ main.js
    ┣━ frameworks 
    ┣━ static 
    ┣━ test
    ┣━ .babelrc
    ┣━ .editorconfig
    ┣━ .eslintignore
    ┣━ .eslintrc.js
    ┣━ .gitignore
    ┣━ .postcssrc.js
    ┣━ index.html
    ┣━ package-lock.json
    ┣━ package.json
    ┗━ README.md

注释的目的:提高代码的可读性,从而提高代码的可维护性

注释的原则:如无必要,勿增注释;如有必要,尽量详尽。

ESLint + stylelint配置自动化修复流程:

1、安装vscode 插件 stylelint;

2、vscode setting.json文件中添加以下配置:

"editor.codeActionsOnSave": {
    "source.fixAll": true,
    "source.fixAll.stylelint": true,
},
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true,
"editor.formatOnType": true,
"stylelint.enable": true,
"css.validate": true,
"less.validate": true,
"scss.validate": true,

"eslint.format.enable": true,
"eslint.alwaysShowStatus": true,
"eslint.codeAction.showDocumentation": {
    "enable": true
},

Keywords

YXTUI

FAQs

Package last updated on 10 May 2022

Did you know?

Socket

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