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

@ele-cloud/deploy

v0.0.8

Published

ele cloud deploy script

Downloads

4

Readme


执行 “一句” shell,将构建文件直接部署至前端资源服务器。

现如今,全税部门项目日益增多,每个项目开发完成后,需要手动构建并将文件包发送给运维同学部署。测试环境、生产环境,每次部署都会听到运维向你呼喊:“同学,**项目前端打个包发我一份”,那么为了规避这种现象,我们的 ele-deploy 应运而生。只需一个命令,将前端包部署至资源系统,想要最新包,那你就去下👋。

资源服务器地址

安装

npm install --save @ele-cloud/deploy

使用说明

针对全税部门,我们将前端项目分为两类:

  1. react
  2. vue

react示例

package.json

"scripts": {
  //...
  "deploy": "matriks2 dest && ele-deploy --company 大象产品线 --project declare-react.tar.gz --react"
 }

vue示例

package.json

"scripts": {
  //...
  "deploy": "npm run build && ele-deploy --company 大象产品线 --project declare-vue.tar.gz"
 }

配置完成后,在项目根目录下运行 npm run deployyarn deploy ,开始进行部署。

配置参数

  • -c | --company : 项目公司名称
  • -p | --project : 项目文件包名称 (支持三种后缀名格式:.zip .tar .tar.gz
  • --react : 是否为 react 项目 (默认:否)
  • -d | --debug: 查看更多信息

其他说明

ele-deploy 应用华为云Nodejs SDK,进行obs操作,并通过cdn来提升访问速度。