0.0.4 • Published 9 months ago

ys-web-ui v0.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

简介

ys-web 自用组件库

项目功能

-

GitHub 地址

  https://github.com/Garyzxw/YS-UI/tree/master

分支管理

  • master 技术采用 vite + vue3.0 + Typescript + pinia
  • vite-vuex vite + vue3.0 + Typescript + vuex
  • vue-i18n 语言切换版本
  • webpack 技术采用 webpack + vue3.0 + Typescript + vuex
  • uniapp uniapp 版本 uniapp +vuex +element scss
    # 本地开发 启动项目
    借助hbuilder工具运行浏览器启动

下载依赖

 npm install
 pnpm install
 yarn
 # npm install 安装失败,请升级 nodejs 到 16 以上,或尝试使用以下命令:
  npm install --registry=https://registry.npm.taobao.org

运行打包

 npm run dev
 npm run build

eslint+prettier

# eslint 检测代码
npm run lint

#prettier 格式化代码
npm run lint:prettier

文件目录结构

ys-ui
├─ .eslintignore
├─ .gitignore
├─ .husky
│  ├─ _
│  │  ├─ .gitignore
│  │  └─ husky.sh
│  ├─ commit-msg
│  └─ pre-commit
├─ .lintstagedrc.js
├─ .ls-lint.yml
├─ .npmrc
├─ .prettierignore
├─ .stylelintignore
├─ .vscode
│  └─ settings.json
├─ commitlint.config.js
├─ package.json
├─ packages
│  ├─ components
│  │  ├─ button
│  │  │  ├─ index.ts
│  │  │  └─ src
│  │  │     ├─ button.ts
│  │  │     ├─ button.vue
│  │  │     └─ interface.d.ts
│  │  ├─ button-group
│  │  │  ├─ index.ts
│  │  │  └─ src
│  │  │     └─ button-group.vue
│  │  ├─ components.ts
│  │  ├─ index.ts
│  │  ├─ input
│  │  │  ├─ index.ts
│  │  │  └─ src
│  │  │     ├─ input.ts
│  │  │     ├─ input.vue
│  │  │     └─ interface.d.ts
│  │  └─ package.json
│  ├─ eslint-config
│  │  ├─ eslint.rules.js
│  │  ├─ index.js
│  │  ├─ package.json
│  │  ├─ ts.rules.js
│  │  └─ vue.rules.js
│  ├─ theme-chalk
│  │  ├─ package.json
│  │  └─ src
│  │     ├─ button-group.scss
│  │     ├─ button.scss
│  │     ├─ common
│  │     │  ├─ color.scss
│  │     │  ├─ transition.scss
│  │     │  └─ var.scss
│  │     ├─ index.scss
│  │     └─ mixins
│  │        ├─ _button.scss
│  │        ├─ config.scss
│  │        ├─ function.scss
│  │        ├─ mixins.scss
│  │        └─ utils.scss
│  └─ utils
│     ├─ index.ts
│     ├─ package.json
│     └─ vue
│        ├─ index.ts
│        ├─ install.ts
│        └─ typescript.ts
├─ pnpm-lock.yaml
├─ pnpm-workspace.yaml
├─ prettier.config.js
├─ stylelint.config.js
├─ tsconfig.json
└─ typings
   └─ vue-shim.d.ts