Note
We have environments for: dev, stage, and prod. They are manually created and require access to Platform.sh.
The remote environments are hosted in platform.sh. See the ./.platform directory and .platform.app.yaml file for the configuration.
Website & Storybook
Links to environments can be found in SharePoint 🔒.
[!CAUTION] > HIT REFRESH AFTER CLICKING. Story book will not load because the basic auth credentials are in the URL.
- [email protected]
- lando
- node LTS
The local environment is based on Drupal Env and the Drupal Env Lando packages.
./robo.sh lando:init
Starting
For future sessions, you can start lando:
lando start
Stopping
Run the following command to stop the environment:
lando stop
You'll be able to visit the local site at: https://bixalcom.lndo.site.
Change something in the .lando.yml config and/or you want to re-install front and back end dependencies?
Start Fresh:
lando rebuild -y && lando si
Re-install front end dependencies ONLY:
lando build_node
Accessibility is a core requirement to our work. Our baseline is:
Additionally we follow Deque's Best Practice rules. These rules are defined in our Storybook's preview.js.
You should still test manually to ensure a fully accessible experience. See Bixal's A11Y Checklist for full testing instructions.
Use the following naming for your git branches:
feature/BSD-[ISSUE_NO]-[LOWER_CASE_DESCRIPTION]Example
feature/BSD-64-robo-validateBSD fixes #64: Fixed coding standards issues.The following keywords are also acceptable:
close,closes,closedfix,fixes,fixedresolve,resolves,resolved
Example
BSD closes #64: Fixed coding standards issues.
More guidance on git branching and commit style in robo.yml config.
lando si
This installs all the sample content defined in web/modules/custom/bixal_default_content.
To export new content from your local, create it locally and run:
lando export-content
./drush.sh <your_command>
Example
# Clear cache
./drush.sh cr
By default, Lando runs Composer commands within its Docker containers. This often times out, so we recommend using your local Composer instead.
./composer.sh
Local Composer Setup
-
Install homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -
Install composer:
brew install composer[!NOTE] Make sure the installed PHP matches the project version.
-
Set the local to use your composer:
echo 'BIN_PATH_COMPOSER="composer"' >> .env
The composer.log is modified every time you do something that changes the composer.lock file.
Always use lando composer or ./composer.sh to run composer commands to make sure an entry is made in composer.log.
Avoid duplicate entries of the same command in composer.log. If you apply to patches, just leave the last composer update --patch
Run all the validation commands that the pipelines run without needing to push remotely:
./robo.sh validate:all
To check and fix frontend styles run these commands:
npm run format:styles && npm run lint:styles
To automatically fix issues run:
npm run format:styles:fix
npm run lint:styles:fix
Some problems might still need to be fixed by hand.
Use this command to view changes from Storybook components.
lando build_node
https://github.com/mattsqd/drupal-env-lando/wiki/XDebug-(Personal)
Storybook gives us a preview of UI components.
npm run storybook:local
Alternatively:
# Run in terminal.
./sb.shThis should automatically open it in your browser.
We're using the following modules: