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

my-ci

v1.2.2

Published

**Ultra-simplified code deployment tool**

Downloads

27

Readme

my-ci 极简的代码部署工具

Ultra-simplified code deployment tool

几行配置代码,搞定Git分支自动更新,自动执行脚本,自动部署启动。支持Github,Gitee。Automate updating of Git branches, execution of scripts and deployment with just a few lines of configuration code. Supports Github and Gitee.

安装 Install

# 在部署服务器上安装 Installation on the server
npm i -g my-ci

使用 Usage

1、在你的本地项目中创建.my-ci.yml配置文件,并提交git

1. Create a .my-ci.yml configuration file in your local project and commit it to Git.

示例:.my-ci.yml, 可简单兼容gitlab-ci配置

project: project-z
dev-1:
  script:
    - echo "Hello"
    - npm install
  only:
    - /^test_.*/ 

2、在服务器上安装并启动my-ci

2. Install and start My-CI on the server.

npm i -g my-ci
myci start
# running on port 7002

3、在服务器上clone你的项目并初始化my-ci的工作空间

3.Clone your project on the server and initialize My-CI's workspace.

git clone github.com/your/project-z
cd project-z
myci watch

4、配置WebHook

4. Add WebHook

在github或gitee等支持WebHook的Git工具上配置推送链接,URL格式如下:

Configure the push URL link on Git tools that support WebHook, such as GitHub or Gitee. The URL format is as follows:

${your_server_host}:${my_ci_port}/work/${project_name}/build
www.yourserver.com:7002/work/project-z/build

gitee: image github: image

5、成功应用

5.Successfully applied

根据上面配置,本地项目的test_开头分支修改并push后,WebHook触发,服务器上的my-ci服务监听到并自动将project-z切换到test_*分支并执行my-ci.yml中配置好的部署脚本。

According to the configuration above, when the test_* branch of the local project is modified and pushed, the WebHook will be triggered. The my-ci service on the server will automatically switch project-z to the test_* branch and execute the deployment script configured in my-ci.yml.