Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit 73bed34

Browse files
committed
Adding helpers and storybook config
1 parent 41d6b15 commit 73bed34

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

.storybook/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
"stories": [
3-
"../src/**/*_Stories.js"
3+
"../src/**/*_Stories.bs.js"
44
],
55
"addons": [
66
"@storybook/addon-links",

bsconfig.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,5 @@
1414
}
1515
],
1616
"suffix": ".bs.js",
17-
"bs-dependencies": [
18-
"@rescript/react",
19-
"bs-css-emotion",
20-
"bs-css",
21-
"bs-storybook"
22-
]
17+
"bs-dependencies": ["@rescript/react", "bs-css-emotion", "bs-css"]
2318
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"@testing-library/user-event": "^12.1.10",
1010
"bs-css-emotion": "^2.5.1",
1111
"bs-platform": "8.4.2",
12-
"bs-storybook": "mishaszu/bs-storybook",
1312
"react": "^17.0.2",
1413
"react-dom": "^17.0.2",
1514
"react-scripts": "4.0.3",

src/lib/Helpers.bs.js

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/Helpers.res

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
@val external require: string => unit = "require"
2+
3+
let storybookModule: Storybook.storybookModule = %raw("module")

yarn.lock

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4521,10 +4521,6 @@ bs-platform@8.4.2:
45214521
resolved "https://registry.yarnpkg.com/bs-platform/-/bs-platform-8.4.2.tgz#778dabd1dfb3bc95e0086c58dabae74e4ebdee8a"
45224522
integrity sha512-9q7S4/LLV/a68CweN382NJdCCr/lOSsJR3oQYnmPK98ChfO/AdiA3lYQkQTp6T+U0I5Z5RypUAUprNstwDtMDQ==
45234523

4524-
bs-storybook@mishaszu/bs-storybook:
4525-
version "1.0.0"
4526-
resolved "https://codeload.github.com/mishaszu/bs-storybook/tar.gz/1fb81dd6db0845851ef5482f014d18bdd802818e"
4527-
45284524
bser@2.1.1:
45294525
version "2.1.1"
45304526
resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05"

0 commit comments

Comments
 (0)