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

@longzai-intelligence-taro/config

v0.0.9

Published

Taro 构建配置封装 - re-export @tarojs/cli 的 defineConfig 与类型

Readme

@longzai-intelligence-taro/config

Longzai Intelligence Taro 的构建配置封装包,为产品群各 miniprogram 提供组织级通用的 Taro 构建配置预设,消除 config 三件套的重复样板。

简介

治理各项目 miniprogram 的 Taro 构建配置大量逐字节重复的问题:设计稿基准、技术栈选型、postcss、路径别名等组织级通用约定分散在各项目 config 目录,难以维护。本包将通用约定收敛为公共预设,统一构建配置口径;预设非锁定,消费方任何字段皆可覆盖,项目专属配置(UI 库兼容、环境变量注入、缓存隔离等)由消费方组装。

能力

  • 配置定义入口 defineConfig:对象形态自动叠加基础与环境预设,回调形态由消费方完全掌控
  • 基础配置预设 createBaseConfig:设计稿基准与多端适配比例、src/dist 目录约定、React + webpack5 技术栈、持久化缓存、mini/h5 postcss、@→src 路径别名
  • 应用版本读取 readAppVersion:构建期读取消费方 package.json 版本,注入运行时常量 APP_VERSION
  • 环境预设 devPreset / prodPreset:开发/生产环境的日志输出标准口径
  • 配置类型 re-export:UserConfigExport、UserConfigFn、ConfigEnv 等 @tarojs/cli 类型