Course of Raku / Advanced / Modules / Distributing modules 🆕 / Exercises / The module layout

Solution: The module layout

Here is a possible solution to the task.

Layout

Greet-Simple/
├── META6.json
├── README.md
├── lib/
│   └── Greet/
│       └── Simple.rakumod
└── t/
    └── 01-basic.rakutest

Comments

  1. The META6.json sits at the top; the module source goes under lib/, with its directory path matching the :: parts of the name.

  2. Tests live under t/. With this layout, zef test . and zef install . work from the top directory.

Course navigation

The module layout   |   Testing and documentation 🆕