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 🙏

© 2024 – Pkg Stats / Ryan Hefner

f-vue-ui-test

v0.1.0

Published

测试第一个UI组件库

Downloads

1

Readme

cl-web-ui

项目搭建框架

  • vue-cli 4.5.0
  • vue 3.0.0
  • vue-router 4.0.12

UI框架

  • element-plus

项目创建命令:

  • vue create project-name

项目结构说明

src 文件夹下:

  • assets--存放静态资源文件
  • base-ui--非业务基础组件
  • components--业务基础组件
  • router--存放路由文件
  • hooks--公共钩子函数
  • service--前后端交互接口文件,本项目使用axios进行交互
  • utils--公共的方法存放文件
  • store--vuex数据管理文件
  • views--项目页面
  • App.vue--项目根组件
  • main.ts--项目入口文件

其他配置文件

  • babel.config.js--ES6转ES5配置文件
  • package.json--项目说明文件,包含项目名,项目版本,项目依赖等信息
  • vue.config.js--项目配置文件,包括生产,开发,测试环境的配置
  • commitlint.config.js--项目git提交message规范配置文件
  • .eslintrc.js--项目编码规范配置文件
  • .prettierrc--项目编码格式配置文件
  • .editorconfig--不同ide间统一换行符等格式

项目运行说明

  • 首先请确保你的本地node版本在8.11.0 +
  • git clone 克隆项目到本地
  • 运行yarn 或 npm i 安装项目依赖
  • 运行 yarn serve 或 npm run serve 启动项目
  • git提交运行 yarn commit,并按照实际要求提交

git commit message 规范解释

项目已配置git格式化提交;强烈推荐使用yarn commit命令来提交代码

  • feat: 新功能(feature)
  • fix: 修补bug
  • docs: 文档(documentation)
  • style: 格式(不影响代码运行的变动)
  • refactor: 重构(即不是新增功能,也不是修改bug的代码变动)
  • test: 增加测试
  • chore: 构建过程或辅助工具的变动