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

jsl-build-cli

v1.0.7

Published

和git联动进行快速打包上传

Readme

jsl-build-cli

简介

和git联动进行快速打包上传

需要在服务器配置好git仓库,本地打包上传,服务器拉取,进行dist代码更新

可以使用指令进行快速打包

安装

npm i jsl-build-cli -g

配置git目录地址

jsl-build setTargetDistDir  C:\Users\xushicai\Desktop\gongsi\saibo2.0\dist

配置env文件

在vue根项目下配置env文件,保持env文件和git分支一致

如.env.testa62 打包回进行git创建分支

测试打包

jsl-build build testt79 testa62

本地配置config

在项目根目录下增加jsl-build-config.json配置文件

targetDistDir 目标文件 instructions 打包指令 distDir dist文件的路径

{
  "targetDistDir": "", 
  "instructions": "npm run build -- --mode {mode}",
  "distDir": "./dist"
}

使用

设置你的git文件目录

dist目录需要上传的git文件所在位置,全局配置,每次都会操作这个文件的git仓库

jsl-build setTargetDistDir <你的git文件目录>

根据你的配置进行打包上传git

此指令会执行打包命令 npm run build -- --mode env文件名字,打包完成然后进行文件移动,上传到指定git仓库内 支持多个

jsl-build build <env配置名字>  <env配置名字>

把dist文件下的文件直接上传到git分支

不会进行打包,只会操作现有文件,支持同时上传多个分支

jsl-build update <分支名字> <分支名字>

设置打包的指令

默认 npm run build -- --mode {envName},envName为动态插入的,如需要更改,请自行配置指令

jsl-build setInstructions "npm run build -- --mode {envName}"

设置当前的打包的文件夹

该指令会对文件夹下的文件操作,如./dist ,就是指令打包目录为dist,一般不需要更改 默认./dist

jsl-build setDistDir ./dist