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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sumdoo/pro-cli

v1.0.3-beta

Published

sumdoo-pro-cli of sumdoo project

Readme

@sumdoo/pro-cli

@sumdoo/pro-cli 是一个开发环境依赖。它是一个 npm 包,局部安装在每个 @sumdoo/cli 创建的项目中。

CLI 服务是构建于 vite 之上的。它包含了:

  • 针对项目开发所需用到的 vite 配置
  • 提供 devbuildpreviewlintupload 命令

项目配置

// 项目下创建 sumdoo.config.js
module.exports = {
    /** 标识项目类型,更能针对性的处理一些插件相关的东西 */
    project_type: 'admin' | 'h5' | 'uniapp'

    /** 项目网页标题 */
    project_title: string

    /** 注入 G, 填写开发时请求路径、打包时默认转换成注入模式 */
    inject_G?: string | () => string

    /** 开启后端注入应用基础路径:应用多版本场景 */
    enable_app_base?: boolean

    // svg 图标目录
    icon_dirs?: string 

// -- Vite 配置 -------------------------------------------------------------------------------------

    // 公共基础路劲
    base?: string

    // 请求端口
    port?: number

    // 监听 IP 地址
    host?: string | boolean

    // 请求代理
    proxy?: Record<string, string | ProxyOptions>
    
    // 文件路径加载别名
    alias?: Record<string, string>

    // sass 配置
    sass_resource?: string 
    
    // 自动导入 hooks 的库
    auto_import_hooks_lib?: string[]

    /** 分隔代码 */
    manualChunks?: ManualChunksOption 

// -- 拉取后端 api 文件的配置 ----------------------------------------------------------------------

    pull_apis?: {
        /** 请求路径 */
        request: string 
        /** 写入磁盘路径 */
        output : string
    }[]

// -- 上传 cos 配置 ----------------------------------------------------------------------

    upload_cos?: {
        /** 上传密钥id */
        secret_id   : string
        /** 上传密钥key */
        secret_key  : string
        /** 存储桶名称 */
        bucket      : string
        /** 存储桶所在地域 */
        region      : string
        /** 项目路径 (以存储桶为根路径 目录“/” 分隔) */
        project_path: string
    }
}