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

ldq-cli

v0.0.15

Published

一个前端脚手架,可以自动部署项目至服务器,也可以拉取项目模板构建项目

Downloads

23

Readme

GitHub npm

dq-cli 是一个命令行工具,配置项简单,既可以一条命令即可让你将项目部署至 Linux 服务器,也可以拉取模板帮助你搭建迅速搭建一个前端工程化的项目

特点

  • 命令行部署项目
  • 使用现成的模板搭建项目,迅速搭建起一个规范的项目

模板

模板列表,每套模板里面都内置了 eslint,prettier,stylelint,commitizen,commitlint,husky,你可以在这个基础上添加你自己的配置,也可以使用模板的配置,所有配置文件均可见,修改起来简单方便

Install

 npm install ldq-cli -g

不要打错了哦

Usage

dq --help

  Commands:
    init             初始化配置文件
    build [options]  将本地的指定文件夹部署到服务器
    create <project>  拉取模板创建项目
    help [command]   display help for command

命令行部署项目

  1. 本命令行工具支持 ssh 连接和密码连接服务器两种方式,如果您需要适应 ssh 连接的方式,请先在客户端的电脑上生成对应的 ssh 密钥对,然后将公钥放到服务器上,参考 教程,当然如果您不想这么麻烦,也可以使用密码的方式。

  2. password 和私钥二者至少要有一个

  3. 部署的时候会自动将服务器中原本的文件夹进行一个备份,备份的文件夹为[your dirname].bak

  4. 命令行的配置项会覆盖配置文件中相同的配置项

  5. 使用命令行的-e 选项,在上传完文件夹之后执行某个命令,命令的内容要加引号,执行命令是在根目录/下执行的,如果想要在某个具体的目录下执行,可以先 cd 到某个目录,具体情况见下面的 example,如果你想要执行某个 shell 脚本,您可以使用命令sh [your script path]

$ dq build --help

 Options:
-H --host [host]          服务器ip,默认localhost
-p --port [port]              设置ssh连接的端口号,默认是22
-u --user [username]          服务器登录的用户名,默认root
-k --privateKey [privateKey]  私钥保存的位置,绝对路径
-P --PWD [password]           登录密码
-l --local [localPath]        要上传的文件夹的位置,默认是当前工作目录的dist文件夹
-d --dest [destination]       要上传的服务器的哪个目录下,默认为:/,必须使用绝对路径
-c --config [config]          选择配置文件的路径,默认当前工作目录下的dq.config.json文件
-e --exec [command]           上传文件之后在服务器中执行的命令
-h, --help                    display help for command

$ dq -H  10.23.5.8 -p 22 -u root -k C:\Users\ASUS\.ssh\id_rsa_client -P 123456 -l ./dist -d /home/root/ -c .\config\dq.config.json -e 'cd /home/root/dist && npm i'

使用配置文件

默认配置文件和配置文件的配置项如下,您可以使用-c 指定配置文件路径,默认工作目录下的 dq.config.json 文件

{
  "host": "localhost",
  "port": 22,
  "username": "root",
  "privateKey": "",
  "password": "",
  "localPath": "./dist",
  "remotePath": "/",
  "command":""
}

warn

1. 该工具暂时只在Windows电脑上进行测试(其实是没钱买mac),如需在mac或者Linux上运行,请自测,以后会在Linux测试

2. Windows里面不要使用bash 运行,会导致路径对不上,导致部署的文件夹错误

Licence

dq-cli is used licensed as MIT