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

@zhangyunjie/deploy-cli-service

v2.1.1

Published

自动化部署

Downloads

3

Readme

deploy-cli-service 非shell自动部署

注:

不想写核心部分了,对 deploy-cli-service 项目的v1.3.0进行了一些改动,特注于此。如有版权问题,可随时改动。(主要项目不想使用私钥并且密码不想明文😢)

说明

本项目是对 deploy-cli-service 项目初始化以及部署做了一些改动,具体如下

  • 移除bin目录,不打算做成shell脚本命令,我需要在部署后 对接钉钉机器人 ,故部署方法会新增一些HOOK。
  • 新增初始化生成uuid前16位字符
  • 对初始化的deploy.config.js文件中的服务器用户名和密码加密(因为公司直接给了密码,懒得生成ssh的公私密钥),项目初始化自动生成加密密钥和加密偏移(cryptoKey, cryptoIv),这俩个值可以直接解开加密密文,所以务必不要将这个俩个字段的值上传。
  • 本项目暴露了加密方法,开发者可以自行生成cryptoKeycryptoIv(请使用16位16进制的字符),然后进行加密。解密使用deploy.config.js文件中暴露的cryptoKeycryptoIv字段进行内部解密,本项目没有直接暴露解密方法,如有特殊需求,请 查阅 代码

api

doInit 项目初始化生成 deploy.config.js文件

doDeploy 部署

参数 | 参数类型 | 默认值 | 是否必填 | 必须 ----- | ----- | ----- | ----- | ----- env|String|--|是| 部署环境 options|Object|{ startTask(){}, endTask(){} }|否| 部署时的 options.startTask|Function|--|否| 任务开始的callback 返回参数部署环境[env] options.endTask|Function|--|否| 任务结束的callback 返回参数部署环境[env]

doEncryption 通过 deploy.config.js 配置文件中的 cryptoKeycryptoIv,生成需要加密的密文