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

webpack-robot-webcom-dingtalk-build-info-plugin

v1.1.3

Published

通过企业微信机器人发送构建通知

Downloads

7

Readme

webpack构建后通过webhook自动发消息给企业微信群或者钉钉群

解决jenkins等自动化构建工具构建结束时没有反馈

HOW TO USE

INSTALL

npm install webpack-robot-webcom-dingtalk-build-info-plugin -S

EXAMPLE

EXAMPLE:
    const RobotBuildInfo = require('webpack-robot-webcom-dingtalk-build-info-plugin');
    plugins:[
        ...,
      // new RobotBuildInfo({robot: 'wecom', infoList: [{ ip: 'XXX.16.1.XXX', key: '70a2b2f9-4b11-4cb5-9ba7-050777555XXX', usr: ['1392099XXXX', '@all']}] })
      new RobotBuildInfo({ robot: 'dingtalk', infoList: [{ ip: 'XXX.16.1.XXX', key: '4cf8e6a7ad3f59788c4d730b581a0df224b33357558f50565c0a470855d23XXX', usr: ['1392099XXXX', '@all'] }] })
     ]

##Plugin Param:

| 参数 | 类型 | 必填 | 说明 | | ---- | ---- | ---- |---- | | robot | string | 是 | 机器人类型:'wecom'企业微信 'dingtalk'钉钉 | | infoList | array | 是 |可配置多个群通知 | | ip | string | 是 |指定构建的ip地址 | | key | string | 是 |robot的webhook中的key值 | | usr | array | 是 |通知的手机号列表 |

##特殊说明:

ip:指定构建的ip地址才会启动robot,通常设置为生产模式线上构建的物理地址

key:企业微信群or钉钉群机器人robot的webhook中的key值,key值具体获取方式请移步

1.钉钉自定义机器人接入

2.企业微信自定义机器人接入

usr: 通知的手机号列表,提醒手机号对应的群成员们(@某个成员),@all表示提醒所有人

(钉钉@all状态和手机号通知互斥,配置@all后不会再@配置的群员)

钉钉添加机器人有三种安全设置,本插件不支持加签方式,自定义关键词方式配置关键词可从如下数组中选择['构建','时间','IP','环境','账户','开始','结束']