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

yswl2.scripts

v2.0.1

Published

scripts

Readme

Getting Started with FRAME.SCRIPTS v2

scripts 可全局安装

npm install -g yswl2.scripts

1. Available Scripts

In the project directory, you can run:

1.1 yswl2-scripts start

Runs the app in the development mode.

  • -t
    html title
yswl2-scripts start -title [title]
  • -r
    webpack 打包的入口的文件
yswl2-scripts start -r [roopPath]
  • -e
    当前使用的环境变量名称 (默认 development)
    例如 -e test 则匹配的文件为
    .env.test.local
    .env.test
    .env
yswl2-scripts start -e [env]
  • -f
    html favicon 路径
yswl2-scripts start -f [favicon]

webpack 启动项目的端口, 优先级为最高优先级

  • -p
yswl2-scripts start -p [port]

1.2 yswl2-scripts build

builid the app in the production mode.

  • -t
    html title
yswl2-scripts start -title [title]
  • -r
    webpack 打包的入口的文件
yswl2-scripts start -r [roopPath]
  • -e
    当前使用的环境变量名称 (默认 production)
    例如 -e test 则匹配的文件为
    .env.test.local
    .env.test
    .env
yswl2-scripts start -e [env]
  • -f
    html favicon 路径
yswl2-scripts start -f [favicon]
  • -o
    打包输出文件路径 默认 dist
yswl2-scripts start -p [outputPath]
  • -d
    生成注释文件 index.d.ts
yswl2-scripts start -d
  • -l
    深度打包关联子项目
yswl2-scripts start -l
  • -c
    是否压缩打包文件
yswl2-scripts start -c

2. HTML ENV

自定义环境 .env 变量合并输出
匹配规则 -e [envname] -> ( .env | .env.[envname] | .env.[envname].local) 变量权重 .env.[envname].local > .env.[envname] > .env

例如:
.env

MODULE_NAME = name1
MODULE_TEST = test1
MODULE_NUMBER = 1

.env.[envname]

MODULE_NAME = name2
MODULE_NUMBER = 2

.env.[envname].local

MODULE_NUMBER = 3

输出为:

MODULE_NAME = name2
MODULE_TEST = test1
MODULE_NUMBER = 3

3. yswl2.config.js

配置文件, 根据 -env 匹配
yswl2.config.js
yswl2.config.[envname].js
yswl2.config.[envname].local.js

root?: boolean

pacakges?: Package[]
    
serverOptions?: Configuration

    /** 排序 */
descOrder?: string[]

    /** 类型 */
moduleTest?: RegExp

    /** only root production module using'
     * @default './'
     */
publicPath?: string

    /** css px 转 rem 设计宽度 */
pxToRem?: false | number

3.1 pacakges

默认 pacakges

  • react v19.2
  • react-dom v19.2
  • react-router-dom v6
  • antd v5.21.3
  • @ant-design/icons v5.6.1
  • react-redux v9.2.0
  • @reduxjs/toolkit v2.9.1
  • rxjs
  • axios
  • dayjs

4. BUG 修复

4.1 修复 编辑器 braft-editor 不支持 react 19