harvard-library-web-team/harvard-patterns

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

Pattern Lab patterns for the Harvard Library website.

1.2.80 2024-06-05 20:04 UTC

This package is not auto-updated.

Last update: 2024-10-03 17:47:04 UTC


README

Welcome to the Harvard Library's Pattern Library.

Setting up your environment

In order to run Harvard Patterns locally, you need to have some things installed and set up on your machine:

  1. Install PHP (v8.2)
  2. Install NodeJS (v21.6.1+
  3. Install GulpJS globally

    • Run sudo npm install -g gulp-cli from your command line
  4. Clone the repo (pick one below)

  5. Install Composer

    • Install by command linke instructions can be found here: https://getcomposer.org/download/
    • I had to add a fourth command to those steps to make it work on a Mac
       sudo mv composer.phar /usr/local/bin/composer
      
  6. Install Pattern Lab

    • Browse to the 'styleguide' folder within your local repo using Terminal or Command Prompt
    • Run composer install
    • Warning: do not update the styleguideKitPath or ishMinimum variables when prompted
  7. Install Node Modules

    • Browse to the 'styleguide' folder within your local repo using Terminal or Command Prompt
    • Run npm install successfully

Starting up Pattern Lab

  1. Browse to the 'styleguide' folder within your local repo using Terminal or Command Prompt

  2. Run gulp local successfully

  3. Open your browser and go to the hostname shown (ie: localhost:3000)

GitLab Pages for this project

This project is viewable at https://harvard-library-web-team.gitlab.io/Harvard-Patterns