Skip to content

Commit 09fdb9b

Browse files
author
kaminorse
committed
#1 add first commit
1 parent da8f77e commit 09fdb9b

File tree

367 files changed

+19759
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

367 files changed

+19759
-0
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = crlf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true

.eslintrc.cjs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/* eslint-env node */
2+
3+
module.exports = {
4+
root: true,
5+
env: {
6+
browser: true,
7+
es2020: true,
8+
},
9+
extends: [
10+
"eslint:recommended",
11+
"plugin:@typescript-eslint/recommended",
12+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
13+
"plugin:react-hooks/recommended",
14+
"plugin:storybook/recommended",
15+
],
16+
parser: "@typescript-eslint/parser",
17+
parserOptions: {
18+
ecmaVersion: "latest",
19+
sourceType: "module",
20+
project: true,
21+
tsconfigRootDir: __dirname,
22+
},
23+
plugins: ["react-refresh"],
24+
rules: {
25+
"react-refresh/only-export-components": [
26+
"warn",
27+
{
28+
allowConstantExport: true,
29+
},
30+
],
31+
"@typescript-eslint/no-non-null-assertion": "off",
32+
},
33+
};

.github/workflows/gh-pages.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: github pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: setup node
15+
uses: actions/setup-node@v3
16+
17+
- name: install
18+
run: npm install
19+
20+
- name: build
21+
run: npm run build-storybook
22+
env:
23+
URL_PREFIX: react-smarpy
24+
25+
- name: add nojekyll
26+
run: touch ./storybook-static/.nojekyll
27+
28+
- name: deploy
29+
uses: peaceiris/actions-gh-pages@v3
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: ./storybook-static

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
storybook-static
15+
16+
# Editor directories and files
17+
.vscode/*
18+
!.vscode/extensions.json
19+
.idea
20+
.DS_Store
21+
*.suo
22+
*.ntvs*
23+
*.njsproj
24+
*.sln
25+
*.sw?

.storybook/main.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import type { StorybookConfig } from "@storybook/react-vite";
2+
3+
const config: StorybookConfig = {
4+
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
5+
addons: [
6+
"@storybook/addon-docs"
7+
],
8+
framework: {
9+
name: "@storybook/react-vite",
10+
options: {},
11+
},
12+
babel: (options) => ({
13+
...options,
14+
presets: [...options.presets, '@emotion/babel-preset-css-prop'],
15+
}),
16+
};
17+
export default config;

.storybook/preview.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import type { Preview } from "@storybook/react-vite";
2+
3+
const preview: Preview = {
4+
parameters: {
5+
actions: { argTypesRegex: "^on[A-Z].*" },
6+
controls: {
7+
matchers: {
8+
color: /(background|color)$/i,
9+
date: /Date$/,
10+
},
11+
},
12+
},
13+
};
14+
15+
export default preview;

0 commit comments

Comments
 (0)