This repository was archived by the owner on Mar 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
Developer guidelines
Sara Cope edited this page Dec 5, 2019
·
3 revisions
- We have three main branches on the
code-gov-front-endrepository that are never deleted:-
mastercontains changes being prepped for a release, is always deployable -
federalist-prodalways points to the latest release -
federalist-stagused for testing and review of new features
-
When introducing a change (feature, bug fix, etc.) to any @code.gov/* repository:
-
Branch off
master:git pull origin master git checkout -b feature-foo origin/master -
Name your branch pretty much anything except
master,federalist-, or with therelease-orhotfix-prefix. Suggested prefixes includerefactor-,feature-,docs-,issue#, andpatch-. -
File your pull request to merge into the
masterbranch.
The following standards and guidelines are used to guide development on this project. They are a great resource for insight into the 'why' and 'what' of many of the choices we make in development. Some, such as the Accessibility Standards, are requirements that must be met in order for code to be releasable.
- API Standards
- CSS Standards
- JavaScript Style Guide
- React Style Guide
- Code.gov Style Guide *Required
- Accessibility Standards: Meet all WCAG 2.0 AA accessibility guidelines and conforms to the standards of Section 508 of the Rehabilitation Act. *Required
- Accessibility Guide
- Design Principles
- Browser Support: We will officially support any browser above 2% usage as observed by analytics.usa.gov.
- Automated Testing Playbook
- Workflow Best Practices
- Security Best Practices
- Continuous Integration