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

rfhouse-html

v1.1.0

Published

> 手动触发jeknis构建

Downloads

2

Readme

手动触发jeknis构建

  • 1.yarn install 下载依赖包
  • 2.yarn dev 触发jenkis构建开发环境dev_branch分支
  • 3.yarn test 触发jenkis构建测试环境dev_branch分支
  • 4.yarn test:tag 触发jenkis构建测试环境tag分支分支(优势就是可以在当前分支自动打tag进行构建不需要合并代码)
    Usage:node jenkins [options] [command]

    这是一个命令行工具

    Options:
    -V, --version                  output the version number
    -project,--project [name]      build you develop project name
    -token,--apitoken [apitoken]   send your api token
    -author,--author [name]        send your author
    -trigger,--triggerName [name]  send your triggerName
    -branch,--gitBranch [name]     send your gitBranch/tags
    -h, --help                     display help for command

    Commands:
    setup [env]                    run setup commands for all envs
    help [command]                 display help for command

    Examples:
    $ custom-help --help
    $ custom-help -h
    
   代码执行模块:
    "dev": "node jenkins --project rfhouse-html-dev --gitBranch */dev_branch setup dev",
    "test": "node jenkins --project rfhouse-html-test-bytag --gitBranch */dev_branch setup test",
    "build": "node jenkins --project rfhouse-html-bytag --branch xx setup build",
    "test:tag": "node jenkins --project rfhouse-html-test-bytag --autotag true setup test"

   逻辑解析:
   -> node 执行 jenkins.js 
   -> 然后传入参数 
    --project yourproject(ex:rfhouse-html-test-bytag) 
    --gitBranch yourbranch/yourtagname(ex:*/dev_branch||refs/tags/d20207281029) 
    --autotag true (ex:自动创建tag refs/tags/d20207281029) 
   -> npm run test 将你的测试分支构建去服务器

注意

  • 默认不传为dev_branch
  • 正式环境的jenkis还是手动或者传入分支进行构建 xx替换为生成分支/tag
  • 之前的jenkis直接点击构建不影响
  • 目前生成构建暂不支持默认分支构建 如有需要请慎重传入tag/分支构建
  • 无法使用git命令的同学 注意查看配置git命令 http://note.youdao.com/s/SUkvR3kJ
  • 配置jenkis环境项目http://note.youdao.com/s/Gl79RraM