department-of-veterans-affairs/design-system

Name: design-system

Owner: Department of Veterans Affairs

Description: Jean Pants: Design System for vets.gov

Created: 2017-09-12 14:46:41.0

Updated: 2018-05-22 18:29:26.0

Pushed: 2018-05-22 21:00:57.0

Homepage: https://department-of-veterans-affairs.github.io/design-system

Size: 38004

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Stable URL: https://department-of-veterans-affairs.github.io/design-system

Getting started with Fractal

These instructions assume you're using Terminal, and that you're starting from scratch as far as a development environment is concerned. If you've already got dependencies installed, move on to Install Fractal.

Please note: If you're on a VA laptop, and don't have Administrator access, you may not be able to install & run Formation locally. Please visit the stable URL to use the system as a reference.

Start here:

Clone the design-system repo:

If you're familiar with cloning repos from Github using Terminal, skip ahead to Install Fractal.

You can put the repo anywhere on your computer, but as a suggestion:

Install Fractal

Still in Terminal, run yarn install. This will download and install all the dependencies that Fractal needs to run on your local machine. It might take a minute to complete the process.

Start up Fractal

If the fractal watch task fails, remove the dist directory and try running npm run start again.

Publishing Module

This assumes you have already merged your PR to master.

  1. Build the components

  2. Run npm run export-components

Builds all JSX files in src/components and all js files in src/helpers and add them to the dist/formation folder.

dist/formation is the root directory of the npm module.

  1. Test the components

yalc is recommended for testing module publication- see installation instructions.

Copies package.json to the dist/formation directory and publishes the exported components to the local yalc directory as a @department-of-veterans-affairs/formation module.

Installs formation to node_modules making it available for importing and testing locally.

See yalc documentation for advanced usage such as automatic updating on publish

  1. Update version and merge PR

Preprequsite: you must be registered with npm to publish or update the module. Verify that you are logged in correctly by running npm whoami.

Follow these instructions for updating a package (summarized below).

If you are unsure of which to use, do a major version update.

Deployment

Jenkins automatically publishes the content to GitHub Pages (the gh-pages branch on this repository) on pushes to master.

To make changes:

Choosing a design system for Vets.gov

This has been migrated to another file in order to keep the README instructional.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.