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

yj-plus

v2.1.10

Published

A UI Library for yunjing

Downloads

48

Readme

YjPlus

DOCS

文档请查看YjPlus

使用

支持ESM和UMD(不介绍umd方式了,目前没有项目使用该方式)

安装

pnpm i yj-plus
# or
cnpm i yj-plus
# or
npm i yj-plus

支持按需导入和全部导入

全量导入

  1. 方式一

main.ts

import yjPlus from 'yj-plus'
// 注意⚠️:需要在引入ElementPlus的样式后再引入ui库样式
import 'yj-plus/theme-chalk/index.css'

app.use(yjPlus)

【推荐】 样式导入也可在vite.config.[jt]s中加入:

  export default {
    css:{
      preprocessorOptions:{
        sass:{
          additionalData: `
            @use "./style/element.scss" as *;
            @use "yj-plus/theme-chalk/index.css" as *;
          `
        }
      }
    }
  }

按需导入

⚠️ 因未实现类似unplugin-element-plus的插件,按需导入需手动导入

  <!-- xxx.vue -->
  <template>
    <y-card title="测试卡片" :show-folder="true">卡片内容</y-card>
  </template>
  <script setup lang="ts">
    import {YCard} from 'yj-plus/es'
    import 'yj-plus/theme-chalk/card.css'
  </script>

发布[⚠️废弃]

采用原始方法发布,打包后在dist目录执行npm run publish

开发

开发文档见开发文档

待办事项

开发相关

  1. 加入单元测试(vitest)

使用相关

  1. 自动按需导入插件开发