ionic-team / ionic-team/ionic-cli

[beta.12] support passing raw arguments to hooks

Offen
#1,407 1 Kommentar 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
TypeScript
Sterne
2k
Forks
682
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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)

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.