Skip to content

Commit 06379fe

Browse files
committed
Setup chromatic
1 parent 175551e commit 06379fe

File tree

4 files changed

+728
-29
lines changed

4 files changed

+728
-29
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
- uses: bahmutov/npm-install@v1
3737
- run: yarn build
3838
- run: yarn test
39+
- run: npx chromatic --exit-zero-on-changes
3940

4041
deploy_storybook:
4142
runs-on: ubuntu-latest

package.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"grant_exec_perms": "node dist/bin/tools/grant_exec_perms",
2424
"storybook": "yarn build && yarn only-include-used-icons && start-storybook -p 6006",
2525
"build-storybook": "yarn build && yarn only-include-used-icons && build-storybook",
26-
"only-include-used-icons": "node dist/bin/only-include-used-icons.js"
26+
"only-include-used-icons": "node dist/bin/only-include-used-icons.js",
27+
"chromatic": "npx chromatic"
2728
},
2829
"bin": {
2930
"copy-dsfr-to-public": "dist/bin/copy-dsfr-to-public.js",
@@ -42,7 +43,9 @@
4243
"pre-commit": "ts-node -T src/scripts/list-exports.ts && git add package.json && lint-staged -v"
4344
}
4445
},
45-
"author": "u/garronej",
46+
"author": {
47+
"name": "u/garronej"
48+
},
4649
"license": "MIT",
4750
"files": [
4851
"src/",
@@ -66,10 +69,10 @@
6669
"tsafe": "^1.6.0"
6770
},
6871
"devDependencies": {
69-
"@gouvfr/dsfr": "1.9.0",
7072
"@babel/core": "^7.20.2",
7173
"@emotion/react": "^11.10.4",
7274
"@emotion/styled": "^11.10.4",
75+
"@gouvfr/dsfr": "1.9.0",
7376
"@mui/icons-material": "^5.11.0",
7477
"@mui/material": "^5.11.0",
7578
"@storybook/addon-a11y": "^6.5.16",
@@ -90,6 +93,7 @@
9093
"@typescript-eslint/eslint-plugin": "^5.43.0",
9194
"@typescript-eslint/parser": "^5.43.0",
9295
"babel-loader": "^8.3.0",
96+
"chromatic": "^6.17.2",
9397
"css": "^3.0.0",
9498
"eslint": "^7.26.0",
9599
"eslint-config-prettier": "^8.3.0",
@@ -163,5 +167,10 @@
163167
"./Badge": "./dist/Badge.js",
164168
"./Alert": "./dist/Alert.js",
165169
"./Accordion": "./dist/Accordion.js"
166-
}
170+
},
171+
"bugs": {
172+
"url": "https://github.com/codegouvfr/react-dsfr/issues"
173+
},
174+
"readme": "ERROR: No README data found!",
175+
"_id": "@codegouvfr/react-dsfr@0.41.0"
167176
}

stories/intro.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ import { useDarkMode } from "storybook-dark-mode";
1919
🇫🇷 <i><a href="https://www.systeme-de-design.gouv.fr/">French State Design System</a> React integration</i> 🇫🇷
2020

2121
This website documents the React components featured by [@codegouvfr/react-dsfr](https://github.com/codegouvfr/react-dsfr).
22-
🏁 If you're just getting started heads over to the 👉[guides](https://react-dsfr.etalab.studio/)👈.
22+
🏁 If you're just getting started heads over to the 👉 [Guides](https://react-dsfr.etalab.studio/) 👈.
2323
</div>

0 commit comments

Comments
 (0)