Design system from the French state - React extended version
- Build local version of the lib "dsfr-plus"
npm run build
- Delete previous version of the lib "dsfr-plus" in "example-ts" project
rm -Rf example-ts/dist
- Copy local version of the lib "dsfr-plus" into the "example-ts project"
cp -R dist example-ts
- Run "example-ts" project
npm run example-ts
@dataesr/dsfr-plus requires the DSFR (@gouvfr/dsfr ≥ 1.15), which asks you to accept its terms of use once per project:
npm create @gouvfr/dsfr@latest # creates .dsfr.yml — commit it
npm install @dataesr/dsfr-plusBe carefull, under 1.0.0 version of dsfr-plus, you won't have a warning if your upgrade sticks to 0.6.7.
That's because you need to have the file .dsfr.ymlin your project.
We don't need to install @gouvfr/dsfr@latest in our other projects (it would load 2 same javascripts scripts)
DSFR-plus will now try to fit with the major version of de DSFR (passing from 0.6.8 direclty to 1.15.0)
The version number follows semver.
To push in prod, run npm run deploy -- [patch|minor|major]