ionic-team / ionic-team/ionic-cli

[beta.12] support passing raw arguments to hooks

Open
#1,407 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
2k
Forks
682
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.