@codegouvfr/nextra-theme-dsfr
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

DSFR theme for Nextra

Demo repo - Show me what it looks like

Install / Import

$ yarn add @codegouvfr/nextra-theme-dsfr @codegouvfr/react-dsfr @mui/material @emotion/styled @emotion/react @emotion/server

Contributing

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 project

You 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_TOKEN repository secret or NPM publishing will fail.

Readme

Keywords

none

Package Sidebar

Install

npm i @codegouvfr/nextra-theme-dsfr

Weekly Downloads

4

Version

0.0.4

License

MIT

Unpacked Size

461 kB

Total Files

192

Last publish

Collaborators

  • emilerolley
  • codegouv-owner
  • hjonin
  • garronej