This project repo is no longer being maintained. The Federal Source Code Policy is no longer on code.gov but can be found at sourcecode.cio.gov
FSCP Plugin for code-gov-web, built with Markdown and React
The repository is distributed with npm. After installing npm, you can install code-gov-fscp-react-component with this command:
$ npm i @code.gov/code-gov-fscp-react-componentThis package is meant to be used with the code-gov-front-end project. Please follow the configuration settings for the project.
You may want to view your changes in the code-gov-fscp-react-component repo on your local machine for testing. Follow these steps to do so:
- Clone the latest version of the
code-gov-fscp-react-componentrepository. - Run
npm installto install the dependencies required for the package in thecode-gov-fscp-react-componentdirectory. - Run
npm linkin the root level of thecode-gov-fscp-react-componentdirectory on your local machine. - On the
code-gov-front-endproject, clone the repository and runnpm installif you haven’t done this already. - Run
npm link @code.gov/fscp-react-componentin the root level of the code-gov-front-end directory on your local machine.
You are now using the latest version of the code.gov design system via your cloned version when running the code-gov-front-end site on your local machine. To stop using this version, run npm unlink @code.gov/code-gov-fscp-react-component from the root level of the code-gov-front-end directory.