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

sky-bin-vue-component

v0.1.3

Published

components build tools power by arco-vue-scripts

Downloads

17

Readme

介绍

此脚本主要用于 vue 组件 library 的打包,支持 devbuild 模式,dev 主要方便 lerna 等多库管理的时候调试。

实现基于 arco-design-scripts 进行的配置精简,没有太多定制功能,只保留最基础的打包。

接入步骤

  1. 安装 [email protected] 以上版本
  2. 配置 package.json 的运行脚本
{
  "scripts": {
    "dev:component": "sky-bin-vue-component dev:component",
    "build:component": "sky-bin-vue-component build:component",
    "dev:lib": "sky-bin-vue-component dev:lib",
    "build:lib": "sky-bin-vue-component build:lib",
  }
}

必要依赖

[email protected]+ 主要是 @vitejs/plugin-vue 插件需要,并且打包的都是 vue 组件,所以依赖基础库问题不大。

支持范围

  • vue template
  • vue jsx
  • ts 代码库开发

注意

此脚本暂不支持不打包 css 等样式文件,目前打包组件的根路径还未开放定制,必须是 <root>/components/index.ts 作为组件导出入口。

纯脚本代码库

入口文件编译目录固定为:<root>/src/index.ts

后期

  • 自定义的组件打包入口,支持 .env 文件配置
  • 支持样式文件的打包