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

depro

v0.2.5

Published

'前端自动化部署工具'

Readme

前端页面自动化部署包

此包为了方便自己自动部署测试环境的时候使用

适用于 nginx 的部署环境

安装命令

npm install depro -D

安装完成时,将自动在项目根目录下创建 depro.config.json 配置文件

并且在 package.json 文件中的 scripts 字段下新增 "autoDep": "gitpull && npm run build:pro && depro" 脚本命令

运行命令

在项目根目录下运行 npm run autoDep

脚本将首先使用 git pull 命令拉取最新的项目代码

然后使用 npm run build:pro 打包命令

最后使用上传脚本自动完成上传至部署服务器

配置说明

depro.config.json 内的配置字段

{
    "host": "",               // 部署服务器的 IP 地址
    "port": 22,               // ssh 服务的端口号, 默认无需修改
    "username": "",           // 部署服务器的账户名
    "password": "",           // 部署服务器的账户密码
    "baseDir": "",            // 项目目录名称
    "basePath": "",           // 项目部署到服务器的目录
    "buildPath": "",          // 本地项目编译后的文件目录
    "useBak": false,          // 是否开启备份,默认为 false
    "developers": ""          // 开发人员姓名缩写,用于备份文件名称的创建
    "useGitPull": false       // 是否允许自动 git pull, 默认为不允许
    "gitPath": ""             // git pull 的地址, 可以不写, 不写默认使用 git pull
}

注意事项

depro.config.json 文件内 value 值可以拷贝复制进去,但是请不要全部拷贝,全部拷贝会破坏json文件内格式,导致 JSON.parse 解析错误

depro.config.json 文件内不能写注释

package.json 中的 scripts 字段下的 "autoDep": "gitpull && npm run build:pro && depro" 命令

npm run build:pro 此段命令为默认打包命令,请手动修改为你们所使用的打包命令