Skip to content

chapter-three/courtyard-artifact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Courtyard Artifact

This is a consumable artifact for the Courtyard Pattern Library.

It includes tooling to regenerate from the Pattern Lab and sync to this artifact.

Tooling

Lando

Lando is used for easy PHP and Node environments and is configured with the following commands:

clone:
  description: Clone Courtyard to build an artifact, or for development. `lando clone`
  ...
artifact:
  description: (Re)build the artifact.
  ...
patch:
  description: Apply patches from /patches to couryard.
  ...
sync:
  description: Sync built assets to artifact.
  ...

Instructions

To update the pattern library:

  • clone [this repo]
  • cd [this repo directory]
  • lando start
  • lando clone -b [branch to checkout] - At this time, development branch gives the best results. Please update this if that changes.
  • lando patch - will apply patches from /patches. This currently fixes the Courtyard composer.json and gulpfile.js files to allow installation with separate docker containers for PHP and Nodejs.
  • lando artifact - will install and build the pattern library as well as sync it to the /public directory of this artifact.

See Courtyard's Composer Install Wizard Docs for the answers to the prompts during install.

See the Courtyard Repository for additional information and troubleshooting.

Update the composer package:

  • Testing workflow TBD
  • After a new build is tested and verified commit the changes to this courtyard-artifact repo on master branch.
  • Add a new version tag: x.y.z
  • Push master and tag to Github
  • Packagist should be updated automatically.

Your artifact can now be installed via composer require <vendor tbd>/courtyard-artifact.