A devtool improve your pakage manager use experience no more care about what package manager is this repo use; one line, try all.

Related tags

Learning resource pi
Overview

pi

A devtool improve your pakage manager use experience

no more care about what package manager is this repo use;

one line, try all.

Stargazers over time

Stargazers over time

安装

pnpm add @tickh/pi -g

注意

pi 0.9.2 以上版本起发生巨大改变

  1. 放弃了原来的调度系统采用了更智能的脑图
  2. add -> ad
  3. addf -> adf
  4. addw -> adw
  5. bb -> pb

脑图功能介绍

  • 在你第一次进入一个新的项目时,请执行类似于 pi -Ypi -Ppi -N 这样的命令为你的当前项目指定一个包管理器,pi就生成脑图,在后续的使用指令时就不需要加入 -Y-P-N 这样的标识符限制使用的包管理器了。
  • mac 用户不需要再有任何多余配置,但是 win 用户需要在全局配置文件中 加入 piBranchPath 配置项,指定 pi 脑图生成的目录,请不要再 c 盘 因为这样 node 没有读写权限,我知道这样真的很麻烦,但是没有别的什么好的办法针对 win 用户,如果您知道有更好的办法,请告诉我。
  • 当你想要为您的项目切换一个包管理器时,请再次执行 pi -Ypi -Ppi -N 这样的命令。

优先度

pnpm > yarn > npm

alias

# try pi/add ... with `list` flag
pi list

pr

如果你想要在 pi 中加上自己喜欢的命令,那么你可以提pr,pi的 pr 非常简单

你只需要找到 agents.ts 文件中的 options 对象按照以上的格式添加即可。 添加完成后只需运行 pnpm run auto他会生成配置所需的后续文件,生成完毕后你就可以提pr了。就是如此简单。

一句话来说就是,你只管配置,代码自动生成。

运行时指定包管理器

如果你想运行 npm , 你只需要在你命令中加入 -N 或者 --npm 参数即可。
如果你想运行 yarn , 你只需要在你命令中加入 -Y 或者 --yarn 参数即可。
如果你想运行 pnpm , 你只需要在你命令中加入 -P 或者 --pnpm 参数即可。

配置

mac 用户可以在~/.pirc设置全局配置文件。

windows 用户设置全局配置文件需要两个步骤

  • 执行 pi --set-config {path} {path} 则是你的配置文件路径
  • 执行 pi --get-config 查看是否配置成功

还可以设置项目的单独配置文件,设置的方就是在在您的项目的根目录下创建一个 .pirc 文件。

配置的使用权重是 项目配置文件 > 全局配置文件 > 默认配置文件

# .pirc

# default: false
skipVersionTesting=true // 这会跳过工具内置的版本检测

piBranchPath='' // 这是脑图生成的目录

拦截脚本

pi list # 展示pi所有的指令

pi uv # 自动更新 pi 版本

pi -v # 显示当前的 pi 版本

特殊指令

Comments
Owner
tick
tick
Devtool for webpack.

Webpack Inspector Introduction Webpack dev tools to make performance analysis, error investigation and loader development more convenient. Provide the

Modern JS 25 Nov 17, 2022
🛠 Solana Web3 Tools - A set of tools to improve the user experience on Web3 Solana Frontends.

?? Solana Web3 Tools - A set of tools to improve the user experience on Web3 Solana Frontends.

Holaplex 30 May 21, 2022
HackMIT 2022. 2nd Place in Blockchain for Society sponsored by Jump Crypto. A revolutionary web application that leverages machine learning and blockchain technology to improve the crowdsourcing experience!

?? Wikisafe ?? Wikisafe is a revolutionary new crowdsourcing web application that innovates the process of crowdsourcing information. This application

Benson Liu 5 Dec 8, 2022
Download all Moodle files with one click. This is a Chrome extension built to save time and effort from downloading files manually one by one!

Moodle Downloader Extension Moodle downloader extension for Chrome. The extension is tested with both the TUM moodle and the official moodle demo. Not

Zhongpin Wang 8 Nov 15, 2022
It is a solo Project and In this repo I try to build a E-Commerce full-stack website with MERN stack technologies. For Practice purpose.

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

Alok Kumar 5 Aug 3, 2022
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

A free and open source resume builder. Go to App What is this app all about? Reactive Resume is a free and open source resume builder that’s built to

Reactive Resume 9.7k Jan 3, 2023
Here I will add daily one problem with solution basic to advance level and try to add multiple solutions of a single problem.

#100-code-days ?? I am adding daily 1 JavaScript solution here ?? and you can fork the repo for add your solution for any specific probelm ⌛️ Day 01:

Amir Sohel 4 Jan 22, 2022
An IoT bottle that tracks water consumption. Winner of Best Health Hack, MLH's Best Hardware Hack, and QB3's Best Big Data for the Improvement of Health Care Winner at CruzHacks 2022.

An IoT bottle that tracks water consumption. Winner of Best Health Hack, MLH's Best Hardware Hack, and QB3's Best Big Data for the Improvement of Health Care Winner at CruzHacks 2022.

Nathanael Garza 2 Jan 21, 2022
Fix for Object.hasOwnProperty, which normally just returns a boolean, which is not good when you care about strong typing.

Welcome to ts-has-own-property ?? Fix for Object.hasOwnProperty, which normally just returns a boolean, which is not good when you care about strong t

Funtal Foundation 1 Jul 4, 2022
Fix for Object.keys, which normally just returns an array of strings, which is not good when you care about strong typing

Welcome to ts-object-keys ?? Fix for Object.keys, which normally just returns an array of strings, which is not good when you care about strong typing

Funtal Foundation 1 Jul 4, 2022
⚡ the first open-source redis client made with care and acessibility-first 🚀

⚡ Redis UI The first open-source project to create an awesome and accessible UI for Redis as a native desktop application. ✨ ?? ?? How to develop loca

Nicolas Lopes Aquino 14 Dec 5, 2022
fardin 8 Oct 18, 2022
Shikhar 4 Oct 9, 2022
Package fetcher is a bot messenger which gather npm packages by uploading either a json file (package.json) or a picture representing package.json. To continue...

package-fetcher Ce projet contient un boilerplate pour un bot messenger et l'executable Windows ngrok qui va permettre de créer un tunnel https pour c

AILI Fida Aliotti Christino 2 Mar 29, 2022
Autocomplete, diagnostics, hover info & more for the Wally package manager

Wally Utilities This VSCode extension provides some nice-to-haves when using the Wally package manager. The extension can be downloaded from the Visua

Filip Tibell 4 Jul 28, 2022
A VS Code extension to practice and improve your typing speed right inside your code editor. Practice with simple words or code snippets.

Warm Up ?? ??‍?? A VS Code extension to practice and improve your typing speed right inside your code editor. Practice with simple words or code snipp

Arhun Saday 34 Dec 12, 2022
All-in-one package for maptalks webgl layers

@maptalks/gl-layers maptalks webgl 图层的汇总包,包含了@maptalks命名空间下webgl基础设施和所有webgl图层插件。 使用时无需再单独安装和引入其他webgl插件,而可以统一从此包中安装引用。 包含的插件 @maptalks/gl @maptalks/v

Fu Zhen 20 Dec 23, 2022