0.0.4 • Published 2 years ago
@codegouvfr/nextra-theme-dsfr v0.0.4
Install / Import
$ yarn add @codegouvfr/nextra-theme-dsfr @codegouvfr/react-dsfr @mui/material @emotion/styled @emotion/react @emotion/serverContributing
Testing your changes in an external app
You have made some changes to the code and you want to test them in your app before submitting a pull request?
cd ~/github
git clone https://github.com/garronej/nextra-dsfr-demo
cd nextra-dsfr-demo
yarn
cd ~/github
git clone https://github.com/codegouvfr/nextra-theme-dsfr
cd nextra-theme-dsfr
yarn
yarn build
yarn link-in-app nextra-dsfr-demo
npx tsc -w
# Open another terminal
cd ~/github/nextra-dsfr-demo
rm -rf node_modules/.cache
yarn dev # Or whatever my-app is using for starting the projectYou don't have to use ~/github as reference path. Just make sure nextra-dsfr-demo and nextra-theme-dsfr
are in the same directory.
Releasing
For releasing a new version on GitHub and NPM you don't need to create a tag.
Just update the package.json version number and push.
For publishing a release candidate update your package.json with 1.3.4-rc.0 (.1, .2, ...).
It also work if you do it from a branch that have an open PR on main.
Make sure your have defined the
NPM_TOKENrepository secret or NPM publishing will fail.