-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(help): show version info with --version
- Loading branch information
1 parent
bb4ffb0
commit 23d8bc6
Showing
3 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
const chalk = require('chalk'); | ||
const pjson = require('../package.json'); | ||
|
||
const generate = ` | ||
${chalk.gray('Installed version:')} | ||
v${pjson.version} | ||
${chalk.gray('Upgrade to latest version:')} | ||
$ npm i @aurodesignsystem/wc-generator@latest -g | ||
${chalk.gray('More help:')} | ||
For more help with building an Auro Web Component, | ||
be sure to see ${chalk.blue('https://auro.alaskaair.com/generator')} | ||
${chalk.gray('Options:')} | ||
-h, --help Get help info about WC generator | ||
-v, --version Return installed WC generator version | ||
-t, --test Test repo generation without installing dependencies | ||
-n, --name [name] Name of the web component to build, must follow format [namespace]-[name] | ||
-P, --npm [npm] Choose npm namespace | ||
-d, --dir [directory] Directory where the new custom element will be created | ||
--verbose Verbose command line feedback | ||
`; | ||
|
||
module.exports = { generate }; |