Skip to content

Conversation

@garronej
Copy link
Collaborator

@garronej garronej commented Feb 4, 2023

No description provided.

Comment on lines +41 to +58
## Linking your local copy of `@codegouvfr/react-dsfr` in your project

This will enable you to see your react-dsfr changes in your main project.

```bash
cd ~/github
git clone https://github.com/ORG/YOUR-PROJECT-USING-REACT-DSFR
cd YOUR-PROJECT-USING-REACT-DSFR
yarn # or npm install or pnpm install depending of what you are using...

cd ~/github
git clone https://github.com/codegouvfr/react-dsfr
cd react-dsfr
yarn
yarn build
yarn link-external YOUR-PROJECT-USING-REACT-DSFR
npx tsc -w -p src # Leave this running if you want hot reload.
```
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@revolunet, @enguerranws, @marc-gavanier, @ddecrulle, @isMattCoding you can now link your local copy of react-dsfr in your project.
This enables you to see what your changes looks like in your projects before submitting a PR.

@garronej garronej merged commit eef12d9 into main Feb 4, 2023
@garronej garronej deleted the link-in-external-project branch February 4, 2023 01:21
sbourdon13 pushed a commit to sbourdon13/react-dsfr that referenced this pull request Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants