Skip to content

Commit 7220ea4

Browse files
committed
initial-commit
1 parent 2368ba2 commit 7220ea4

File tree

12 files changed

+14638
-1
lines changed

12 files changed

+14638
-1
lines changed

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
.eslintcache
21+
22+
npm-debug.log*
23+
yarn-debug.log*
24+
yarn-error.log*
25+
26+
dist/*

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
2+
<p align="center">
3+
<a href="https://www.chromatic.com/">
4+
<img alt="Chromatic" src="https://avatars2.githubusercontent.com/u/24584319?s=200&v=4" width="60" />
5+
</a>
6+
</p>
7+
8+
<h1 align="center">
9+
Chromatic's Intro to Storybook React template
10+
</h1>
11+
12+
This template ships with the main React and Storybook configuration files you'll need to get up and running fast.
13+
14+
## 🚅 Quick start
15+
16+
1. **Create the application.**
17+
18+
Use [degit](https://github.com/Rich-Harris/degit) to get this template.
19+
20+
```shell
21+
# Clone the template
22+
npx degit chromaui/intro-storybook-react-template taskbox
23+
```
24+
25+
1. **Install the dependencies.**
26+
27+
Navigate into your new site’s directory and install the necessary dependencies.
28+
29+
```shell
30+
# Navigate to the directory
31+
cd taskbox/
32+
33+
# Install the dependencies
34+
yarn
35+
```
36+
37+
1. **Open the source code and start editing!**
38+
39+
Open the `taskbox` directory in your code editor of choice and building your first component!
40+
41+
1. **Browse your stories!**
42+
43+
Run `yarn storybook` to see your component's stories at `http://localhost:6006`
44+
45+
## 🔎 What's inside?
46+
47+
A quick look at the top-level files and directories included with this template.
48+
49+
.
50+
├── .storybook
51+
├── node_modules
52+
├── public
53+
├── src
54+
├── .env
55+
├── .gitignore
56+
├── LICENSE
57+
├── package.json
58+
├── yarn.lock
59+
└── README.md
60+
61+
62+
1. **`.storybook`**: This directory contains Storybook's [configuration](https://storybook.js.org/docs/react/configure/overview) files.
63+
64+
2. **`node_modules`**: This directory contains all of the modules of code that your project depends on (npm packages).
65+
66+
3. **`public`**: This directory will contain the development and production build of the site.
67+
68+
4. **`src`**: This directory will contain all of the code related to what you will see on your application.
69+
70+
5. **`.env`**: Simple text configuration file for controlling the application's environment constants.
71+
72+
6. **`.gitignore`**: This file tells git which files it should not track or maintain during the development process of your project.
73+
74+
7. **`LICENSE`**: The template is licensed under the MIT licence.
75+
76+
8. **`package.json`**: Standard manifest file for Node.js projects, which typically includes project specific metadata (such as the project's name, the author among other information). It's based on this file that npm will know which packages are necessary to the project.
77+
78+
9. **`yarn.lock`**: This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. **(Do not change it manually).**
79+
80+
10. **`README.md`**: A text file containing useful reference information about the project.
81+
82+
## Contribute
83+
84+
If you encounter an issue with the template, we encourage you to open an issue in this template's repository.
85+
86+
## Learning Storybook
87+
88+
1. Read our introductory tutorial at [Learn Storybook](https://storybook.js.org/tutorials/intro-to-storybook/react/en/get-started/).
89+
2. Learn how to transform your component libraries into design systems in our [Design Systems for Developers](https://storybook.js.org/tutorials/design-systems-for-developers/) tutorial.
90+
2. See our official documentation at [Storybook](https://storybook.js.org/).

_config.yml

Whitespace-only changes.

config/main.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
stories: [
3+
"../src/stories/**/*.stories.mdx",
4+
"../src/stories/**/*.stories.@(js|jsx|ts|tsx)"
5+
],
6+
addons: [
7+
"@storybook/addon-links",
8+
"@storybook/addon-essentials",
9+
"@storybook/addon-interactions",
10+
],
11+
};

0 commit comments

Comments
 (0)