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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Stable URL: https://department-of-veterans-affairs.github.io/design-system
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:
brew install yarn
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:
cd ~/desktop
git clone https://github.com/department-of-veterans-affairs/design-system.git
cd design-system
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
npm run start
and navigate to localhost:3000
in your favorite browser. You should be all set!If the fractal watch
task fails, remove the dist
directory and try running npm run start
again.
This assumes you have already merged your PR to master.
Build the components
Run npm run export-components
Builds all JSX files in
src/components
and all js files insrc/helpers
and add them to thedist/formation
folder.
dist/formation
is the root directory of the npm module.
yalc is recommended for testing module publication- see installation instructions.
Install Yalc globally if you don't have it. $ yarn global add yalc
With yalc installed, run npm run test-publish
Copies
package.json
to thedist/formation
directory and publishes the exported components to the local yalc directory as a@department-of-veterans-affairs/formation
module.
vets-website
project, run yalc link @department-of-veterans-affairs/formation
and subsequently yalc update
Installs
formation
tonode_modules
making it available for importing and testing locally.See yalc documentation for advanced usage such as automatic updating on publish
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).
Update package version number:
npm version patch
- for bug fixes and minor changes
npm version minor
- for new features that don't break current features
npm version major
- for backwards breaking changes
If you are unsure of which to use, do a major version update.
Update npm module readme
Pull master and publish
Switch to master and pull. Run preblish: npm run pre-publish
Change directory to dist/formation
and verify that you have the new version number locally in package.json
Publish: changes npm publish
Jenkins automatically publishes the content to GitHub Pages (the gh-pages
branch on this repository) on pushes to master.
To make changes:
This has been migrated to another file in order to keep the README instructional.