Skip to main content

Using Lando for Development

The package contains .lando.yml and tooling that can help to speed up your development. If you are not familiar with Lando, check docs.lando.dev.

If you use or decide to use Lando for development, run:

lando start

Lando will install all Drupal dependencies and node modules required for compiling JS and SCSS at build time. When the build process finish and the container is ready, you can install TheMAG. To do that, you can run the following command:

lando themag-install

The command above will install TheMAG without demo content. To install the demo, use Drush or enable the TheMAG Demo Content module from the UI:

lando drush en -y themag_demo

Compiling JS and SCSS

There is also tooling for compiling JS ad SCSS:

lando themag-watch

The command above will watch for changes and compile the SCSS and JavaScript in the base theme.

lando themag-subtheme-watch

The command above will watch for changes and compile the SCSS and JavaScript in the subtheme (themag_st)