Skip to content

Commit 3d8dbb2

Browse files
authored
Merge pull request #4 from kenshoo/add-chromatic
add Chromatic configuration
2 parents 05f665d + efb5333 commit 3d8dbb2

File tree

3 files changed

+1731
-56
lines changed

3 files changed

+1731
-56
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
},
2525
"scripts": {
2626
"postinstall": "preconstruct dev",
27+
"build": "preconstruct build",
2728
"release": "preconstruct build",
2829
"test": "echo skip",
2930
"prettier": "prettier --check ./packages/**/*.js --ignore-path .gitignore",

packages/docs/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@
1111
"@storybook/react": "^5.3.13",
1212
"babel-loader": "^8.0.6",
1313
"react": "^16.12.0",
14-
"react-dom": "^16.12.0"
14+
"react-dom": "^16.12.0",
15+
"storybook-chromatic": "^3.5.2"
1516
},
1617
"dependencies": {},
1718
"scripts": {
1819
"storybook": "start-storybook -p 6006",
19-
"build-storybook": "build-storybook"
20+
"build-storybook": "build-storybook",
21+
"chromatic:rebase": "chromatic --auto-accept-changes",
22+
"chromatic": "chromatic --exit-zero-on-changes"
2023
}
2124
}

0 commit comments

Comments
 (0)