Created
December 5, 2014 11:53
-
-
Save hell0again/ff20f437f28e4862db4a to your computer and use it in GitHub Desktop.
自作yeomanテンプレートの使い方(cli-appの例)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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