All Projects → frontsideair → Yarnhook

frontsideair / Yarnhook

Licence: mit
Run `yarn install`, `npm install` or `pnpm install` on git hooks automatically

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Yarnhook

Ngx Smart Modal
Modal/Dialog component crafted for Angular
Stars: ✭ 256 (+44.63%)
Mutual labels:  hacktoberfest, npm, yarn
Marketplace Partners
Image validation, automation, and other tools for DigitalOcean Marketplace partners and Custom Image users
Stars: ✭ 139 (-21.47%)
Mutual labels:  command-line, hacktoberfest
Foxy
A fast, reliable, and secure NPM/Yarn bridge for Composer
Stars: ✭ 137 (-22.6%)
Mutual labels:  npm, yarn
Klap
zero config, zero dependency bundler for tiny javascript packages
Stars: ✭ 143 (-19.21%)
Mutual labels:  npm, yarn
Npmcharts.com
Compare npm package downloads over time
Stars: ✭ 129 (-27.12%)
Mutual labels:  hacktoberfest, npm
Progressbar
A really basic thread-safe progress bar for Golang applications
Stars: ✭ 2,212 (+1149.72%)
Mutual labels:  command-line, hacktoberfest
Yerna
A Lerna-like tool for managing Javascript monorepos using Yarn
Stars: ✭ 140 (-20.9%)
Mutual labels:  npm, yarn
Spectre.cli
An extremely opinionated command-line parser.
Stars: ✭ 121 (-31.64%)
Mutual labels:  command-line, hacktoberfest
Tbify
使用淘宝镜像运行命令: tbify [nvm|npm|npx|yarn|pnpm|...]
Stars: ✭ 153 (-13.56%)
Mutual labels:  npm, yarn
Sass Recipes
Sass things that I do all the time or should remember to do because googling tutorials gets old
Stars: ✭ 156 (-11.86%)
Mutual labels:  npm, yarn
Defu
Assign default properties, recursively. 🌊
Stars: ✭ 161 (-9.04%)
Mutual labels:  npm, yarn
Vscode Deploy Reloaded
Recoded version of Visual Studio Code extension 'vs-deploy', which provides commands to deploy files to one or more destinations.
Stars: ✭ 129 (-27.12%)
Mutual labels:  npm, yarn
Tiny Package Manager
Learn how npm or Yarn v1 works.
Stars: ✭ 125 (-29.38%)
Mutual labels:  npm, yarn
Script Progress
Estimate script execution time
Stars: ✭ 175 (-1.13%)
Mutual labels:  npm, yarn
Http Server
a simple zero-configuration command-line http server
Stars: ✭ 11,280 (+6272.88%)
Mutual labels:  command-line, hacktoberfest
Pueue
🌠 Manage your shell commands.
Stars: ✭ 2,471 (+1296.05%)
Mutual labels:  command-line, hacktoberfest
React D3 Speedometer
✨ ⚛️ React Speedometer component using d3.js 🌈 🎨
Stars: ✭ 162 (-8.47%)
Mutual labels:  npm, yarn
Cheatsheets
A curated list of everything I look up more than twice
Stars: ✭ 109 (-38.42%)
Mutual labels:  npm, yarn
Kymsu
Keep Your macOs Stuff Updated (KYMSU)
Stars: ✭ 119 (-32.77%)
Mutual labels:  npm, yarn
Verdaccio
📦🔐 A lightweight Node.js private proxy registry
Stars: ✭ 12,667 (+7056.5%)
Mutual labels:  npm, yarn

yarnhook npm version

yarnhook

yarnhook keeps your node_modules up-to-date when your yarn.lock, package-lock.json or shrinkwrap.yaml changes due to git operations like checkout, merge, rebase, pull etc.

Easy installation

You can install yarnhook to your project with mrm.

npx mrm yarnhook

Manual installation

This package should be used with husky.

yarn add --dev yarnhook husky
# or
npm install --save-dev yarnhook husky
# or
pnpm install --save-dev yarnhook husky

Configuration

You should let yarnhook handle git hooks that change the dependencies. Example package.json is as follows:

{
  "husky": {
    "hooks": {
      "post-checkout": "yarnhook",
      "post-merge": "yarnhook",
      "post-rewrite": "yarnhook"
    }
  }
}

Flags

Prepend these flags to your git command to use them.

  • YARNHOOK_BYPASS: Run git command bypassing yarnhook completely
  • YARNHOOK_DEBUG: Print debug information
  • YARNHOOK_DRYRUN: Don't install dependencies, only notify

An example:

YARNHOOK_BYPASS=true git checkout feature-branch

Artwork

Project logo: @anilkilic

Font: PT Sans

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].