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

jet-deploy

v1.1.1

Published

应用文件远端部署工具

Downloads

18

Readme

Jet-Deploy

对于前后端分离的项目,使用 Vue、React、Angular 构建完成的单页面应用,或是包含 html 页面的静态资源,亦或任意格式的文件资源,Jet-Deploy 可以帮助你将要发布的文件快速上传到远程服务器的指定目录,高效协助项目应用的测试、或部署。

全局安装

yarn global add jet-deploy #或者 npm install jet-deploy -g

全局使用

➜  react-demo ➜  jet-deploy --help
Usage: index [options]

Options:
  -V, --version              output the version number
  -h --host [ip]             服务器地址 (default: "")
  -p --port [number]         服务器端口 (default: 0)
  -u --user [string]         服务器用户名 (default: "")
  -P --password [string]     服务器密码 (default: "")
  -r --remotePath [string]   服务器目标路径 (default: "")
  -i --includeHtml [string]  是否包含 html 文件 (default: true)
  -h, --help                 output usage information

基本功能

# 将当前目录下的所有文件上传到远程服务器
jet-deploy

# 将当前目录下的 dist 目录中的所有文件上传到远程服务器
jet-deploy dist

# 将 /User/furic/wwww/project-demo/dist 目录下所有文件上传到远程服务器
jet-deploy /User/furic/wwww/project-demo/dist

# 将当前目录下的 dist 目录中的所有文件上传到远程服务器的 /root/www 目录下
jet-deploy dist -r /root/www #或者 jet-deploy dist -remotePath /root/www

# 将当前目录下的 dist 目录中的所有静态文件(不包括html)上传到远程服务器
jet-deploy dist -i false # 或者 jet-deploy dist --includeHtml false

# 配置默认的服务器参数
jet-deploy dist --host 10.211.55.3 --port 22 --user root --password 123456 --remotePath /root/www

使用示例

➜  react-demo ➜  jet-deploy dist
+--------------------------------------------+
|                                            |
|   欢迎使用jet-deploy应用文件远端部署工具        |
|                                            |
+--------------------------------------------+
? 请填写服务器IP地址: 10.211.55.3
? 请填写服务器端口号: 22
? 请填写服务器用户名: root
? 请填写服务器密码: [hidden]
? 请填写服务器目标路径: /root/www
成功上传:asset-manifest.json
成功上传:favicon.ico
成功上传:index.html
成功上传:manifest.json
成功上传:precache-manifest.4181eb8e15bbf21d18c638b21a1f5735.js
成功上传:service-worker.js
成功上传:lib/es6-promise.min.js
成功上传:lib/fastclick.js
成功上传:static/css/2.f7b7b57a.chunk.css
成功上传:static/css/index.a0329fdf.chunk.css
成功上传:static/js/2.f3063d09.chunk.js
成功上传:static/js/2.f3063d09.chunk.js.LICENSE.txt
成功上传:static/js/2.f3063d09.chunk.js.map
成功上传:static/js/index.d2342c63.chunk.js
成功上传:static/js/runtime-index.dd1f1907.js
deploy succeed.

项目中本地安装

yarn add jet-deploy -D #或者 npm install jet-deploy --save-dev

项目中本地使用

在项目的package.json文件中配置scripts

{
  "name": "project-demo",
  "scripts": {
    "deploy": "jet-deploy dist --host 10.211.55.3 --port 22 --user root --password 123456 --remotePath /root/www"
  }
}

执行:

yarn deploy #或者 npm run deploy

如果不便于公开服务器密码,--password参数可以省略,将在命令行中动态输入服务器密码。

License

MIT

Copyright (c) 2020-present, chanjet-fe.