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

@yangin/cli-devops

v1.3.1

Published

a cli library for devops

Downloads

2

Readme

CLI-DEVOPS

A Cli Library For Devops

Installation

# 全局使用
npm install @yangin/cli-devops -g
# 项目中使用
npm install @yangin/cli-devops -D

Usage

# 查看相关命令信息
devops --help

# 管理Jenkins
devops jenkins

# 管理Gitlab
devops gitlab

# 管理auth
devops auth <command>

# 管理本地git
devops git <command> [tag]

# 管理cache
devops cache <command>

# zip
devops zip <dir> [-v | -n | -d |-t]

Table of Contents

Jenkins

基于Jenkins API, 管理Jenkins

  • 导出所有配置信息(1个文件夹,包含一个完整配置信息的config.xml)
  • 导出Git配置信息(包含git.json、no-git.json)
  • 输出当前已自动化构建的项目
  • 批量更新Git Branch(基于配置文件,配置文件样本会在执行失败时会自动生成)
  • 基于JobName添加Git自动化构建配置(同步到Gitlab)
  • 拷贝并创建一个新项目

Gitlab

基于GitLab API,管理Gitlab

  • 批量更新分支
  • 导出所有仓库信息

Auth

管理Sever登录授权(包括Jenkins、Gitlab)

# 登录auth
devops auth login
# 注销auth
devops auth logout
# 查看当前已登录auth清单
devops auth list

Git

管理本地的Git操作

# 基于package.json version打tag
devops git tag
# 基于package.json version打tag并push到远程
devops git tag-push
# 删除本地与远程上的指定tag
devops git tag-delete <version>

Cache

管理本地的缓存,缓存文件地址 ~/.cache/@pplmc/clo-devops

# 清空缓存
devops cache clear

zip

压缩目录成.zip格式,根据指定规则自动生产包名

  • -t, --time: 根据时间生成包名(默认),如 admin_20220506145701.zip
  • -d, --data: 根据日期生成包名,当天重复打包会依次递增,如 admin_20220506_1.zip
  • -n, --name: 根据package.json中的name生成包名,当天重复打包会依次递增尾号,如 admin_1.zip
  • -v, --version: 根据package.json中的version生成包名,如 admin_1_0_0.zip
# 根据版本号生成包名
devops zip dist -v