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

@jayphbee/pi_cli

v1.0.0

Published

* pi_demo + pi_sys + pi_build + pi_gui + pi_pt + pi_demo + scripts * pi_demo.conf * git_pull.bat * git_install.bat

Downloads

2

Readme

项目脚手架工具

项目目录结构

  • pi_demo
    • pi_sys
    • pi_build
    • pi_gui
    • pi_pt
    • pi_demo
      • scripts
        • pi_demo.conf
        • git_pull.bat
        • git_install.bat

新人获取代码,新建 目录 pi_demo,在里面操作:

  • git clone http://192.168.31.241:10080/tech/pi_demo
  • cd scripts
  • ./git_install.bat
    • npm -i -g pi_cli@latest 淘宝镜像
  • ./git_pull.bat
    • pi_cli ./pi_demo.conf

git的nodejs库

https://github.com/steveukx/git-js

需求

  • 获取代码
    • 本地找不到目录,clone:指定 url-本地路径-分支|tag|hash
    • 本地找到目录,如果git status不是想要的:pull | checkout:指定 url-本地路径-分支|tag|hash
  • 分支 或 tag 或 hash
    • 对项目git库,一般都是 获取 给定分支 的最新版本
    • 对底层git库,一般都是 获取 给定tag的代码

tag 字段 | branch 字段 | commit_hash 字段

  • 注意: 两种字段,不能共存,需要加配置合法性判断
  • 有tag,更新到对应的tag版本,失败则报错
  • 有branch:指定的分支对应最新版本,失败则报错
  • 有commit_hash:指定的分支对应最新版本,失败则报错
  • 都没有:报错

参考的 命令行 用法

*.conf 一般放到项目的scripts目录下;

node git_update.js ./project.conf ./lib.conf

*.conf 范本


[{
    "path": "../../pi_sys",
    "url": "http://192.168.31.241:10080/tech/pi_sys.git",
    "branch": "master"
}, {
    "path": "../../pi_build",
    "url": "http://192.168.31.241:10080/tech/pi_build.git",
    "tag": "1.0"
}, {
    "path": "../../pi_gui",
    "url": "http://192.168.31.241:10080/tech/pi_gui.git",
    "branch": "master"
}, {
    "path": "../../pi_sys",
    "url": "http://192.168.31.241:10080/tech/pi_sys.git",
    "branch": "master"
}, {
    "path": "../../pi_babylon",
    "url": "http://192.168.31.241:10080/tech/pi_babylon.git",
    "branch": "master"
}, {
    "path": "../../pi_pt",
    "url": "http://192.168.31.241:10080/tech/pi_pt.git",
    "branch": "master"
}]