LoginSignup
0
0

More than 3 years have passed since last update.

yorkieを利用してVueのプロジェクトにgit hookを導入する

Posted at

Gitのhookとは

gitにはコマンドを実行する前後にスクリプトを走らせるhookという仕組みが存在します。
詳しくはここをご覧ください。
開発でgitを使うのはまあ当たり前なので、覚えておくべきことだと思います。

yorkieとは

npmのパッケージの一つで、なぜかVue2.0だと勝手に入ってきます。なので改めてインストールする必要はありません。
このパッケージはpackage.jsonにgit hookを書けるようにするものです。

書き方

"gitHooks": {
    "post-commit": "git push origin master"
  },

このようにgit hookと同じ名前のキーを設定してコマンドを書くだけです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0