Skip to content

Latest commit

 

History

History
58 lines (34 loc) · 2.69 KB

AUTOMATIONS.md

File metadata and controls

58 lines (34 loc) · 2.69 KB

Sage Design System Automations

The following document describes the internal automations of the Sage Design System.

Lefthook

Official Documentation

Lefthook is being utilized to automate behaviors during git based interactions. Configuration for Lefthook can be found in the lefthook.yml document at the root of this repository. The following checks are in places:

commit-msg

This repo utilizes the Conventional Commits Standard to determine version changes as well as auto-document Changelogs for releases. In order to ensure this behavior a hook is integrated with commit-msg and parses it via commitlint.

Configuration for commitlint can be found in the commitlint.config.js file at the root of this repository.

pre-commit

A hook prior to commit is in place to ensure the integrity of the yarn.lock file. If the yarn.lock file is not in-sync during release then the CI job will throw an error indicating that the yarn.lock is out of date. A script located at bin/yarn-check.sh in the root of this repository is designed to verify if yarn is out of sync, and if it is we will bootstrap the Lerna monorepository, add the updated yarn.lock and create a separate chore commit for the new lock file.

Initial Setup

A series of automations have been created for initial repository setup. The yarn setup script in the root of this repository follows this flow:

Initial Setup

Scripts as part of this automation:

  • bin/bundle.sh
  • bin/setup.sh

Bridge - Kajabi Products

The Kajabi Products repository needs to be locally linked to your Sage repository in order to have live reloading of your changes during your development cycle. This is administered via a series of automations that follow this flow:

Scripts as part of this automation:

  • bin/bundle.sh
  • bin/env.sh
  • bin/local-link-frontend.sh
  • bin/local-link-gem.sh
  • bin/local-link.sh

Bridge Kajabi Products

Bridge - Kajabi Products (DESTROY)

From time to time you will have to destroy your local bridge to test production level code. This is administered via a series of automations that follow this flow:

Destroy Kajabi Products Bridge

Scripts as part of this automation:

  • bin/bundle.sh
  • bin/env.sh
  • bin/local-link-frontend.sh
  • bin/local-link-gem.sh
  • bin/local-link.sh