0.1.16 • Published 20 days ago

@simon_he/pi v0.1.16

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

📖 Table of Contents

🍭 PI

PI is an intelligent package manager with beautiful custom loading styles, providing a better visual experience when installing dependencies. It can intelligently identify project environments, fuzzy match commands, and find deep-nested instructions, greatly improving development efficiency.

🚀 Smart Package Manager

PI supports package management for multiple environments:

  • Go: Supports dependency installation, uninstallation, execution, and packaging with go mod
  • Rust: Supports dependency installation, uninstallation, execution, and packaging with Cargo
  • Node.js: Supports dependency installation, uninstallation, and execution with npm, pnpm, and yarn
  • Python: Supports Python file execution
  • Monorepo: Automatically identifies and handles differences between yarn and pnpm workspaces, fixing monorepo installation issues

📷 Examples

pi - Install Dependencies

Install Dependencies Example

Install Dependencies Animation

pil - Install the latest dependencies

Example of running a command

pui - Uninstall Dependencies

Uninstall Dependencies Example

pci - Clear Cache

Clear Cache Example

prun - Run Commands

Run Commands Example

Run Commands Animation

pfind - Find Commands

Find Commands Animation

Other Features

Other Features Animation

📱 Language

# Set environment variables in your bash or zsh configuration file

# Chinese
export PI_Lang=zh

# English
export PI_Lang=en

:gear: Install

  npm i -g @simon_he/pi

:open_hands: Usage

  # According to the environment of the current directory to analyze which package manager to use,go、rust、pnpm、yarn、npm
  # Install dependencies
  pi xxx
  # Uninstall dependencies
  pui xxx
  # Execute command
  prun
  # Execute scripts in workspace
  # Execute index.js | index.ts in js | ts files or directories
  # Execute main.go in go files or directories
  # Execute main.rs in rust files or directories
  # Execute main.py in python files or directories
  pfind
  # Initialization
  pinit
  # build - for cargo, go
  pbuild
  # pci

Power

The current environment is npm | yarn | pnpm, and it supports passing some args --silent

  • prun dev The dev command in the current package.json
  • prun If no command is specified, provide all scripts command options under the current package
  • prun playground, provide all scripts command options under the current package

The current environment is go

  • prun message, it will find message.go first, if not found, it will find message/main.go to execute

The current environment is rust

  • prun executable cargo run

workspace of pnpm | yarn

  • pfind Select the package under the current workspace, and then select the corresponding command

:monocle_face: Feature

<-- Go -->
 ## input folder and executor command
 prun  # default executor main.go
 prun table # if table.go exists, executor table.go else executor table/main.go. and table can under any folder. For example, examples/table/main.go will also be found and executed
<-- Go -->

:bulb: Custom configuration

You can configure the loading style in .zshrc, as follows:

export PI_COLOR=red # loadingstyle color
export PI_SPINNER=star # loadingstyle
export PI_DEFAULT=pnpm # If the current project does not set the installed package manager, you can set the default installation here
  • 70+ types of styles, from cli-spinners,You can choose to fill in the name in PI_SPINNER.
  • Color options: 'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'gray', Fill in PI_COLOR.

:battery: Dependency

License

MIT License © 2022 Simon He

0.1.16

20 days ago

0.1.10

3 months ago

0.1.11

3 months ago

0.1.12

3 months ago

0.1.13

2 months ago

0.1.14

2 months ago

0.1.15

26 days ago

0.1.0

4 months ago

0.1.2

4 months ago

0.1.1

4 months ago

0.1.8

3 months ago

0.1.7

3 months ago

0.1.9

3 months ago

0.1.4

3 months ago

0.1.3

3 months ago

0.1.6

3 months ago

0.1.5

3 months ago

0.0.95

5 months ago

0.0.96

5 months ago

0.0.98

5 months ago

0.0.99

4 months ago

0.0.94

7 months ago

0.0.93

9 months ago

0.0.92

9 months ago

0.0.87

1 year ago

0.0.88

1 year ago

0.0.89

12 months ago

0.0.90

12 months ago

0.0.91

12 months ago

0.0.86

1 year ago

0.0.85

1 year ago

0.0.84

1 year ago

0.0.83

1 year ago

0.0.82

1 year ago

0.0.80

2 years ago

0.0.81

2 years ago

0.0.79

2 years ago

0.0.73

2 years ago

0.0.74

2 years ago

0.0.75

2 years ago

0.0.76

2 years ago

0.0.77

2 years ago

0.0.78

2 years ago

0.0.70

2 years ago

0.0.71

2 years ago

0.0.72

2 years ago

0.0.64

2 years ago

0.0.65

2 years ago

0.0.66

2 years ago

0.0.67

2 years ago

0.0.68

2 years ago

0.0.62

2 years ago

0.0.63

2 years ago

0.0.60

2 years ago

0.0.61

2 years ago

0.0.59

2 years ago

0.0.58

2 years ago

0.0.40

2 years ago

0.0.41

2 years ago

0.0.42

2 years ago

0.0.43

2 years ago

0.0.44

2 years ago

0.0.45

2 years ago

0.0.46

2 years ago

0.0.47

2 years ago

0.0.38

2 years ago

0.0.39

2 years ago

0.0.51

2 years ago

0.0.52

2 years ago

0.0.53

2 years ago

0.0.54

2 years ago

0.0.55

2 years ago

0.0.56

2 years ago

0.0.57

2 years ago

0.0.50

2 years ago

0.0.48

2 years ago

0.0.49

2 years ago

0.0.25

2 years ago

0.0.37

2 years ago

0.0.30

2 years ago

0.0.31

2 years ago

0.0.32

2 years ago

0.0.33

2 years ago

0.0.34

2 years ago

0.0.35

2 years ago

0.0.36

2 years ago

0.0.26

2 years ago

0.0.27

2 years ago

0.0.28

2 years ago

0.0.29

2 years ago

0.0.20

3 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.24

2 years ago

0.0.15

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

0.0.18

3 years ago

0.0.19

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago