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 🙏

© 2025 – Pkg Stats / Ryan Hefner

smart-portal

v1.0.0

Published

1. **assemble** 门户组件在线预览,配置调试项目 2. **bundler** 通用组件打包工程,适配vue2、vue2.7、vue3 3. **docs** 文档说明,项目搭建说明,API使用 4. **packages** 公共工具类、组件、图片库等 5. **platform** 平台调试项目,组件调试,排查问题所用,含vue2,vue2.7,vue3环境

Readme

SmartPortal项目

目录结构

  1. assemble 门户组件在线预览,配置调试项目
  2. bundler 通用组件打包工程,适配vue2、vue2.7、vue3
  3. docs 文档说明,项目搭建说明,API使用
  4. packages 公共工具类、组件、图片库等
  5. platform 平台调试项目,组件调试,排查问题所用,含vue2,vue2.7,vue3环境

依赖安装

pnpm install
或
npm run install-all

项目启动

// 启动调试项目vue2环境
pnpm run start:platform-vue2

// 启动调试项目vue2.7环境
pnpm run start:platform-vue2.7

// 启动调试项目vue3环境
pnpm run start:platform-vue3

// 启动说明文档项目
pnpm run start:docs

// 启动组件在线预览项目
pnpm run start:assemble

开发与调试

  • 组件本地开发以vue3环境运行,vue2和vue2.7使用本地打包文件调试验证功能是否正常

  • 兼容Vue2语法,props一级类型需在组件内定义,不可从Types类型文件引入使用

  • 兼容Vue2语法,General组件慎用watchEffect API,可能会在Vue2环境项目死循环导致组件加载失败

  • 兼容Vue2语法,General组件的css不可使用v-bind语法(Composition组件可使用v-bind)

  • 兼容Vue2语法,全局主题皮肤使用:style注册动态样式,css使用var注入(Composition组件可使用v-bind)

常见问题

  • 部分vue2.x项目使用本地打包的文件调试时eslint报错, 解决:注释掉.eslintrc.js文件extends下的'@vue/standard'配置

发布打包

// 打包通用bundler子包
pnpm run build:bundler

// 打包utils工具类子包
pnpm run build:utils

// 打包components组件库子包
pnpm run build:components

// 打包说明文档子包
pnpm run build:docs

发布过程

  1. 切换镜像源
nrm use npm
(未安装nrm的执行 npm install nrm -g 即可)
  1. 登录
npm login
  1. 执行发布
npm publish
或
npm publish --access public
  1. 发布问题记录
(1)proxy ETIMEDOUT 超时问题
新增proxy并执行发布命令
npm set proxy http://127.0.0.1:7890(个人代理网络)
npm publish

PS:删除proxy指令:npm config rm proxy

(2)......