You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/o2-storybook/readme.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,26 +6,27 @@ Demos of Origami 2 components.
6
6
7
7
Ensure you have installed the dependencies for the project, execute the following in the root of the mono repo:
8
8
9
-
```bash
10
-
npm i
9
+
```shell
10
+
npm install
11
11
```
12
12
13
13
Run storybook:
14
14
15
-
```bash
15
+
```shell
16
16
npm run storybook -w apps/o2-storybook
17
17
```
18
18
19
19
By default, storybook will build demos for the `core` brand, you can change which brand storybook will build for by changing the value of `STORYBOOK_BRAND`:
20
20
21
-
```bash
21
+
```shell
22
22
STORYBOOK_BRAND=internal npm run storybook -w apps/o2-storybook
23
23
```
24
24
25
25
Origami 2 supports these brands:
26
-
*`core`
27
-
*`internal`
28
-
*`whitelabel`
26
+
27
+
-`core`
28
+
-`internal`
29
+
-`whitelabel`
29
30
30
31
## Creating stories and structure
31
32
@@ -40,4 +41,3 @@ Each component folder has a `stories` folder, where we put all stories related t
40
41
```
41
42
42
43
Any story file in the root of `stories/` will be built for all storybook instances. When a brand may need different stories for a specific brand, a directory with the brand's name can be created with stories inside. These will only show for the specified brand.
0 commit comments