depends

List of modules this module depends on.

If a module depends on another module, it will pull that module into the build, and import that module's exported environment.

Note: depending a module is equivalent to both selecting and using it.

If a dependency name is prefixed with "?", the dependency turns into an optional dependency. That means, if the dependency is available, it will be depended on, otherwise it will be ignored.

Example:

modules:
 - name: datetime
   depends:
     - date
     - time
   # ... possible other fields
 - name: party
   depends:
     - people
     - ?music
     - ?alcohol
   # ... possible other fields