opx enable
Enable a plugin by short name (js, json, md, release) or by package id.
Synopsis
opx enable <name> [--task <tasks...>]
Options
| Flag | Default | Description |
|---|---|---|
--task <tasks...> |
every task the plugin provides | One or more of lint, build |
Behavior
- Plugins are written only to the tasks they provide.
opx enable jstoucheslintonly, because the official JS plugin is a linter. releaseis a static task: it sets the top-levelreleaseboolean and ignores--task.- Unknown names, and
--taskvalues a plugin doesn't provide, print an error and exit1. - Running it when nothing would change prints a message and exits
0.
Examples
opx enable js
opx enable release
opx enable @acme/opx-plugin-foo --task lint