This repo contains front end code and documentation used by the Veteran facing services on VA.gov. It's a monorepo managed by Lerna, a tool for managing versioning and publishing for multiple modules located in a single repo.
There is another repository for the documentation site. The documentation site can be viewed at design.va.gov. See also: contributing to the Design System.
- formation
- Styles and assets for the VA design system
- documentation
- Public documentation website for Veteran Facing Service development on Veteran Service Platform. For local development following setup below, then see README.
- You need Homebrew. To install Homebrew, follow these instructions
- You also need Yarn. To install Yarn, you'll use Homebrew. In Terminal, run
brew install yarn
Clone the veteran-facing-services-tools repo:
You can put the repo anywhere on your computer, but as a suggestion:
- In Terminal, navigate to your desktop:
cd ~/desktop
- Clone the Github repo by running:
git clone https://github.com/department-of-veterans-affairs/veteran-facing-services-tools.git
- Then:
cd veteran-facing-services-tools
- Run
yarn
to install dependencies for each module
Available npm scripts:
build
: Builds the code in each repo and outputs it to the appropriate locations for publishingtest
: Runs the tests in each repolint
: Runs the linter in each repo
The process for updating formation can be found at https://department-of-veterans-affairs.github.io/veteran-facing-services-tools/getting-started/common-tasks/updating-formation
The documentation
package uses the gatsby-source-git
Gatsby plugin to sync content from the va.gov-team
repo.
Unfortunately, invalid HTML in va.gov-team
Markdown files can break the build of the veteran-facing-services-tools
repo.
To fix the Expected corresponding JSX closing tag for <img>
error, you need to do the following:
- Find the invalid HTML in the
va.gov-team
repo- Look for a string from the error message in the
va.gov-team
repo to find the offending Markdown file - Look for HTML tags in that Markdown file
- Look for a string from the error message in the
- Fix the invalid HTML
- For example, replace HTML images with markdown images
- <img src="zenhub-license-request.png" alt="zenhub license request"></img> + ![zenhub license request](zenhub-license-request.png)
- For example, replace HTML images with markdown images
- Rerun
veteran-facing-services-tools
build
Example va.gov-team
PR: department-of-veterans-affairs/va.gov-team#9869
- If you're on a VA.gov Platform team, contact your Program Manager.
- If you're on a VFS team, you must complete Platform Orientation to be added to this repository. This includes completing your Platform Orientation ticket(s) in GitHub.