Best practices for examples with Pkg3

Moreover, the targets mechanism makes it easy for the package to declare project environments that extend its own, just do:

[extras]
Bars = "<uuid>"

[targets]
examples = ["Bars"]

We still need an API to activate target environments (pkg> activate Bars.examples)?, but with that you could just do that and you’ll be able to run the examples from that environment easily.

4 Likes