1.1.18 • Published 19 days ago

@tickh/pi v1.1.18

Weekly downloads
-
License
MIT
Repository
github
Last release
19 days ago

pi

Make your package management tools easy

Stargazers over time

Stargazers over time

installation

pnpm add @tickh/pi -g

warning

Destructive changes have occurred since version 0.9.2 or above 1. Ditching the original scheduling system for a smarter brain map 2. add -> ad 3. addf -> adf 4. addw -> adw 5. bb -> pb

Brain map function introduction

  • When you first enter a new project, execute commands like pi -Y or pi -P or pi -N to specify a package manager for your current project,PI generates a brain map.
  • MAC users do not need to be any redundant configuration, but win in the global configuration file users need to join piBranchPath configuration items, such as D: / piSetting /. PiBranchPath. Yaml, specifies the directory in which the PI maps generated, I know this is really troublesome, but there is no other good way for WIN users. If you know a better way, please let me know.
  • When you want to switch a package manager for your project, run the pi -Y or pi -P or pi -N command again.
  • pi brain You can look at the brain map

alias

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

Add new commands

If you want to add your favorite commands to PI.

All you need to do is find the options object in the agents.ts file and add it in the same format as above. Once added, simply run pnpm run auto and it will generate the subsequent files needed for the configuration,

In short, you just configure it and the code is automatically generated.

Specify the package manager at runtime

If you want to run npm, you just need to add -N or --npm arguments to your command. If you want to run yarn, you just need to add -Y or --yarn arguments to your command. If you want to run pnpm, you just need to add -P or --pnpm arguments to your command.

Intelligent operation

In the execution of pr <alias>, fuzzy matching will be performed on all instructions in PKG, and the instructions with high matching degree will be run.

Run the pi sc command to view all commands configured in the PKG

configuration

MAC users can set the global configuration file at ~/.pirc

There are two steps for a Windows user to set up a global profile

  • Running pi --set-config {path} {path} is the path to your configuration file
  • Run the pi --get-config command to check whether the configuration is successful

You can also set a separate configuration file for your project by creating a .pircfile in the root directory of your project.

The weight of the configuration is Project > Global > Default

# .pirc

# default: false
skipVersionTesting=true // This skips the tool is built-in version checking

piBranchPath='' // This is the catalog of brain map generation

Intercept the script

pi list # Show all the instructions of PI

pi uv # Automatically update the PI version

pi -v # Displays the current PI version

Specifies elevations of existing package versions

pi -u vue next # Update the VUE version to the next version
pi -u vue n # Shorthand for the above

pi -u vue 3.2.3 # Update the VUE version to the specified version
pi -u vue v3.2.3
pi -u vue V3.2.3

Special instructions

thanks!

灵感来自于 antfu 大佬的 ni,非常感谢!希望大家给 pi 点 star 前先给 ni 点star .

1.1.18

19 days ago

1.1.17

11 months ago

1.1.16

1 year ago

1.1.11-beta.1

2 years ago

1.1.11-beta.0

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.14-beta.0

2 years ago

1.1.14-beta.1

2 years ago

1.1.14-beta.2

2 years ago

1.1.15

1 year ago

1.1.14-beta.3

2 years ago

1.1.14

2 years ago

1.1.12-beta.0

2 years ago

1.1.13

2 years ago

1.1.12-beta.1

2 years ago

1.1.8-beta.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.10

2 years ago

1.0.9

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.1.6-beta.1

2 years ago

1.1.6-beta.2

2 years ago

1.1.6-beta.3

2 years ago

1.1.6-beta.4

2 years ago

1.1.6-beta.0

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.12

2 years ago

1.0.2

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.9.16

2 years ago

0.9.15

2 years ago

0.9.14

2 years ago

0.9.13

2 years ago

0.9.12

2 years ago

0.9.11

2 years ago

0.9.10

2 years ago

0.9.9

2 years ago

0.9.8

2 years ago

0.9.7

2 years ago

0.9.6

2 years ago

0.9.5

2 years ago

0.9.4

2 years ago

0.9.3

2 years ago

0.9.2

2 years ago

0.9.1

2 years ago

0.9.0

2 years ago

0.8.10

2 years ago

0.8.2

2 years ago

0.8.2-beta.2

2 years ago

0.8.2-beta.1

2 years ago

0.8.2-beta.0

2 years ago

0.8.1

2 years ago

0.8.0

2 years ago

0.7.16-beta.5

2 years ago

0.7.16-beta.4

2 years ago

0.7.16-beta.3

2 years ago

0.7.16-beta.2

2 years ago

0.7.16-beta.1

2 years ago

0.7.16-beta.0

2 years ago

0.7.15

2 years ago

0.7.14

2 years ago

0.7.13

2 years ago

0.7.12

2 years ago

0.7.11

2 years ago

0.7.9

2 years ago

0.7.8

2 years ago

0.7.8-beta.0

2 years ago

0.7.7

2 years ago

0.7.7-beta.0

2 years ago

0.7.6

2 years ago

0.7.5

2 years ago

0.7.4

2 years ago

0.7.3

2 years ago

0.7.2

2 years ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.7

2 years ago

0.6.6

2 years ago

0.6.5

2 years ago

0.6.4

2 years ago

0.6.3

2 years ago

0.6.2

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.9

2 years ago

0.5.8

2 years ago

0.5.7

2 years ago

0.5.6

2 years ago

0.5.5

2 years ago

0.5.4

2 years ago

0.5.3

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.8

2 years ago

0.4.7

2 years ago

0.4.6

2 years ago

0.4.5

2 years ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.47

2 years ago

0.0.46

2 years ago

0.0.45

2 years ago

0.0.44

2 years ago

0.0.43

2 years ago

0.0.42

2 years ago

0.0.41

2 years ago

0.0.40

2 years ago

0.0.39

2 years ago

0.0.38

2 years ago

0.0.37

2 years ago

0.0.36

2 years ago

0.0.35

2 years ago

0.0.34

2 years ago

0.0.33

2 years ago

0.0.32

2 years ago

0.0.31

2 years ago

0.0.30

2 years ago

0.0.29

2 years ago

0.0.28

2 years ago

0.0.27

2 years ago

0.0.26

2 years ago

0.0.25

2 years ago

0.0.24

2 years ago

0.0.22

2 years ago