Skip to content

Commit

Permalink
setup tsdx with storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
limistah committed Dec 15, 2023
1 parent 9d3a27f commit 1e676df
Show file tree
Hide file tree
Showing 26 changed files with 28,559 additions and 2,802 deletions.
17 changes: 17 additions & 0 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"sourceType": "unambiguous",
"presets": [
["@babel/preset-typescript", {}],
[
"@babel/preset-env",
{
"targets": {
"chrome": 100,
"safari": 15,
"firefox": 91
}
}
]
],
"plugins": []
}
5 changes: 0 additions & 5 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['18.x']
node: ['10.x', '12.x', '14.x']
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
node_modules
.cache
dist
storybook-static
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node -v
20 changes: 19 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
module.exports = {
stories: ['../stories/**/*.stories.@(ts|tsx|js|jsx)'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],

// https://storybook.js.org/docs/react/configure/typescript#mainjs-configuration
typescript: {
check: true, // type-check stories during Storybook build
}
reactDocgen: 'react-docgen-typescript',
reactDocgenTypescriptOptions: {
compilerOptions: {
allowSyntheticDefaultImports: false,
esModuleInterop: false,
},
propFilter: () => true,
},
},

framework: {
name: '@storybook/react-webpack5',
options: {},
},

docs: {
autodocs: true,
},
};
32 changes: 0 additions & 32 deletions mylib/.github/workflows/main.yml

This file was deleted.

12 changes: 0 additions & 12 deletions mylib/.github/workflows/size.yml

This file was deleted.

5 changes: 0 additions & 5 deletions mylib/.gitignore

This file was deleted.

8 changes: 0 additions & 8 deletions mylib/.storybook/main.js

This file was deleted.

5 changes: 0 additions & 5 deletions mylib/.storybook/preview.js

This file was deleted.

21 changes: 0 additions & 21 deletions mylib/LICENSE

This file was deleted.

181 changes: 0 additions & 181 deletions mylib/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions mylib/example/.gitignore

This file was deleted.

14 changes: 0 additions & 14 deletions mylib/example/index.html

This file was deleted.

14 changes: 0 additions & 14 deletions mylib/example/index.tsx

This file was deleted.

Loading

0 comments on commit 1e676df

Please sign in to comment.