ionic-team / ionic-team/ionic-cli

[beta.12] support passing raw arguments to hooks

未关闭
#1,407 1 条评论 1 个 reaction 已指派 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)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。