The easey-design-system package contains shared code from across the US-EPA-CAMD project.
These instructions will get you a copy of the project package up and running and downloaded.
- Project running node
- A
.yarnrcfile existing in the root directory, with the contents of:@us-epa-camd:registry=https://npm.pkg.github.com - Authenticate to github package registry on local machine
- Select desired version of package. The most up to date package version is
.
- In terminal execute
yarn add @us-epa-camd/easey-design-systemfor latest current version oryarn add @us-epa-camd/easey-design-system@VERSIONto install a specific version
- Import desired files from folder within package.
- For example, to insert the Header:
import { Header } from '@us-epa-camd/easey-design-system/Header';
These instructions will show you how to edit the existing package, and publish a new version.
- Clone easey-design-system github master branch on your local machine
- After invoking the
yarncommand to download the projects packages, invokeyarn storybook
- Add a new directory to the Components folder within the src of the easey-design-system
- Populate directory with the .scss styling file for your component, the base .tsx React component, and a .stories.tsx file for the storybook
- Finally, export * from the component within the src/index.ts
- On the current branch in terminal, add all file changes with
git add . - Commit files using
yarn commitwhich executes the commitizen plugin, a commit formatter that is digestible by semantic-release - Follow the prompts and create your commit
- Push the commit to your current branch
git push origin CURRENT_BRANCH - Github workflows for this package are set up to create new package versions whenever a push or merge to the
N.B.x, N.x (N is a number), master, next, next-major, beta, or alphabranches is executed - Semantic-Release will version all code automatically, based on the input received from the commitizen commit
semantic-release supports releasing patches for previously released versions where it is not possible to fully upgrade to the more recent versions. This is accomplished using the N.N.x and N.x branch names where N is the version you want to release a patch. If it is required to release a patch to a previously released version then the following steps must be followed to properly release a new patch version.
- Determine the version to be patched
- Clone or pull latest from easey-common
- Create
N.N.xorN.xbranch- If the version has subsequent versions after it
- Create
N.N.xbranch with N being the major and minor version of the version being patched - Example using v1.0.0 to be patched and the v1.0.0 release tag
git checkout -b 1.0.x v1.0.0
- Create
- If the version does NOT have subsequent versions after it
- Create
N.xbranch with N being the major version of the version being patched - Example using v1.1.0 to be patched and the v1.1.0 release tag
git checkout -b 1.x v1.1.0
- Create
- If the version has subsequent versions after it
- Implement changes in
N.N.xorN.xbranch and then follow the same steps above to commit changes usingyarn commit - Release workflow will release a new patch version for the version you choose to be patched
This project is licensed under the MIT License. We encourage you to read this project’s License, Contributing Guidelines, and Code of Conduct.
The United States Environmental Protection Agency (EPA) GitHub project code is provided on an "as is" basis and the user assumes responsibility for its use. EPA has relinquished control of the information and no longer has responsibility to protect the integrity , confidentiality, or availability of the information. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by EPA. The EPA seal and logo shall not be used in any manner to imply endorsement of any commercial product or activity by EPA or the United States Government.