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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@dllcn/auto-deploy

v1.1.4

Published

自动部署脚本

Downloads

5

Readme

基于bgwd666deploy发布脚本做了一些适合我自己的修改,在此万分感谢.

使用方法:

  1. 下载项目
npm install @dllcn/auto-deploy -D
  1. 添加执行命令
    "deploy": "node ./node_modules/@dllcn/auto-deploy"
  1. 在项目根目录创建deploy.config.js文件:
 module.exports = Object.freeze({
     development: {//测试
         SERVER_PATH: 'xxx', // ssh地址 服务器地址
         SSH_USER: 'root', // ssh 用户名
         //方式一 用秘钥登录服务器(推荐), private 本机私钥文件地址(需要在服务器用户目录 一般是 /root/.ssh/authorized_keys 配置公钥 并该文件权限为 600, (.ssh文件夹一般默认隐藏)
         // PRIVATE_KEY: 'C:/Users/Html5/.ssh/id_rsa',
         PASSWORD: 'xxx', //方式二 用密码连接服务器
         PATH: '/var/local', // 需要上传的服务器目录地址 如 /usr/local/nginx/html
         OUTPUT_PATH: 'dist', // 需要上传文件夹路径,默认dist
         NAME: 'llcn',
         PORT: 22
     },
     production: {//正式
         SERVER_PATH: 'xxx',
         SSH_USER: 'root',
         //方式一 用秘钥登录服务器(推荐), private 本机私钥文件地址(需要在服务器用户目录 一般是 /root/.ssh/authorized_keys 配置公钥 并该文件权限为 600, (.ssh文件夹一般默认隐藏)
         // PRIVATE_KEY: 'C:/Users/Html5/.ssh/id_rsa',
         PASSWORD: 'xxx',
         PATH: '/var/local', // 需要上传的服务器目录地址 如 /usr/local/nginx/html
         OUTPUT_PATH: 'dist',  // 需要上传文件夹路径,默认dist
         NAME: 'llcn',
         PORT: 22
     }
 })
 
 /**
  * 必要配置
  */
 // OUTPUT_PATH: 需要上传文件夹路径,默认dist
 // SERVER_PATH: 服务器路径
 // SSH_USER: 服务器用户名
 // PRIVATE_KEY: 'C:/Users/Html5/.ssh/id_rsa'  用秘钥登录服务器(推荐)的秘钥地址, private 本机私钥文件地址(需要在服务器用户目录 一般是 /root/.ssh/authorized_keys 配置公钥 并该文件权限为 600, (.ssh文件夹一般默认隐藏)
 // PASSWORD: 密码
 // PORT: 端口
 
 /**
  * 扩展配置
  */
 // BACKUP: 是否备份,默认false
 // DELETE_LOCAL_PACKAGE: 成功后是否删除本地压缩包,默认false
 // BUILD_SHELL: 是否启动自动上传前编译,如果启用,填入编译命令
 // LOADINGSTYLE: 进度动画,默认为 arrow4 加载动画 有 dots 至 dots12 如 dots6,line ,pipe , star, arrow 至 arrow4 等等
 // EXTENDS: 任务结束后,有时有的操作需要其他命令支持,可以使用扩展,填入自己要用的命令数组.例如:['cd demo', 'rm -rf *']