Skip to content

Instantly share code, notes, and snippets.

@hell0again
Created December 5, 2014 11:53
Show Gist options
  • Save hell0again/ff20f437f28e4862db4a to your computer and use it in GitHub Desktop.
Save hell0again/ff20f437f28e4862db4a to your computer and use it in GitHub Desktop.
自作yeomanテンプレートの使い方(cli-appの例)
$ cd git
$ mkdir mycommand; cd mycommand
$ npm init
$ npm install hell0again/generator-cli-app # <github username>/<github project>
$ yo # or yo cli-app
## yeamonに言われるがままにコマンド名を指定
## package.jsonは上書き。
## cli-appなら↓でコマンドを実行可能に。
$ npm install -g コマンド名
$ コマンド
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment