Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

⚙️ oh-my-zsh aliases for common pnpm commands.

License

NotificationsYou must be signed in to change notification settings

ntnyq/omz-plugin-pnpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oh-my-zsh aliases for commonpnpm commands.

Installation

Oh My Zsh

  1. Clone the repository:
git clone --depth=1 https://github.com/ntnyq/omz-plugin-pnpm.git${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/pnpm
  1. Include it in your~/.zshrc:
plugins=(... pnpm)

Zinit

Add script bellow to your~/.zshrc

zinit light ntnyq/omz-plugin-pnpm

Others

PRs are always welcome!

Global scripts directory

This feature is copied fromomz-plugin-yarn

Adding pnpm global scripts dir (commonly ~/Library/pnpm) to the$PATH.

To disable this feature, set the following style in your .zshrc:

zstyle ':omz:plugins:pnpm' global-path no

Aliases

AliasCommandDescription
ppnpmThe pnpm command
pexpnpm execExecute a shell command in scope of a project
pdxpnpm dlxFetch a package without installing, hotload and run it's command
papnpm addInstall a package in dependencies (package.json)
padpnpm add --save-devInstall a package in devDependencies (package.json)
prmpnpm removeRemove installed packages
plspnpm listList installed packages
pappnpm add --save-peerInstall a package in peerDependencies (package.json)
pgapnpm add --globalInstall packages globally on your operating system
pglspnpm list --globalList global installed packages
pgrmpnpm remove --globalRemove global installed packages from your OS
pgupnpm update --globalUpgrade packages installed globally to their latest version
pipnpm initInteractively creates or updates a package.json file
pinpnpm installInstall dependencies defined inpackage.json
pinfpnpm install --frozen-lockfileInstall dependencies defined inpackage.json without touching lockfile
prpnpm runRun a defined package script
prunpnpm runRun a defined package script
pstpnpm startRun the start script defined inpackage.json
plnpnpm run lintRun the lint script defined inpackage.json
pdocspnpm run docsRun the docs script defined inpackage.json
pfmtpnpm run formatRun the format script defined inpackage.json
pbpnpm run buildRun the build script defined inpackage.json
pdpnpm run devRun the dev script defined inpackage.json
psvpnpm run serveRun the serve script defined inpackage.json
ptpnpm testRun the test script defined inpackage.json
ptcpnpm test --coverageRun the test script defined inpackage.json with coverage
pupnpm updateUpdate packages to their latest version based on the specified range
puipnpm update --interactivePrompt for which outdated packages to their latest version based on the specified range
puilpnpm update --interactive --latestPrompt for which outdated packages to upgrade to the latest available version
pcpnpm createCreate a project from a create-* start kit
ppubpnpm publishPublish a package to the registry
pabpnpm approve-buildsApprove dependencies for running scripts during installation
pfpnpm -r --filterUse filter in monorepo root directory

CHANGELOG

2025-02-15

  • New aliases
    • pab forpnpm approve-builds

2024-05-23

  • New aliases
    • pinf forpnpm install --frozen-lockfile

2024-04-13

  • Features
    • SetPNPM_HOME environment variable to global bin dir

2024-03-13

  • New aliases
    • pui forpnpm update --interactive

2023-08-14

  • New aliases
    • pfmt forpnpm run format

2023-03-15

  • Features
    • Add pnpm global scripts dir to$PATH

2022-12-16

  • New aliases
    • pr forpnpm run

2022-09-24

  • New aliases
    • pf forpnpm -r --filter

2022-07-15

  • Removed aliases
    • pun forpnpm uninstall. Useprm instead.
    • px forpnpx. It's deprecated. Usepex andpdx instead.
    • pui forpnpm update --interactive. Usepu andpuil instead.
    • pdoc forpnpm run doc. Maybe rename your scripts todocs and usepdocs instead.
    • psv forpnpm server.
    • ph forpnpm help.
    • pout forpnpm outdated.
    • pau forpnpm audit.
    • pwhy forpnpm why.
  • Changed aliases
    • pup forpnpm update has been renamed topu.
    • ps forpnpm run serve has been renamed topsv. Seeissue #6
  • New aliases
    • pex forpnpm exec.
    • pdx forpnpm dlx.

[8]ページ先頭

©2009-2025 Movatter.jp