6
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ASK-CLIでnewやcloneしたときの注意事項

Last updated at Posted at 2018-04-01

Alexa Skills Kitコマンドラインインターフェース(ASK CLI)

"ask new -n [skill_name] -p profile_name"や"ask clone -s [skill_id] -p profile_name"でスキルを作成したときに、↓のような感じで作成されます。

├── .ask
├── lambda
│   └── custom
│       ├── index.js
│       ├── node_modules(以下省略)
│       ├── package-lock.json
│       └── package.json
├── models
│   └── en-US.json
└── skill.json

とりあえず今のところは、以下のあたりを気をつけておけば良さそうです。

  • ".ask"の中にはスキルIDやlambdaのendpointが含まれているので、このファイルはコミットしないように".gitignore"に追加するのを忘れないようにする。
  • "node_modules"も"new"したときにデフォルトで入るような気がするので、".gitignore"に追加するのを忘れないようにする。
  • "new"の場合はロケールがUSで作成されるので日本語に直す(cloneの場合はちゃんと日本語になっているはず)。

結構簡単に使えるので、そんなにハードル高くない気がします(というよりは基本こっちで良いような気がする…)。
そのうち"new"や"clone"したときに.gitignoreも勝手に作成してくれることを期待してます。

6
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?