はじめに
本当は本体に取り込んでもらうべきだけれど,取りあえず修正して使いたい場合に
※ fuse-box を元に
手順
- github 上で fork
- fork したリポジトリを clone でダウンロード
git clone git@github.com:"User"/fuse-box.git
- fork 元を upstream に設定
git remote add upstream https://github.com/fuse-box/fuse-box.git
git fetch upstream
- ブランチを作る
git checkout -b foobar-dev
- build and test
npm run-script test; npm run-script dist
- npm link で global module にする
npm link
- npm link でプロジェクトにインストール(プロジェクトのディレクトリで実行)
npm link fuse-box
開発,修正
git pull upstream
git push origin foobar-dev