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

@icode-js/icode

v2.1.5

Published

icode命令更加方便的使用git操作管理项目,并支持gitlab/gitee/github以及企业内部gitlab

Downloads

41

Readme

icode-js

集成基于github/gitee/gitlab/公司内部gitlab提交操作并支持动态更改项目仓库 支持自定义公司内部gitlab项目管理。简化操作,上手简单,只需一条命令提交多个仓库,自动进行拉取、合并、冲突检查。后续将会加入云构建等。
在第一次使用的时候会又一些配置这个是正常的 比如配置当前项目应该用哪个平台, 配置tokentoken在这里说明一下 作者并不会获取你的token都是存储在本地的请放心'食用'

下载

npm install -g icode-js
// 如果是mac/linux用户请提权安装,win系统用户不需要
sudo npm i -g icode-js

在终端中输入icode --help 出现使用帮助 那就🎉恭喜您可以使用了

command命令

checkout

checkout <branchName> [baseBranchName] [-p] [-pm]

  • -p, --pushOrigin: 创建分支并提交到远程

  • -pm, --pullMainBranch: 是否同步主分支

    用于切换分支或者是新建分支. 如果本地已经有这个分支就会直接切换并检查远程有没有这个分支,如果远程没有就结束,如果远程有就会拉取 如果本地没有这个分支就会基于第二个参数新建分支,如果没有写将会以主分支为主进行新建 如果本地没有远程有也会新建并同步

push

push [branchName...] [-pm] [-o][-m] [-y] [--refreshGitServer] [--refreshGitToken] [--notPushCurrent]

  • -pm, --pullMainBranch: 是否同步主分支
  • -m, --message: 提交说明
  • -y, --yes: 询问项都是yes
  • -o, --origin: 是否使用远程合并方案 仅仅支持gitlab系列
  • --refreshGitServer: 更换托管平台
  • --refreshGitToken: 更换托管平台Token
  • --notPushCurrent: 不提交当前分支到远程

默认是本地进行切换分支合并提交远程,对于受保护的分支将会直接进行跳过,如果是远程合并方案,有受保护的分支将会去获取有权限的人并提交合并请求. 如果需要使用 -y 参数, 建议跟 -m 一起使用

tag

tag

上线后进行打tag 目前内置了一种tag方案就是v+时间+版本 后续会加入其他方案并能实现自主配置方案

config

config

进行脚手架的一些配置, 当脚手架执行的时候会在用户主目录生成一个配置文件叫 .icode 用来存储Token/项目信息等 这里说一下给某个项目添加受限制的分支即可,这个选项是为了避免用户在某个项目下没留意当前分支导致合并错误代码的一个功能 比如我们在开发中有test分支dev分支 我们是不应该将这样的分支进行合并到其他分支的 所以我们可以利用这个配置项添加上述两个分支 这样在push的时候就会提示是否继续合并还是只提交当前分支

info

info

这个命令就是查看当前系统的一些环境变量

多环境SSH配置

可以在用户主目录下的.ssh目录下新建config文件

Host github.com
HostName ssh.github.com
User [email protected]
IdentityFile ~/.ssh/xxx // 对应上文件
PreferredAuthentications publickey

Host gitee.com
HostName gitee.com
User xxx
IdentityFile ~/.ssh/xxx // 对应上文件
PreferredAuthentications publickey

问题

  1. 如果出现'检查当前项目关联地址SSH或HTTPS是否可用,如果卡死请直接强制关闭,并检查网络'可能是网络问题导致git ls-remote执行失败了卡死了 所以可以直接中断,切换网络重新尝试
  2. 如果出现提示输入密码但是始终不对的情况请直接回车三次进行下一步设置SSH