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
If you follow that process, you can then link to the github repository in the issue. See https://github.com/storybooks/storybook/issues/708#issuecomment-290589886 for an example.
67
+
If you follow that process, you can then link to the github repository in the issue. See <https://github.com/storybooks/storybook/issues/708#issuecomment-290589886> for an example.
72
68
73
-
**NOTE**: If your issue involves a webpack config, create-react-app will prevent you from modifying the *app's* webpack config, however you can still modify storybook's to mirror your app's version of storybook. Alternatively, use `npm run eject` in the CRA app to get a modifiable webpack config.
69
+
**NOTE**: If your issue involves a webpack config, create-react-app will prevent you from modifying the _app's_ webpack config, however you can still modify storybook's to mirror your app's version of storybook. Alternatively, use `npm run eject` in the CRA app to get a modifiable webpack config.
74
70
75
71
## Pull Requests (PRs)
76
72
77
73
We welcome your contributions. There are many ways you can help us. This is few of those ways:
78
74
79
-
* Fix typos and add more [documentation](https://github.com/storybooks/storybook/labels/needs%20docs).
80
-
* Try to fix some [bugs](https://github.com/storybooks/storybook/labels/bug).
81
-
* Work on [API](https://github.com/storybooks/storybook/labels/enhancement%3A%20api), [Addons](https://github.com/storybooks/storybook/labels/enhancement%3A%20addons), [UI](https://github.com/storybooks/storybook/labels/enhancement%3A%20ui) or [Webpack](https://github.com/storybooks/storybook/labels/enhancement%3A%20webpack) use enhancements and new [features](https://github.com/storybooks/storybook/labels/feature%20request).
82
-
* Add more [tests](https://codecov.io/gh/storybooks/storybook/tree/master/packages) (specially for the [UI](https://codecov.io/gh/storybooks/storybook/tree/master/packages/storybook-ui/src)).
75
+
- Fix typos and add more [documentation](https://github.com/storybooks/storybook/labels/needs%20docs).
76
+
- Try to fix some [bugs](https://github.com/storybooks/storybook/labels/bug).
77
+
- Work on [API](https://github.com/storybooks/storybook/labels/enhancement%3A%20api), [Addons](https://github.com/storybooks/storybook/labels/enhancement%3A%20addons), [UI](https://github.com/storybooks/storybook/labels/enhancement%3A%20ui) or [Webpack](https://github.com/storybooks/storybook/labels/enhancement%3A%20webpack) use enhancements and new [features](https://github.com/storybooks/storybook/labels/feature%20request).
78
+
- Add more [tests](https://codecov.io/gh/storybooks/storybook/tree/master/packages) (specially for the [UI](https://codecov.io/gh/storybooks/storybook/tree/master/packages/storybook-ui/src)).
83
79
84
80
Before you submit a new PR, make you to run `npm test`. Do not submit a PR if tests are failing. If you need any help, create an issue and ask.
85
81
@@ -102,9 +98,10 @@ Issues that are tagged `question / support` or `needs reproduction` are great pl
102
98
Once you've helped out on a few issues, if you'd like triage access you can help label issues and respond to reporters.
103
99
104
100
We use the following label scheme to categorize issues:
-**area** - `addon: x`, `addons-api`, `stories-api`, `ui`, etc.
104
+
-**status** - `needs reproduction`, `needs PR`, `in progress`, etc.
108
105
109
106
All issues should have a `type` label. `bug`/`feature`/`question`/`discussion` are self-explanatory. `greenkeeper` is for keeping package dependencies up to date. `maintenance` is a catch-all for any kind of cleanup or refactoring.
110
107
@@ -116,17 +113,17 @@ If an issue is a `bug`, and it doesn't have a clear reproduction that you have p
116
113
117
114
### Closing issues
118
115
119
-
- Duplicate issues should be closed with a link to the original.
116
+
-Duplicate issues should be closed with a link to the original.
120
117
121
-
- Unreproducible issues should be closed if it's not possible to reproduce them (if the reporter drops offline, it is reasonable to wait 2 weeks before closing).
118
+
-Unreproducible issues should be closed if it's not possible to reproduce them (if the reporter drops offline, it is reasonable to wait 2 weeks before closing).
122
119
123
-
-`bug`s should be labeled `merged` when merged, and be closed when the issue is fixed and released.
120
+
-`bug`s should be labeled `merged` when merged, and be closed when the issue is fixed and released.
124
121
125
-
-`feature`s, `maintenance`s, `greenkeeper`s should be labeled `merged` when merged, and closed when released or if the feature is deemed not appropriate.
122
+
-`feature`s, `maintenance`s, `greenkeeper`s should be labeled `merged` when merged, and closed when released or if the feature is deemed not appropriate.
126
123
127
-
-`question / support`s should be closed when the question has been answered. If the questioner drops offline, a reasonable period to wait is two weeks.
124
+
-`question / support`s should be closed when the question has been answered. If the questioner drops offline, a reasonable period to wait is two weeks.
128
125
129
-
-`discussion`s should be closed at a maintainer's discretion.
126
+
-`discussion`s should be closed at a maintainer's discretion.
130
127
131
128
## Development Guide
132
129
@@ -135,9 +132,7 @@ If an issue is a `bug`, and it doesn't have a clear reproduction that you have p
135
132
This project written in ES2016+ syntax so, we need to transpile it before use.
Copy file name to clipboardExpand all lines: HISTORY.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## v.Next
2
2
3
-
- Deprecated `{ linkTo, action }` as built-in addons: https://github.com/storybooks/storybook/issues/1017. From 3.0 use them as you would [any other addon](https://storybooks.js.org/docs/react-storybook/addons/using-addons/).
3
+
-Deprecated `{ linkTo, action }` as built-in addons: <https://github.com/storybooks/storybook/issues/1017>. From 3.0 use them as you would [any other addon](https://storybooks.js.org/docs/react-storybook/addons/using-addons/).
[](#backers)[](#sponsors)
9
10
10
-
---
11
+
* * *
11
12
12
13
Storybook is a development environment for UI components.
13
14
It allows you to browse a component library, view the different states of each component, and interactively develop and test components.
@@ -20,10 +21,23 @@ Storybook runs outside of your app. This allows you to develop UI components in
20
21
21
22
Storybook comes with a lot of [addons](https://storybooks.js.org/docs/react-storybook/addons/introduction) for component design, documentation, testing, interactivity, and so on. Storybook's easy-to-use API makes it easy to configure and extend in various ways. It has even been extended to support React Native development for mobile.
22
23
24
+
## Table of contents
25
+
26
+
-[Getting Started](#getting-started)
27
+
-[Projects](#projects)
28
+
-[Main Projects](#main-projects)
29
+
-[Sub Projects](#sub-projects)
30
+
-[Addons](#addons)
31
+
-[Contributing](#contributing)
32
+
-[Development scripts](#development-scripts)
33
+
-[Backers](#backers)
34
+
-[Sponsors](#sponsors)
35
+
23
36
## Getting Started
24
37
25
38
First install storybook:
26
-
```js
39
+
40
+
```sh
27
41
npm i -g @storybook/cli
28
42
cd my-react-app
29
43
getstorybook
@@ -36,32 +50,61 @@ For full documentation on using Storybook visit: [storybooks.js.org](https://sto
36
50
## Projects
37
51
38
52
### Main Projects
39
-
-[Storybook for react](app/react) - Storybook for React components
40
-
-[Storybook for react-native](app/react-native) - Storybook for React components
53
+
54
+
-[Storybook for react](app/react) - Storybook for React components
55
+
-[Storybook for react-native](app/react-native) - Storybook for React components
41
56
42
57
### Sub Projects
43
-
-[CLI](lib/cli) - Streamlined installation for a variety of app types
44
-
-[examples](examples) - Code examples to illustrate different Storybook use cases
58
+
59
+
-[CLI](lib/cli) - Streamlined installation for a variety of app types
60
+
-[examples](examples) - Code examples to illustrate different Storybook use cases
45
61
46
62
### Addons
47
-
-[addon-storyshots](addons/storyshots) - Easy snapshot testing for storybook
48
-
-[addon-actions](addons/actions/) - Log actions as users interact with components in storybook
49
-
-[addon-comments](addons/comments/) - Comment on storybook stories
50
-
-[addon-graphql](addons/graphql/) - Query a GraphQL server within Storybook stories
51
-
-[addon-info](addons/info/) - Annotate stories with extra component usage information
52
-
-[addon-knobs](addons/knobs/) - Interactively edit component prop data in the Storybook UI
53
-
-[addon-notes](addons/notes/) - Annotate storybook stories with notes
54
-
-[addon-options](addons/options/) - Customize the storybook UI in code
63
+
64
+
-[storyshots](addons/storyshots) - Easy snapshot testing for storybook
65
+
-[actions](addons/actions/) - Log actions as users interact with components in storybook
66
+
-[comments](addons/comments/) - Comment on storybook stories
67
+
-[graphql](addons/graphql/) - Query a GraphQL server within Storybook stories
68
+
-[info](addons/info/) - Annotate stories with extra component usage information
69
+
-[knobs](addons/knobs/) - Interactively edit component prop data in the Storybook UI
70
+
-[notes](addons/notes/) - Annotate storybook stories with notes
71
+
-[options](addons/options/) - Customize the storybook UI in code
55
72
56
73
## Contributing
57
74
58
75
We welcome contributions to Storybook! There are many ways to contribute to
59
76
this project. [Get started here](CONTRIBUTING.md)
60
77
78
+
### Development scripts
79
+
80
+
#### `npm run bootstrap`
81
+
82
+
> Installs package dependencies and links packages together - using lerna
83
+
84
+
#### `npm run publish`
85
+
86
+
> Push a release to git and npm
87
+
> will ask for version in interactive mode - using lerna.
88
+
89
+
#### `npm run lint`
90
+
91
+
> boolean check if code conforms to linting rules - uses remark & eslint
92
+
93
+
-`npm run lint:js` - will check js
94
+
-`npm run lint:markdown` - will check markdown + code samples
95
+
96
+
-`npm run lint:js -- --fix` - will autofix js
97
+
-`npm run lint:markdown -- -o` - will autofix markdown
98
+
99
+
#### `npm run test`
100
+
101
+
> boolean check if unittests all pass - uses jest
102
+
103
+
-`npm run test:watch` - will run tests in watchmode
61
104
62
105
### Backers
63
106
64
-
Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/storybook#backer)]
107
+
Support us with a monthly donation and help us continue our activities. \[[Become a backer](https://opencollective.com/storybook#backer)]
Become a sponsor and get your logo on our README on Github with a link to your site. [[Become a sponsor](https://opencollective.com/storybook#sponsor)]
142
+
Become a sponsor and get your logo on our README on Github with a link to your site. \[[Become a sponsor](https://opencollective.com/storybook#sponsor)]
* Fix issue caused by `v1.1.2` where storybook crashes when actions are used without names [PR30](https://github.com/storybooks/storybook-addon-actions/pull/30).
7
+
- Fix issue caused by `v1.1.2` where storybook crashes when actions are used without names [PR30](https://github.com/storybooks/storybook-addon-actions/pull/30).
7
8
8
9
### v1.1.2
10
+
9
11
21 Mar 2017
10
12
11
-
* Document `decorateAction` function (action decorator). [PR28](https://github.com/storybooks/storybook-addon-actions/pull/28)
13
+
- Document `decorateAction` function (action decorator). [PR28](https://github.com/storybooks/storybook-addon-actions/pull/28)
12
14
13
-
* Set correct Function.name for action handlers [PR24](https://github.com/storybooks/storybook-addon-actions/pull/24)
15
+
- Set correct Function.name for action handlers [PR24](https://github.com/storybooks/storybook-addon-actions/pull/24)
14
16
15
17
### v1.1.1
18
+
16
19
11 Sep 2016
17
20
18
-
* Support arguments with circular references [PR6](https://github.com/kadirahq/storybook-addon-actions/pull/6)
21
+
- Support arguments with circular references [PR6](https://github.com/kadirahq/storybook-addon-actions/pull/6)
19
22
20
23
### v1.1.0
24
+
21
25
11 Sep 2016
22
26
23
-
* Support action decorators [PR3](https://github.com/kadirahq/storybook-addon-actions/pull/3)
27
+
- Support action decorators [PR3](https://github.com/kadirahq/storybook-addon-actions/pull/3)
24
28
25
29
### v1.0.4
26
30
27
-
* Refactor source code (use separate files)
31
+
- Refactor source code (use separate files)
28
32
29
33
### v1.0.3
30
34
31
-
* Log all arguments (only the first argument was logged previously)
35
+
- Log all arguments (only the first argument was logged previously)
32
36
33
37
### v1.0.2
34
38
35
-
* Style tweak: center counter and inspector elements
39
+
- Style tweak: center counter and inspector elements
36
40
37
41
### v1.0.1
38
42
39
-
* First stable release with all features from the storybook action logger such as `action` function, react inspector and grouping log messages.
43
+
- First stable release with all features from the storybook action logger such as `action` function, react inspector and grouping log messages.
@@ -20,7 +21,7 @@ You can use this addon without installing it manually.
20
21
21
22
Import the `action` function and use it to create actions handlers. When creating action handlers, provide a **name** to make it easier to identify.
22
23
23
-
> *Note: Make sure NOT to use reserved words as function names. [issues#29](https://github.com/storybooks/storybook-addon-actions/issues/29#issuecomment-288274794)*
24
+
> _Note: Make sure NOT to use reserved words as function names. [issues#29](https://github.com/storybooks/storybook-addon-actions/issues/29#issuecomment-288274794)_
0 commit comments