line / create-liff-app

Start developing LIFF application with a simple CLI command.
https://developers.line.biz/en/docs/liff/
Apache License 2.0
63 stars 7 forks source link

Feat: add flags to the CLI #21

Closed BWsix closed 2 years ago

BWsix commented 2 years ago

Add flags to the CLI (https://github.com/line/create-liff-app/issues/19)

I added some flag descriptions, but I am unsure if they sound natural (I am not a native speaker). Please double-check the descriptions in README.md and the CLI help message!

Changes:

Usage: @line/create-liff-app [project name] [options]

Options:
  -v, --version              output the version number
  -t, --template <template>  Choose a template to bootstrap the app with (choices: "vanilla", "react", "vue", "svelte", "nextjs", "nuxtjs")
  -l, --liffid <liff id>     Liff id. For more information, please visit https://developers.line.biz/ja/docs/liff/getting-started/
  --js, --javascript         Initialize as a JavaScript project
  --ts, --typescript         Initialize as a TypeScript project
  --npm, --use-npm           Bootstrap the app using npm
  --yarn, --use-yarn         Bootstrap the app using yarn
  -h, --help                 display help for command

NOTE:

The answers object currently has no type, as I do not know how to automatically infer the values from questions. Rather than explicitly create a type for it I decided to leave it like that since answers will not be referenced by anything. But still, I'll make it full type-safe if that sounds better to you.

BWsix commented 2 years ago

Thank you so much for the help! I learned a lesson and will stay away from testing until I know what I'm doing😅

BWsix commented 2 years ago

I see!

so99ynoodles commented 2 years ago

The documentation release will be on July 11th :sweat_smile: It sounds too late so we will release this PR first and will wait for the doc update. Thank you!