Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
arlaptiev committed May 8, 2021
1 parent d0b6b8b commit fa8186f
Show file tree
Hide file tree
Showing 68 changed files with 5,383 additions and 285 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GITHUB_TOKEN=
NPM_TOKEN=
28 changes: 28 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and Deploy

on:
push:
paths: ["stories/**", "src/components/**"] # Trigger the action only when files change in the folders defined here
branches:
- prod

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
with:
persist-credentials: false
- name: Install and Build 🔧
run: | # Install npm packages and build the Storybook files
npm install
npm run build-storybook
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: prod # The branch the action should deploy to.
FOLDER: docs-build # The folder that the build-storybook script generates files.
CLEAN: true # Automatically remove deleted files from the deploy branch
TARGET_FOLDER: docs # The folder that we serve our Storybook files from
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
# testing
/coverage

# production
# production and distribution
/build
/dist

# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
Expand Down
12 changes: 12 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/preset-create-react-app",
"storybook-addon-material-ui"
]
}
17 changes: 17 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { muiTheme } from 'storybook-addon-material-ui'

import LightTheme from '../src/themes/LightTheme'

export const decorators = [
muiTheme([LightTheme])
];

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Distribution tutorial:
https://storybook.js.org/tutorials/design-systems-for-developers/react/en/distribute/

# Publish with Github Pages tutorial:
https://medium.com/swlh/how-to-deploy-storybook-to-github-pages-4894097d49ab

# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
Expand Down
1 change: 1 addition & 0 deletions docs-build/0.4bc70aa6363443b39338.manager.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs-build/0.52de580d.iframe.bundle.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions docs-build/4.1a7fe21f.iframe.bundle.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions docs-build/4.1a7fe21f.iframe.bundle.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/
1 change: 1 addition & 0 deletions docs-build/4.1a7fe21f.iframe.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions docs-build/4.b5755104c312ff66c0f9.manager.bundle.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/
1 change: 1 addition & 0 deletions docs-build/5.699175df79518537dee1.manager.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs-build/5.ed08c754.iframe.bundle.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs-build/6.22362f36094f0b17bfa7.manager.bundle.js

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions docs-build/6.22362f36094f0b17bfa7.manager.bundle.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*!
* OverlayScrollbars
* https://github.com/KingSora/OverlayScrollbars
*
* Version: 1.13.0
*
* Copyright KingSora | Rene Haas.
* https://github.com/KingSora
*
* Released under the MIT license.
* Date: 02.08.2020
*/
3 changes: 3 additions & 0 deletions docs-build/6.de70d651.iframe.bundle.js

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions docs-build/6.de70d651.iframe.bundle.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*!
* OverlayScrollbars
* https://github.com/KingSora/OverlayScrollbars
*
* Version: 1.13.0
*
* Copyright KingSora | Rene Haas.
* https://github.com/KingSora
*
* Released under the MIT license.
* Date: 02.08.2020
*/
1 change: 1 addition & 0 deletions docs-build/6.de70d651.iframe.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs-build/7.4f76f51d.iframe.bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fa8186f

Please sign in to comment.