rbg/greenwich-base-theme

There is no license information available for the latest version (2023.12.13-10.56) of this package.

Mono repo containing packages for various applications and components

2023.12.13-10.56 2023-12-13 10:44 UTC

This package is not auto-updated.

Last update: 2025-03-05 22:39:36 UTC


README

For further documentation, please see the storybook site, rbgreenwich.gitlab.io/design_system

Getting started

git clone git@gitlab.com:rbgreenwich/greenwich_base.git && cd greenwich_base

# install
make install

# run
make start

Commands

Run make help to view a list of all the commands,

commandaction
make helpList all commands
make installInstalls the project
make startStarts the drupal component library storybook
make start-greenwichStarts everything you need for drupal development
make generate-componentCreates a component, see below for more information
make watch-storybook-greenwichLoads greenwich design system storybook development task
make watch-theme-greenwichLoads greenwich_base development task to create assets for the drupal theme, optionallay provide theme=website\|gcd to just build one theme at a time
make watch-theme-greenwich-nostylesWatch greenwich theme without any styles being built
make watch-theme-greenwich-juststylesWatch greenwich theme with only styles being build, optionallay provide theme=website\|gcd to just build one theme at a time
make build-storybook-greenwichBuilds greenwich design system storybook
make build-theme-greenwichBuilds greenwich_base for the drupal theme, optionallay provide theme=website\|gcd to just build one theme at a time
make build-theme-greenwich-nostylesBuild greenwich theme without any styles being built
make build-theme-greenwich-juststylesBuild greenwich theme with only styles being build, optionallay provide theme=website\|gcd to just build one theme at a time
make build-greenwich-baseBuilds the final artifacts for the drupal theme package

Troubleshooting

Install/enable yarn

corepack enable

Install NVM

To install NVM follow the instructions here. Its worth noting if you installed node from nodejs.org you may run into issues with nvm.

Don't forget about nvm use if you run into issues locally.

Running tests

yarn lint

Creating a new component

For more information see below

make generate-component
choose greenwich_component_library

Add as a package to drupal theme

ddev composer config repositories.rbgreenwich composer https://gitlab.com/api/v4/group/rbgreenwich/-/packages/composer/packages.json

ddev composer require rbgreenwich/greenwich_base

TODO

  • better testing support and documentation
  • [ ] create a custom generator that includes our frontend toolkit setup