iijiang / drupal9_bootstrap_storybook_lando

A simple dev use case of build a sub-theme of drupal bootstrap storybook via lando.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Info

Drupal 9
Composer 2+
drush 10
php 7.3
Node 12
['boostrap_storybook'](https://www.drupal.org/project/bootstrap_storybook)

Usage

# Start lando drupal site
lando start

# Install dependencies
lando composer install
 or 
composer install (local composer, please ensure local composer version = lando composer version)

# Enable sub theme
lando drush theme:enable mysub

# Install node packages under custom theme
lando npm install -prefix web/themes/custom/mysub/

# Run browsersync
lando npm run watch -prefix web/themes/custom/mysub/

# Run browsersync and storybook
lando npm run crazy -prefix web/themes/custom/mysub/

Lando Usage examples

# Doing a drush site install
lando drush si --db-url=mysql://drupal9:drupal9@database/drupal9 -y

drupal9@database/drupal9 -y

# Run composer tests
lando composer test

# Drop into a mysql shell
lando mysql

# Check hte app's installed php extensions
lando php -m

About

A simple dev use case of build a sub-theme of drupal bootstrap storybook via lando.


Languages

Language:PHP 88.5%Language:JavaScript 4.3%Language:CSS 3.5%Language:Twig 3.3%Language:HTML 0.1%Language:SCSS 0.1%Language:Shell 0.1%Language:Smarty 0.0%