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

easy-deploy-cli

v2.0.1

Published

2.x 版本有更好的错误处理,更多的命令,更好的提示

Downloads

281

Readme

一个容易的项目部署小工具【2.0.0】。

2.x 版本有更好的错误处理,更多的命令,更好的提示

安装

# 这是一个脚手架,所以请安装到全局
npm i -g easy-deploy-cli

使用

# 在项目文件夹下初始化得到部署模版/deploy/deploy.config.cjs,重复使用init会重置原来的模版。
# 2.x版本会自动将deploy添加之.gitignore
deploy init

# dev 为config中的name值,常见命令值有dev、prod、test等等
deploy run dev

# 跳过项目构建命令,直接使用存在的dist目录压缩上传
deploy run dev -s

# 上传完后立即删除本地dist文件夹
deploy run dev -d

# 用于检查当前config,如zip路径
deploy run dev -c

# 用于测试ssh连接
deploy run dev -ts

deploy.onfig 注意事项以及说明[]

  1. 在环境配置中, name是做为运行命令,请小心填写~
  2. 压缩类型现在只支持 zip。
  3. 模版文件中注释请仔细查看
  4. 若无特别要求,例如:服务器部署文件为 dist时,配置中的 local可不做修改,仅需修改 remote中的 distPathzipPath即可
  5. 配置文件中的 localremote,可以自定义打包文件夹名,压缩包名,如果你需要的话,还可通过 isRetain来保留压缩包,压缩包会自带日期,如 dist-[YYYY-MM-DD-hh-mm-ss].zip
  6. ~~请把 deploy添加到 .gitgnore中~~,现在会在 init 时自动添加

更新日志

  1. 好了,终于可以从原始人到了石器时代了(原始人:手动打包=>ssh 连接=>ftp 上传=>命令解压=>删除,如果要保留 zip,还得手动重命名文件,麻了)
  2. 这个小工具,也就适合这种不怎么严谨,前端居然都能拿到服务器的账号的团队吧~
  3. 不过对于个人项目的个人服务器来说,到也合适,就不用去搞 jenkins什么的了。
  4. 【2024-9-29】其实也没更新啥,只优化了下代码,加了点小功能