ionic-team / ionic-team/ionic-cli

[beta.12] support passing raw arguments to hooks

オープン
#1,407 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る
enhancement
主要言語
TypeScript
スター
2k
フォーク
682
PR マージ指標
30日以内にマージされた PR はありません

説明

When running hooks I would like to pass an argument.

For example, the `app-scripts` package can log debug information when passing the `--debug` argument.

`ionic serve --debug` does not work since the `watch` npm script of `app-scripts` is a hook and not the task itself, hooks don't get params passed to them so I can't run it in debug mode.

See [this code](https://github.com/driftyco/ionic-cli/blob/master/lib/cli.js#L297)

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start at lib/cli.js around line 297 and trace how hooks are invoked when running ionic serve. Check how command-line arguments are handled for the app-scripts watch hook. Done means raw arguments such as --debug reach the hook so the app-scripts package can act on them.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
typescript
領域
cli
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。